User Exit for transaction FB60

Kjetil Kilhavn kjetilk at statoil.com
Tue Jan 21 01:38:33 EST 2003


A-ha! You are not "doing some validation" as you originally said, you are
trying to modify the document.
 
I'm not an expert in the area, especially not in the events of the open FI
interface. However, anything you want to change must be done *before* the
BSEG document is created (posted). So, if the OFII event you have used is
processed for an already posted document you should not be allowed to make
any significant changes.
 
We have had the same requirement you seem to have here in Statoil, i.e.
change/set some aspect of the FI document based on some of the values, and
here they solve it with FI substitutions. I don't know if the payment block
key is just a random example, but the need for setting a payment block is
the reason I know anything about FI substitutions at all. Also, with the
payment block key you may not be able to change it, depending on your
configuration of a block key as "not changeable".
 
Congratulations on the 10th consecutive year with highest number of patents
by the way.
--
Kjetil Kilhavn
 
 
 
 
 
                    Namit Bhargava
                    <namit.bhargava at us.i        To:     SAP-WUG at MITVMA.MIT.EDU
                    bm.com>                     cc:     (bcc: Kjetil Kilhavn)
                    Sent by: SAP                Subject:     Re: User Exit for transaction FB60
                    Workflow
                    <Owner-SAP-WUG at MITVM
                    A.MIT.EDU>
 
 
                    20.01.2003 22:17
                    Please respond to
                    "SAP Workflow Users'
                    Group"
 
 
 
 
 
 
Thanks Mark - I have done the required config and my function module is
being called.
 
However any changes I have made to the BSEG table are not committed - I am
trying to change the value of a field in BSEG table - I do that in the code
below but when the program writes to SAP - it does not capture the values I
have set.
 
FUNCTION ZSAMPLE_INTERFACE_00001030.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  IMPORTING
*"     VALUE(I_BKDF) LIKE  BKDF STRUCTURE  BKDF
*"     VALUE(I_UF05A) LIKE  UF05A STRUCTURE  UF05A
*"     VALUE(I_XVBUP) LIKE  OFIWA-XVBUP DEFAULT 'X'
*"  TABLES
*"      T_AUSZ1 STRUCTURE  AUSZ1 OPTIONAL
*"      T_AUSZ2 STRUCTURE  AUSZ2 OPTIONAL
*"      T_AUSZ3 STRUCTURE  AUSZ_CLR OPTIONAL
*"      T_BKP1 STRUCTURE  BKP1
*"      T_BKPF STRUCTURE  BKPF
*"      T_BSEC STRUCTURE  BSEC
*"      T_BSED STRUCTURE  BSED
*"      T_BSEG STRUCTURE  BSEG
*"      T_BSET STRUCTURE  BSET
*"      T_BSEU STRUCTURE  BSEU
*"----------------------------------------------------------------------
 
 
  READ TABLE T_BKPF.
  IF T_BKPF-BLART = 'Z0'.
 
    LOOP AT T_BSEG.
      IF T_BSEG-BSCHL = '31'.
        T_BSEG-ZLSPR = 'Z'.
        T_BSEG-SGTXT = 'CC 55001 Amt 750,0000USD Position S 123456789'.
        MODIFY T_BSEG TRANSPORTING ZLSPR SGTXT.
      ENDIF.
    ENDLOOP.
 
  ENDIF.
 
  COMMIT WORK.
 
ENDFUNCTION.
 
Any help will be greatly appreciated.
Thanks
Namit Bhargava
IBM Business Consulting Services
 
 
 
                      "Griffiths, Mark"
                      <mark.griffiths at sap        To:
SAP-WUG at MITVMA.MIT.EDU
                      .com>                      cc:
                      Sent by: SAP               Subject:  Re: User Exit
for transaction FB60
                      Workflow
                      <Owner-SAP-WUG at MITV
                      MA.MIT.EDU>
 
 
                      01/20/2003 11:56 AM
                      Please respond to
                      "SAP Workflow
                      Users' Group"
 
 
 
 
 
You could try using the Open FI Interface.  You can select the different FI
(not workflow) events in transaction BF34 and then link in a function
module to do your processing.  There are sample interface FMs available to
copy.  I think event 1030 should do the trick in this case.  If you search
OSS you will find a whole series of notes on this area (try searching using
BKPF CREATED or BF34).
 
Hope this helps,
 
Mark
 
SAP UK.
 
-----Original Message-----
From: Namit Bhargava
To: SAP-WUG at MITVMA.MIT.EDU
Sent: 20/01/03 15:04
Subject: User Exit for transaction FB60
 
Hello:
 
I am trying to find a user exit for transaction FB60 (Create Invoices) -
I
need to do some validations before the workflow is triggered. Any help
would be appreciated. I have already tested SAPLF051_001 and it is not
providing the information I need. I need all the line items of the
invoice.
 
Thanks
Namit Bhargava
IBM Business Consulting Services
 
 
 
 
 
-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.
 


More information about the SAP-WUG mailing list