cancel
Showing results for 
Search instead for 
Did you mean: 

PO Form Title for creation/change

Expert
Active Contributor
0 Kudos
603

Hello,

Our client is looking for different titles on the PO form such as:

Purchase order ##### - initial creation of PO

Purchase order ##### changed - when any change happens on the PO

Purchase order ##### cancelled - when all the items are deleted on the PO

We noticed that the standard form has 2 headers: Purchase order ##### and Changed Purchase order #####, which is determined by a script in the backend, specifically based on the below flag.

Form.frmHiddenGlobalFields.frmHiddenTitle.txtChangedFlag

Questions:

1. When/How does this flag get set? Eg: When I changed PO header/item quantities, the header still did not change to 'Changed Purchase order #####'. Are there any config settings governing the value of this field?

2. How can we set the value of this flag for the cancellation scenario? Is there a BADI available for developers to manipulate this?

View Entire Topic
Expert
Active Contributor
0 Kudos

Thanks for your query!

Please see below my feedback to your questions:

1. When/How does this flag get set? Eg: When I changed PO header/item quantities, the header still did not change to 'Changed Purchase order #####'. Are there any config settings governing the value of this field? Answer: Can you please have a look at the configuration activity 102272- Fields Relevant to Printouts of Changes where you can determine which fields trigger a change PO?
2. How can we set the value of this flag for the cancellation scenario? Is there a BADI available for developers to manipulate this? As a standard, SAP will provide that, on change it has to print "Changed Order".
But for other PO title changes, you might want to explore below coding in the form at the field "txtTitle" using adobe livecycle designer.

if ( Form.frmHiddenGlobalFields.frmHiddenTitle.txtChangedFlag == "X" )
then
form_title = Concat(Form.frmHiddenGlobalFields.frmHiddenTitle.txtChanged.rawValue, " ")
endif

You might want to put your custom logic there and see if that works.

Bhagya93
Explorer
0 Kudos

Hi, this solution has worked for me

but the issue is when we make changes to PO the output item status show as 'to be output' and title is displayed as changed PO
and when i cancel the PO in the same output item title changes to Canceled PO.
Please help me understand if this is the standard behavior or is there any step we are missing.
Thank you is advance