PO Creation Mobile Workflow Object
This blog shows PO creation in SAP from Mobile Workflow .
Table of Content:
i. BAPI creation
ii. MBO creation
iii. Mobile Workflow creation
iv. Execution
i. BAPI creation :
Here structures YPOHD ( used for PO header info ) ,YPOITEM ( used for PO item info ) contains fields
which are mandatory for creating PO from BAPI.
Created an RFC enabled F.M internally calling BAPI ‘BAPI_PO_CREAT1’.
ii. MBO creation :
Mobile project ‘mypocr’ is created with MBO ‘Mypocreate’ having datasource from backend SAP ,calling BAPI
YBAPI_POCREATE.
Execute BAPI with some deafult parameters.
Maintain mapping between Message attributes,removing other all mappings for Return table
MBO object will looks like below
Personalisation keys POHD(header info),POITEM( item info) are created which are of Transient type
Personalization key mapping is maintained with load parameters of MBO.
iii. Mobile Workflow creation:
Mobile workflow ‘Pocreate’ is created having MBO placed in the form.
Inserted a new screen ‘Item Info’ to maintain PO Item related entries
PO header related fields along with field keys are created in Start screen of the form
Menu item ‘Enter Item Info’ is created of type ‘OPEN’ navigating to screen ‘Item Info’ screen.
Item related fields along with keys are created in ‘Item Info’ screen.
Menu item ‘Create PO’ is maintained of type ‘Online Request’ for execution of MBO .
Mapping is maintained between Personalization key fields with fields in Start,Item Info screen .
Mobile workflow looks like below
iv. Execution:
Execution in simulator
PO display in SAP which is created above
Hi Kishore,
I tried the same method. But I couldn't able to map the personalization key for the Item details. Because of which the PO is not getting created.
Please help me out.
Hi, Did you check
http://scn.sap.com/community/developer-center/mobility-platform/blog/2012/07/30/a-workflow-application-for-release-purchase-order
1:i have the same problem..? i couldn't able to map the personalization key for the Item details too.