on 02-21-2007 7:34 AM
Hi,
I have a query regarding the SRM PO Form. When a user takes a printout of the form, he always gets the heading on the form as "Change To Purchase Order" even if the PO is a new one.
When i checked the history of the PO, i find that the PO has the standard changed statuses for the following:
1. PO creation and follow on object item in backend.
2. Approval workflow related changes.
This is what we require:
1. When the PO is created afresh, the PO print should be "New Purchase order"
2. When the PO is changed, the PO print should be "Change to Purchase order"
Hi,
You can change this in transaction SMARTFORMS. Choose From BBP_PO and click on edit button. Go to Global Settings\Global definitions and go to Initialization tab.
You can add
If
statement to the status of document.
Regards,
Marcin Gajewski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Read the exact / current status of the Shopping cart by using the following FM.
Using the GUID (SC Header Guid),
<b>BBP_PD_SC_GETDETAIL function module in the smartform to fetch the current status and all the other required details.</b>
<u>
Using the GUID (PO Header Guid),
Incase, you want to know the Purchase Order status, use the Function module to
<b>BBP_PD_PO_GETDETAIL</b> function module in the smartform to fetch the current status and all the other required details.</u>
Hope this will help.
Please reward suitable points.
Regards
- Atul
Hi Atul,
Thanks a lot for the reply. We made the necessary corrections in the SMARTFORM as follows:
1. When the status is I1120, the counter is set to 1 and the PO should display "Change to PO" (Field name gv_change)
2. When the status is I1043, the counter is set to 0 and the PO should display "New PO".
Still when i create a new PO, it shows "Change to PO", the reason being, that it shows the status as Change Transmitted when the PO goes to the backend.
We are now trying to capture the status through CDHDR/CDPOS. Please suggest if this is right or we have to change the code, if so, what should be the change?
Hi Amit
Not very sure whether this is the best solution:
Option1:
(I prefer this): Activate version management and if the PO is of changed version, then use that in SMARTFORM.
Option 2:
Create a custom field, say, Amendment number in PO header and ask users to update it whenever they make changes.
Use this field to determine changed PO in smartform.
Option 3:
In Table NAST, you will have information about print processing status. Check for processing status 1 for your document and get the date.
If you made any changes after that to PO (CDHDR/CDPOS tables), this info you can use in SMARTFORM.
Best regards
Ramki
Hi,
I have found out the problem partially, but unfortunately, i do not have the solution for this. What is happening is, when a SRM PO is created, it is transferred to the backend (we have ECS scenario). When it is transferred to the backend, the status of the PO changes to "Change Transmitted" I1120 and this is picked up by the form as "Change To PO".
I still do not know how after making the changes to the PO, the title changes to "New PO".
Any suggestions?
Hi Rama,
Yes, i evaluated the other option given by you, but even that did not work. However, i found out the solution. In the table CRMD_ORDERADM_H, if you check the entries after a new PO is created, there is a single entry of a GUID, however, when the PO is changed, a new GUID is created. This is exactlly what i passed in the code. When the GUID is 1, the title of the PO should be "New PO". When the count of GUID is more thn 1, the title of PO is "Change to PO".
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.