‎2006 Dec 01 7:13 AM
hi experts,
I want one clarification from u, what my requirement is there are multiple delivery numbers in the internal table g_t_dochdr. i want to move those delivery numbers into the transaction field ROIGSI-doc(these fields are in table control with dosnumber field) how should i proceed for this requirement. see below coding as per that can u give me suggestions.
loop at g_t_dochdr.
perform bdc_field using 'ROIGSI-DOC_NUMBER(01)'
g_t_dochdr-b_doc_number. "'408357039'.
perform bdc_field using 'ROIGSI-LOAD_INDI(01)'
'X'.
perform bdc_field using 'ROIGSI-DISCH_INDI(01)'
'X'.
endloop.
‎2006 Dec 01 7:21 AM
Hi,
DATA: N(2) TYPE N VALUE 0,
STR1 TYPE STRING VALUE 'ROIGSI-doc(',
STR2 TYPE STRING.
LOOP AT g_t_dochdr.
N = N + 1.
CONCATENATE STR1 N ')' INTO STR2.
perform bdc_field using STR2 g_t_dochdr-b_doc_number.
ENDLOOP.
and use the same logic ( concatenate ) for the fields ROIGSI-DISCH_INDI &
ROIGSI-LOAD_INDI.