Exit_SAPLF048_001 Exit_SAPLF048_002

Hi abap experts,
I have a requirement when posting a financial doc to fill BSEG_SGTXT with BSEG_BELNR.
I cannot do this using substitution because BSEG_BELNR = $1 and not populated till the last moment before posting.
I did however find the following 2 exits where BSEG_BELNR is populated before being posted:(Exit_SAPLF048_001   and  Exit_SAPLF048_002).
so far so good....  in  enhancement F180A001  and  Exit_SAPLF048_001 and include zxf048u01, I amanged to code the following:
data: ls_item         type f180a_doc_item,
           ix              type i.
loop at doc_item_tab into ls_item.
  ix = sy-tabix.
  if ls_item-hkont = '0000160050'.
    concatenate ls_item-belnr ls_item-gjahr
      into ls_item-sgtxt.
    modify doc_item_tab from ls_item
      index ix
      transporting sgtxt.
  endif.
endloop.
I added a breakpoint to my code and discovered that even thought BSEG_SGTXT was populated correctly, BUT once the control was returned to the calling program the changes were lost..... so clearly I cannot use this Exit.
Can any abap guru tell me if using F180A001  and  Exit_SAPLF048_002 and include zxf048u02, I will be able to modify BSEG?. else is there any other exit available to do this?
Any help will be appreciated. 
Seve (FI Functional consultant)

To recap, using ver ECC6 I wish to update BSEG_SGTXT with BSEG_BELNR.
I cannot use Substitution rule at call up point 3 because BSEG_BELNR = empty.
I did find a user exit Exit_SAPLF048_001 and include ZXF48U01 which will allow me to see the value of BSEG_BELNR before posting,  however under CHANGING, the structure of the RELATION_TAB table does not contain BSEG_SGTXT and therefore cannot modify.   
I am able to write a standalone program to update already posted docs and schedule a batch job, but I prefer a more real-time update, if I cannot update BSEG_SGTXT with BSEG_BELNR before posting document  then 2nd prize is to update already posted document.
So I am wondering if triggering a business event from include ZXF48U01 can achieve this?    possible?
I am looking for coding solution that will allow control to be returned to the calling program   AFTER   Exit_SAPLF048_001 / ZXF48U01 has triggered program or business event.    possible?
The called or triggered program/business event is to run after a determined period of time (time delay code required) to allow for the calling program to complete the posting of document.   possible?
Steve

Similar Messages

  • EC-PCA FI DATA TRANSPORT ?

    HI EVERYONE!
      How can i transport some fi documents which debit and crebit is coustomer account or vendor account data to PCA?

    Hi Zhou,
    There is user exists that you can use to change the Profit center depending on your criteria. 
    You can flag your FI documents when if you are using FB70 for an A/R invoice with whatever criteria to flag this transaction.  Once you have flag the field RF048-BLCHR, then you can use another user exit that is used in tcode F.5D  Search for the flag in field BLGCHR in addition to other criterias and then change your profit center to xyz value.
    This should also be applicable for your FI A/P vendor posting. You can flag this entries. 
    Check the following user exits - EXIT_SAPLF048_001 and EXIT_SAPLF048_002. 
    You will have to perform a lot regression test because of the integration points when posting from different modules.(MM,SD, Inventory..etc.) You only want to affect entries that were manually done on the FI...
    Note sure whether this will help.  Just another way of FI posting to PCA

  • BADI, User Exit before FI document is posted during GR posting in MIGO

    Hi Gurus,
    In transaction MIGO, whenever a goods receipt is posted, a corresponding FI document is then created. I am in need of a BADI, User Exit, or other forms of enhancements that is triggered before this FI document gets posted because I have to edit data in the header (BKPF) and detail (BSEG) part, specifically the fields BKPF-XREF1_HD (Reference key 1) and (BSEG-ZUONR) (Assignment).
    The field XREF1_HD is to be populated with the vendor number from MIGO (GOHEAD-LIFNR)
    The field ZUONR is to be populated with the PO Number from MIGO (GOITEM-EBELN)
    Regards to all,
    Joseph

    Hi,
    I am on 4.6C.
    We are using EXIT_SAPLF048_001 of enhancement F180A001 for the same.
    Please note that control comes here for no of SAP transactions, hence you need to take care of it by executing your logic only for a particular SAP transaction.
    I hope this helps,
    Regards
    Raju Chitale

  • BADI or User exit  for FB50 to update custom field in table COEP

    Hi all,
    i have added one custom field in table COEP through include CI_COBL .
    when i do posting through sales order(VA02) or purchase order(ME22n) that custom fields in COEP get updated with controlling document
    and through BADI AC_DOCUMENT i m updating that custom field in COEP.
    but when i do manual posting through FB50 controlling document is generated in COEP but i m not able to update that custom field
    because in this case BADI AC_DOCUMENT  is not get triggered.
    is there any BADI or User exit or enhancement spot for FB50 through which i can update that custom field in table COEP

    Hi Sandy,
    Thanks for u r reply,
    RFAVIS01 is not getting triggered through FB50
    and F180A001 ( EXIT_SAPLF048_001) is getting triggered but it doesnt contain COEP field in its parameter
    import - F180A_DOC_HEAD_TAB
                 F180A_DOC_ITEM_TAB
    changing - RELATION_TAB

  • Exit F-53 issue

    Hi All,
    I am using F-53 user-exit EXIT_SAPLF048_001- ZXF48U01 to control the vendor payments.
    I need to through custom messages if payment is exceed the PO total amt.
    User may select multiple Account document and pay the amt.
    But iam unable to get which lines user has selected.
    DOC_ITEM_TAB table has only amt and payment docu no (which is generate after save).
    Can you please tell me how to capture user selected lines in payment screen.
    Regards
    SK

    Hi Sravan,
    Tell me first do you need the selected accounting document before the payment document posting or after?
    My requirement was after....and I solved the problem like below,
    Form this exit a called a self created z RFC function module (Starting new task).
    and in that function module we checked that the payment document posted or not using,
    Do.
    a select single from bseg with that available payment document number.
    if sy-subrc eq 0.
    exit. (i.e document posted)
    endif.
    enddo.
    then put payment document number in AUGBL field and buzei = 001 and gjahr etc and get the list of belnr from bseg.
    Please give reward for the help
    Regards,
    Kamal Hasan
    PwC

  • [exit求助]FB01里怎么自动把明细里某个值copy到另外一个明细里去?

    条件
    凭证类型 为DZ并且凭证首项里的科目为u201C99999u201D时候
    把凭证第二项里的文本复制到凭证首项的文本里去
    这种情况下代入好像用不了
    FB01所涉及到的exit里,只发现F180A001的EXIT_SAPLF048_001被调用了
    但是那里好像也改不了
    FEDI0001 Function exits for EDI in FI
    F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002 FIDCC1: Change IDoc/do not send
    F050S003 FIDCC2: Change IDoc/do not send
    F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001 Balance Sheet Adjustment
    FARC0002 Additional Checks for Archiving MM Vendor Master Data
    RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00 Line item display: Checking of selection conditions
    RFKORIEX Automatic Correspondence
    SAPLF051 Workflow for FI (Pre-Capture, Release for Payment)
    请大家帮帮忙!先多谢了!

    人气真差
    用BTE的1120搞定了u2026u2026

  • F-48 Customizing

    Hi mates,
    I'm in the process of customising F-48,
    after giving all mandatory fields values in F-48,there are three ways to navigate to next screen (Post Vendor Down Payment Add Vendor Item),
    1.NEW ITEM tab (F8),
    2.REQUEST tab (F6),
    3.ENTER button.
    I want only the REQUEST tab to be used to navigate to next screen,i have disabled NEW ITEM tab through screen varient,_now the task is to disable the function of enter key_ ,there are no user exit to control to ENTER key Function.
    kindly let me know the ways to disable ENTER key/button.
    (Already posted in general topic)
    regards,
    saran

    i kept a break pint and saw it is not coming ....
    EXIT_SAPLF048_001
    pls give step by step process ..when the conditions will work  ..i need it when we simulate .

  • User-exit F-02 to avoid program termination.

    Hi All.
    We've written a small validation in user-exit ZXF48U01 of module function EXIT_SAPLF048_001 od enhacement F180A001.
    At certain point, if data is not as requested a proper 'E' message is triggered but this is causing standard to trigger an 'A' message and abort the transaction causing all data to be lost.
    message e208(11) with text-e01.
    Could you give an alternate use of message to avoid program termination?
    We're in 4.6C release, so, message 'E' display like 'S' variant doesn't apply.
    Thanks & Regards.

    Hi, i'm afraid that won't work. In fact, we've switch all message types, but it doesn't seems to work in the way we want.
    What we are trying is to validate at item level sgtxt and zuonr field contents, if in certain conditions values don't match specific ones, don't let post the document but stand still in transaction to fix data.
    For message type E (and obviously A), validations occurs, but program is terminated and all data entered discarded. For all others message types, we get the message displayed, but document is posted which is suppossed to be restricted.
    To be more specific, after this exit finishes, it returns to form fcode_bearbeitung(MF05AFF0_FCODE_BEARBEITUNG) at 'BREAKDOWN_RELATION_FI_DOC' call function, after this, for any error message triggered standard will send an 'A' message, this is what were are trying to avoid.
    Hope this helps to clarify scenary.

  • How can i modify in TC f-43

    Dear Experts,
                  I  want to give an error message in TC f-43.
         When i am giving the document date,posting date,reference,account number it is posting.But when i am changing only the document date with same reference number and account number it again posted.Here i want an error message that 'the bill number is already exist'.  
        Please suggest your advise.
    Thanks & Regards,
    Shilpa

    Hi shilpa did u try this Enhancement F180A001 / EXIT_SAPLF048_001 Financial Statement Adjustment Exit
    OR
    You can also try one of the BTE's and check .. go to FIBF .. there you will get the Business transaction Exits  for all transactions
    I will give some of the BTE's here which i find relevant ..
    00001020     POST DOCUMENT: Prior to final checks -- This triggers on Save Button
    00001010     POST DOCUMENT: Check customer line item -- This triggers on Customer Line item when you press enter key
    00001011     POST DOCUMENT: Checks at line item level --- This Triggers for all line items when enter key is pressed.
    00002221 DOCUMENT POSTING : Payment Release (Line Item).
    In a BTE you can post your own code so that it executes prior to final processing ..
    best Regards
    Manthan.

  • The user exit on the sap post the account document

    Dear all.
       I use the t-code mb01 or migo to receipt goods for purchase order.When I execute post or save,the sap generate the material document and the account document.The account documents have two item with account 12110000 and account 12010000.And I know this two account was configure in the t-code omwb.
       Now my company have a new requirement:
       When the sap generate the account documents,I need to write some code to do some judgement and change the account 12110000 to account 35510000 or other account.The logic of the code was complex and it's impossible to do in sap standard configure.So I want to find the user exit on the sap post the account document.In the user exit I would write some code to do some judgement and change the account 12110000 to account 35510000 or other account.
      But I can't found the user exit.So I need the experts to give me some reference.
    Regard
    Yoda

    Hi,
    You may use ZXF48U01 of EXIT_SAPLF048_001 of enhancement F180A001 for the same.
    Please note that control comes here for no of transactions hence you need to specifically check for sy-tcode, for which your 'exit' logic needs o be executed.
    I hope this helps,
    Regards
    Raju Chitale

  • FB60/FB65 - Need to validate tolerance

    All,
    We have a requirement wherein, when posting is done in transaction FB60 and FB65, the system needs to check the tolerance entered in a Z table and anything beyond the value specified in the Z table, an error/message needs to be displayed.
    Any idea how to achieve this - any exit?
    Regards.

    Dear Ganesh,
    Try these user exits FI80A001- EXIT_SAPLF048_001..include ZXF48U01  and F050S001 EXIT_SAPLF050_002...include ZX050U01. Obviously, you need good technical support, since your requirement is little bit tricky.
    Trust this helps much!
    Cheers,
    Ashok SINGH

  • Customizing F-48

    Hi mates,
                 I'm in the process of customising F-48,
                                                          after giving all mandatory fields values in F-48,there are three ways to navigate to next screen (Post Vendor Down Payment Add Vendor Item),
    1.NEW ITEM tab (F8), 
    2.REQUEST tab (F6),  
    3.ENTER button.
                         I want only the REQUEST tab to be used to navigate to next screen,i have disabled NEW ITEM tab through screen varient,_now the task is to disable the function of enter key_ ,there are no user exit to control to ENTER key Function.
          kindly let me know the ways to disable ENTER key/button.
    regards,
             saran

    i kept a break pint and saw it is not coming ....
    EXIT_SAPLF048_001
    pls give step by step process ..when the conditions will work  ..i need it when we simulate .

Maybe you are looking for

  • Up To Date Program - No code received within 72 hours

    Hello Apple, I am one of those early adopters of the retina MBP. I participated to the "Up To Date Program", but received no code within 72 hours. This is quite annoying because I am on holidays now and have enough time to spend with my new machine a

  • Sorting by price

    The page in question is http://www.georgeglazer.com/prints/art20c/menocalinv/menocalinv.html. As we sell these items, rather than commenting them out on the XML file, we want to continue to display them, marked as sold. The way I handled the price at

  • How can i edit function of function keys ?

    I just want to assign a function to my function key. For Eg:  by default f6- is assign to mute audio,  f3-is assign to increase screen brightness but f5 doesn't have any function , so i would like to assign a funtion to it, like when i press f5 my sc

  • Trade show magic interactive help needed with adobe connect 8

    Please see my website http://www.magicduncan.co.uk - I am a trade show magician as per my website and was wondering if this can be incorporated into my site to create a webinar presentation? Can I do screen sharing using adobe connect 8 as this is on

  • Need Geforce Go 7300 driver on Satellite A200-10x

    Hi 1,5 year ago i buy this Satellite A200-10x notebook with Vista (32bit) and Geforce go 7300. Now i can't find drivers for this graphic card Why? it's not supported model? I have lot a problems with display driver: - sometimes bluescreen - sometimes