on 2023 Feb 28 8:31 AM
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?
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
93 | |
15 | |
9 | |
8 | |
5 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.