Question:
Hi,
I have a compounded infoobject which I will load with master data. However, the master data is not compounded, so I would like to load the master data for each combination of the infoobject and its belonging compounded infoobject.
I thought of doing this in the startroutine of the transfer rules, like this:
1. Loop at the datapak
2. Select all different values of the compounded infoobject where the infoobject itself is equal to the infoobject loaded.
3. Loop at the values retrieved in 2. and append a line to a structure with alle the values from the datapak in addition to the value of the compounded infoobject.
4. Use the structure to fill the values in the transfer rules for each attribute/key
My problem is how to store the data, so that I can use them in the transfer rules? I tried my self-created structure, but it will not loop on that one, which make me get duplicate values.
I was thinking of move the data back to DATAPAK, but that structure does not contain the compounded infoobject.
Any help would be highly appreciated.
Best regards,
Madicken
Answer:
hmmm... I don't understand how you're going to update a field that does not belong to the datapak structure, which is defined as:
FORM STARTROUTINE
USING G_S_MINFO TYPE RSSM_S_MINFO
CHANGING DATAPAK type TAB_TRANSTRU
G_T_ERRORLOG TYPE rssm_t_errorlog_int
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel datapackage
where TAB_TRANSTRU is defined as:
TYPES: TAB_TRANSTRU type table of TRANSFER_STRUCTURE.
so you need to make your other InfoObject part of the transfer structure first