2012 Mar 27 11:25 AM
Hi All,
I am using BAPI_PO_CHANGE to add new line items with reference to the PR given as an input through excel sheet .
After the Program execution , Line items get added successfully ,
BUT the Release Strategy tab does not appear any more in the ME23N screen .
If we make a slight change in the PO , e.x . put a dot or something in some text field and save ,
Tab appears again .
My concern is how to change the PO using BAPI , by still keeping the release strategy tab .
Is there any Note or exit for that ?
Kindly suggest .
Regards,
Hemant
2012 Mar 27 11:51 AM
hi Hemant,
Check whether you are passing the BAPI parameters in such a way that PO/PR is already released before you check the changes in ME33N, this could be the reason. BAPI and ME32N should behave the same way.
Regards,
Prasanna
2012 Mar 27 12:23 PM
Hi Prasanna ,
I am not passing any parameter related to release strategy to the BAPI .
I have tried running the BAPI with both the cases :
1. Passing release indicator in header
2. Without Passing release indicator in the header .
Its not making a difference .
Regards,
2012 Mar 27 12:36 PM
Hi Hemant,
The Release Strategy Tab is displayed whenever the system finds the PO is applicable for a Release Strategy.
In your case, I believe, even though it is applicable, the Release Strategy tab appears only after any activity done from ME22N.
1. But, is this happening for PO's that are completely released?
2. when you call the BAPI, is the PO on hold?
3. Are you passing the Condition or Pricing internal table to the BAPI that triggers in blocking the Release status of the PO?
4. Finally, is there any User Exit or Enhancement that has been done in the standard transaction for setting the Release Strategy that needs to be incorporated in the BAPI?
Regards,
Pranav.
2012 Mar 27 12:43 PM
hi Hemant,
Can you post the logic which fills up the header parameters? When u checked the release strategy parameters using BAPI, did you pass the value X in header change structure?
Cheers
2012 Mar 27 12:59 PM
Hi Pranav ,
Answers to your queries are as :
regards,
2012 Mar 27 1:05 PM
Hi Prasanna ,
Yes we passed the value X in header change structure also .
We tried without passing X also .
In header info we are currently passing only : PO number and nothing else .
Regards,
2012 Mar 28 5:34 AM
Hi Hemant,
Since you have ruled out most of the possible cases, try passing the following parameters to the Header Structure:
1. POHEADER-PO_NUMBER
2. POHEADER-DOC_TYPE
3. POHEADER-PO_REL_IND --> (Corresponding value for Blocked)
4. POHEADER-REL_STATUS --> (Creator as per configured Release Strategy).
&
POHEADERX-PO_NUMBER = POHEADERX-DOC_TYPE = POHEADERX-PO_REL_IND = POHEADERX-REL_STATUS = 'X'.
Regards,
Pranav.
2012 Mar 30 6:49 PM
Hi ,
As mentioned by Pranav earlier :
about the various scenarios that can be possible for the issue :
Scenario 4 : was the root cause in my case .
Finally, is there any User Exit or Enhancement that has been done in the standard transaction for setting the Release Strategy that needs to be incorporated in the BAPI?
In one user exit toggling has been done .
Thanks for the support . Issue Resolved .
Regards,