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: 

How to get the Purch.Req.Item Number from EXIT_SAPLEBND_001

former_member425121
Participant
0 Kudos

Hi everybody

I have some modifications in EXIT_SAPLEBND_001 for calculate the Release Strategy for each Purchase Requisition Item. In EXIT_SAPLMEREQ_005 i make some related validations to Release Strategy obtained in standar exit between this two exits.

For make my requirement, i need to get the Purchase Requisition Item Number (BNFPO) in EXIT_SAPLEBND_001 but it does not come in FM parameters, so i tried to get via pointers this value accesing the variables in SAPLEBND - FM ME_REL_STRATEGIE_EBAN (wich calls the exit SAPLEBND_001) , for example using (saplebnd)e_eban , but this variables are declared locally so it's not possible. Then i tried the next level, accesing the SAPLMEREQ variables (wich calls ME_REL_STRATEGIE_EBAN) ; but this is not possible too.

Does somebody knows how can i get the processing Item Number (BNFPO)in EXIT_SAPLEBND_001 ? This value is 'live' in the Funct.Modules wich calls this exit, but it can not be retrieved from the exit.

Any help will be appreciated.

Regards

Frank

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You can try an EXPORT of the item number(s) within EXIT_SAPLMEREQ_005 and then a corresponding IMPORT within EXIT_SAPLEBND_001. I'm not familiar logical flow of the various functions in the transaction, but from a technical standpoint an EXPORT/IMPORT might work in your case.

Regards,

James Gaddis

2 REPLIES 2

Former Member
0 Kudos

Hi,

You can try an EXPORT of the item number(s) within EXIT_SAPLMEREQ_005 and then a corresponding IMPORT within EXIT_SAPLEBND_001. I'm not familiar logical flow of the various functions in the transaction, but from a technical standpoint an EXPORT/IMPORT might work in your case.

Regards,

James Gaddis

0 Kudos

Thanks James

The problem it's that the SAPLEBND_001 is executed first, and the is executed SAPLMEREQ_005 ; and the first exit it's wich does not has the Item Number.

However, i gave the user others options instead to need to link both exits with Item Numer.

Thanks a lot.

Frank