cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with BO BUS1001006 Method CreateViews

Former Member
0 Kudos

Hi Guys,

I am using "CreateViews" method to create views for the material, in my WF.

I have copied it to custom method & created ZCreateViews & made certain changes to logic like,

when a view is already existing, goto MM02 t-code & edit the particular view.

This logic is required, when revision of material is being considered.

if sy-subrc eq 0.

    LOOP AT IT_MOFF.
       PERFORM CREATE_VIEW USING IT_MOFF MATERIAL.
    ENDLOOP.

ELSEIF sy-subrc ne 0 and w_statm eq 'Q'.

*    SET PARAMETER ID 'MAT' FIELD MATERIAL.

*    SET PARAMETER ID 'MXX' FIELD w_statm.

*    CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN.
ENDIF.

ISSUE.

Current issue is, whenever i uncomment newly added logic, my WF doesn't works properly.

If i comment it , it works properly.

When i say WF doesn't works properly,

I am calling subflow for editing of the materials, from main WF.

when i uncomment above code, subflow is not returned to main WF.

if i comment the code, it is working properly & subflow returning to main WF.

Guys, anything missing or any ideas will be really usefull.....

Regards.

santosh.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Can you debug the code in SWo1 and check whether it is actually working.

Thanks

Arghadip

Former Member
0 Kudos

Hi,

Yeah, i debugged method in SWo1, it is working properly.

Also that activity step is getting completed, after executing that code.

But, prob is, control is not returning to main WF after executing all steps in sub WF, if i have that code.

if i comment it, control is returning back to main WF.

somehow, seems to be some commit work issue.

I changed the above code & calling BAPI BAPI_MATERIAL_EDIT instead of MM02.

it is working fine, but, i cant go directly to particular view with BAPI.

regards.

santosh.