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: 

PR Number and PR line item number are not avilable in Userexit M06B0002

0 Kudos

Dear Experts.

In the function exit EXIT_SAPLEBND_001 ,I need to read the PR item number and PR number.But I am not getting that in the User Exit M06B0002.

Can anybody help me

Thanks

8 REPLIES 8

venkateswaran_k
Active Contributor
0 Kudos

Hi

What is your requirement for enhancement. can you pl put more detail?

0 Kudos

Hi

In the function exit EXIT_SAPLEBND_001, I have used CEBAN-USRC1 for determining PR release strategy by comparing the old value of EBAN with new values in CEBAN.So to get the old value from EBAN I need a PR number and Item number.

venkateswaran_k
Active Contributor
0 Kudos

Hi

Try to get it from Parameter 'BAN'.

DATA: ls_banfn TYPE EBAN-BANFN.
GET PARAMETER ID 'BAN' FIELD ls_banfn.

OR

WA_AREA = '(SAPLEBND)E_EBAN'.
ASSIGN (WA_AREA) TO <FS_EBAN>.
WA_EBAN = <FS_EBAN>.

Regards,

Venkat

You should really stop proposing the memory access to people, this is a very bad practice.

0 Kudos

Hi,

I tried using 'PARAMETER ID' but there is no item number. Also the global variable '(SAPLEBND)E_EBAN' is empty in my exit.

FredericGirod
Active Contributor
0 Kudos

my proposal, is to find another user exit with the expected data. And use SingleTon Design Pattern to store this information globally for all your user exit

0 Kudos

Hi,

There is no other userexits where we can set the USRC1 field value.We can determine the release strategy in EXIT_SAPLEBND_001 only.

venkateswaran_k
Active Contributor
0 Kudos

Hi

Try this exit.

M06B0005 - FM EXIT_SAPLEBND_004

Regards,

Venkat