Application Development and Automation 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: 

badi without export parameters

pashasapcha
Participant
0 Kudos
970

Hi, Gurus,

I have requirement for ME55, where whenever the user once approves the PR , the sy-datum should be the release date.

I have identified the method IF_EX_ME_REQ_POSTED~POSTED.

However, I can not find the export parameters .

So I am just confused how to get the sy-datum to be displayed in the release date ME55 SCREEN ?

As far as my understanding , we have to use the export parameters to get the field data to be displayed on the standard screen field.

7 REPLIES 7

RaymondGiuseppi
Active Contributor
0 Kudos
865

This BAdI can trigger a variety of follow-on processing operations for purchase requisitions, not change data during release/save process.

NB: The classic customer-exits (MEREQ001 with EXIT_SAPLMEREQ_005) and BAdI (ME_PROCESS_REQ_CUST) for PR are not triggered from ME55 (ref) the BAdI is triggered from ME54n but not from ME55 cause this one isn't en,joy and also allows collective release.

0 Kudos
865

The requirement here is in ME55 , I need to put validation that , once the release indicator field is 'A', then I should get the sy-datum in the release date.
How can I achieve it in ME55 ?

0 Kudos
865

Try to debug/trace the ME55 execution to find a suitable enhancement spot (before registration of the update function modules)

0 Kudos
865

Let me brief you the requirement. Basically whenever, the release strategy in ME55 is turned to 'A' (when PR is released in ME55 ), it should reflect as current date (date on which the PR is released) in ME54N, under quantities tab , Release date field.
My approach was that , in the ME_PROCESS_REQ_CUST badi, write select query to fetch record from eban table and to place condition that eban-FRGKZ = 'A', it should make the FRGDT as sy-datum.

I am releasing the PR from ME55. But can not able to debug in ME54N ,as the badi will trigger whenever we click on release indicator icon in edit mode. But the issue is that for the released PRs, when opening in ME54N, as all the release strategies are released it is not getting triggered.


Kindly let me know if my approach will work or not. Or is there any easy way we can resolve this issue .

0 Kudos
865

As written in KBA 1944119 - User Exit not called in transaction ME55, ME55 don't execute usual Exit and BAdI, cause of mass processinng, then it's too late to update date with standrard tools.

So you have to find some Enh. Spot during ME55 execution to add your code.

0 Kudos
865

Question (a little late, but better late than never) why do you want to change this date?

(In standard delivered configuration, changing this date trigger an error message ME546, which can be changed to warning or ignored thru Customizing)

Sandra_Rossi
Active Contributor
0 Kudos
865

How it's asked, it looks like an XY problem - Wikipedia.

The question is currently about why some BAdI don't have export parameters.

But based on what you replied to Raymond, your only concern seems to be the question "in ME55, whenever the user approves the PR, how to send error if the release date is not today".