HI gurus
Is the following implementation in-correct. This for me should be creating invoices as the function module YSHELL_INCOMING is calling a bapi inturn...however I do not get any tables filled and there is no return in the return table.
DO 5 TIMES.
WRITE SY-INDEX TO V_TASK.
CALL FUNCTION 'YSHELL_INCOMING'
STARTING NEW TASK V_TASK
performing set_function1 on end of task
EXPORTING
HEADERDATA = G_INV_HEADER
TABLES
ITEMDATA = G_INV_ITEMDATA
ACCOUNTINGDATA = G_INV_ACCDATA
GLACCOUNTDATA = G_INV_GLDATA
WITHTAXDATA = G_INV_WITHTAXDATA
RETURN = G_INV_RETURN.
ENDDO.
form set_function1 using taskname.
receive results from function 'YSHELL_INCOMING'
IMPORTING
INVOICEDOCNUMBER = G_INVOICE
FISCALYEAR = G_FYEAR.
endform.
endform.