Under certain circumstances, either in workflow you might want to read the form value at certain step and further decide which process flow to take; or in generic service implementation control how the form should behave or what the back-end update should be carried out.
It would be good if you know a way on how to achieve form value that is already stored in SAP table.
One of the way to achieve this is using step GUID of the form.
Ok, you are smart and might already have this question in mind, "where can i get this step GUID?".
Here you go ..
1) If you are looking from step GUID during workflow processing, you can find it under step object structure, with element name GUID
It would be good if you know a way on how to achieve form value that is already stored in SAP table.
One of the way to achieve this is using step GUID of the form.
Ok, you are smart and might already have this question in mind, "where can i get this step GUID?".
Here you go ..
1) If you are looking from step GUID during workflow processing, you can find it under step object structure, with element name GUID
As per workflow container view, it is under PROCESS_OBJECT
2) Second way is to append this field as special field in the form scenario, so that you can use the value in INITIALIZE and DO_OPERATION method.
If you want to use step GUID info during form update in FLUSH method, you will need to declare STEP_GUID attributes as global variable to hold the step GUID value, and to be used in FLUSH method later.
Sample coding on how to retrieve form values.
Sample coding on how to get attachment as demonstrated in advanced generic implement of SAP Standard requisition form, under class CL_IM_HRRCF_REQUI_REQUEST, IF_HRASR00GEN_SERVICE_ADVANCED~FLUSH method .
No comments:
Post a Comment