Currently Being Moderated

Hi,

 

Tools used in developing the application are:

 

SUP version  : 2.0

BB Simulator : 6.0.0.141_9800  (MDS 4.1.2.17)

 

This is a workflow application which illustrates how can we release the Purchase Order (unreleased one) from our mobile device.

i have taken screen shots while developing this application.

 

create a new project with some new name.

create a new MBO. (PO_MBO)

 

First of all i want to view all the possible list of unreleased Purchase Order

 

BAPI used : BAPI_PO_GETITEMSREL

 

Capture.PNG

 

select the ITEMS_FOR_RELEASE,

                REL_CODE,

                REL_GROUP as input arguments

and PO_ITEMS as output paramter

 

click on preview button to pass some test data

 

Capture.PNG

 

select the cache Policy as "online".

 

 

 

Capture.PNG

 

 

 

 

 

as soon as you select the policy as "online", you will see an error message or error icon on your MBO.

this is because you have to MAP your input parameters to the MBO parameters.

 

for that, i am inserting 3 more attributes to the existing MBO... ( i am deleting unwanted attributes from my MBO)

 

Capture.PNG   

here, i added 3 attributes : rel_grp1, item_for_rel1, rel_code1 (there are total 7 attributes including 3 input attributes)

 

 

 

right click on MBO... and go to attributes> load parameters

 

here i am doing mapping...

 

Capture.PNG

 

next task, deploy the MBO to your server.

 

then, create a workflow editor. (PO_test)

 

drag and drop the MBO from left hand side.

 

Capture.PNG

go to start screen,

 

 

add 3 EDITBOX to the start screeen.

 

Capture.PNG

create the KEY simultaneously for each field... ( here i am passing the fixed "default" value for each one)

 

 

Capture.PNG

 

create a menu to the start screen. (Get Details)

 

and set the following properties as below:

 

Capture.PNG

 

go to "Paramter Mappings"  ...do the following

 

Capture.PNG

 

 

go to the PO_MBO screen

 

select PO Number and item no in the List View (u can select anyone of your own choice)

 

MAP the ListView Details Screen as PO_MBODetail

 

Capture.PNG

 

 

then, generate the workflow package.

 

you must be see the ouput on your device like below:

 

Capture.PNG

 

in the 3rd screen, we are seeing a list of unreleased purchase order, our main aim is to release them (one by one)

 

for this we have to create a new operation to the MBO.

 

create a new operation : ReleaseWF

operation Type: update

 

Capture.PNG

 

then use BAPI: BAPI_PO_RELEASE

set the parameters as below

 

Capture.PNG

 

then create two Personalization Keys for each input attributes

 

Capture.PNG

 

then , we have to map these Personalization keys with input attributes of the operation

so, right click on the ReleaseWF operation

 

Capture.PNG

 

then deploy the modified MBO to the unwired server.

 

go to PO_MBOdetail screen,

 

create a menu "Release PO"   and set the following properties:

 

Capture.PNG

 

(here i have created a "Success Message" screen to see the message after Release the PO)

 

go to the Parameter Mapping tab

 

Capture.PNG

 

 

 

at "Success Messge " screen , i have added a HTMLView

 

Capture.PNG

 

once again, generate the workflow package. you will see the flow of application like this:

 

 

 

Capture.PNG

 

(here my cursor is pointing to 4500000047 PO number > which i want to release)

 

Capture.PNG

 

now, i want to check the status of the released PO.

if it has been released, it must not show in the list of POs.

 

Capture.PNG

 

there is no 4500000047 PO in the latest list.

it means this particular PO has been released.

 

 

Regards,

Jitendra

Comments

Actions

Filter Blog

By author:
By date:
By tag: