Hi,
Ramakrishnan Murugan wrote:
1. How can I pass all field data values to BO, such that need to use it in table swr_cont. Whether am I need to create 60 attributes or is there any other way?
We need not to pass all data from WD application to workflow but only key data needs to be passed.
When we create a workflow object, we would define the key attributes ( like PERNR, or some UNIQUE_KEY ) & before tiggering workflow, this key data needs to be populated into SWR_CONT and pass to the FM/bapi.
Ramakrishnan Murugan wrote:
2. How to update all those screen field values to my Ztable.
To update the data into Ztable follow the below steps
- First trigger workflow, because if any error during workflow trigger, you can stop execution and raise error message. So data is not yet saved into Ztable
- After workitem generation, Read the context data from context nodes by using CODE WIZARD tool into local table or structures
- Now, prepare the local internal table of type ZTABLE and fill all required data from the context data
- Now, you can push into ZTABLE by using .... MODIFY ZTABLE from table LT_ZTABLE
Hope this helps you.
Regards,
Rama