Skip to Content
0
Former Member
Jul 29, 2010 at 01:58 PM

Issue with BO BUS1001006 Method CreateViews

44 Views

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.