Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

User exits for MIRO?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

Hi Amit ,

If that is the Case ,try to make use of IMPORT / EXPORT Commands.

Regards

Prabhu

0 Kudos

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

LucianoBentiveg
Active Contributor
0 Kudos

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