07-03-2006 5:29 AM
Hello,
I am working on 46B. I have a requirement, I need to populate the contract number in BSEG-XREF1 field. I have tried following user exits
LMR1M001
EXIT_SAPLMRMP_010
MM08R001
EXIT_RMMR01RS_002
MM08R002
EXIT_SAPMM08A_001
EXIT_SAPMM08R_001
Control is only stopping at EXIT_SAPLMRMP_010 and XREF1 fields is not available in the user exit structure. MIRO program control is not passing to other user exit.
Can anybody tell me, what i should do so that MIRO program will go through the other user exit OR please suggest something?
Regards,
Amit
Message was edited by: Amit Gupta
07-03-2006 6:15 AM
Hi Amit ,
u can update Xref Field Before Updating / Create the Accounting Document by Using Program GGBS000.This is user Exit Program for all FI Entries.
Regards
Prabhu
07-03-2006 6:15 AM
Hi Amit ,
u can update Xref Field Before Updating / Create the Accounting Document by Using Program GGBS000.This is user Exit Program for all FI Entries.
Regards
Prabhu
07-03-2006 5:10 PM
Hello Prabhu,
Thanks for your reply. I have treid it also. First time when control comes to U601 exit in GGBS000 program,
BSEG-EBELN and bseg-ebelp fields are blank (When Vendor line data is avalable in BSEG structure). So i can't select the contract number from EKKO table. But when control comes 2nd time( For tax account) these values are filled and i am able to select contract number from EKKO and passing it to BSEG-XREF1 field.
So i tried passing value first time itself in debugging. say 'ASDFGHJKL' this value is getting updated in the FB03 document
Still i am not able to populate the contrant number in vendor line of FB03 Document. Please advice what to do next.
Regards,
Amit
Message was edited by: Amit Gupta
07-03-2006 5:37 PM
Hi Amit ,
If that is the Case ,try to make use of IMPORT / EXPORT Commands.
Regards
Prabhu
07-03-2006 5:43 PM
Hi Prabhu,
first time when Vendor line passes in BSEG Structure we don't have po and line item number in the structure. So we can not select contract from EKPO table and at this point we have not exported anthing this so we can not import any thing.
Second time for tax account if we can export it, there is no way we can inport it on Vendor line item. If it is possible please let me know.
Regards,
Amit
07-03-2006 5:40 PM
You can use substitutions.
Refer to this link to know more about substitutions:
http://help.sap.com/saphelp_erp2004/helpdata/en/5b/d231a843c611d182b30000e829fbfe/frameset.htm