6

LTMOM - User Defined object

 1 year ago
source link: https://answers.sap.com/questions/13865416/ltmom-user-defined-object.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
25 minutes ago

LTMOM - User Defined object

4 Views Last edit 24 minutes ago 2 rev

Hi All

I have a single BAPI Target which takes header level and also item level task info ( The target will determine if its header or item level based on a field called Item_chk - If item_chk is 0 then its header level data otherwise its particular item level data.

How should i loop

loop at item.

loop at task.

endloop.

endloop.

If this is the case than the header level task is being repeated for all line items (So i'm duplicating the header tasks)

loop at item.

loop at task where item_chk ne 0

endloop.

endloop.

In this case i'm ignoring the header level task

How do i achieve this - 1 single Header task and multiple tasks for each line item

Thanks


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK