‎2007 Oct 01 6:48 PM
My data declarations and perform statement are as follows
TYPES: ty_accountgl LIKE bapiacgl09,
ty_accountap LIKE bapiacap09,
ty_currencyamount LIKE bapiaccr09.
DATA: t_accountgl TYPE STANDARD TABLE OF ty_accountgl,
wa_accountgl TYPE ty_accountgl,
t_accountap TYPE STANDARD TABLE OF ty_accountap,
wa_accountap TYPE ty_accountap,
t_currencyamount TYPE STANDARD TABLE OF ty_currencyamount,
wa_currencyamount TYPE ty_currencyamount.
perform document_post tables t_accountgl t_accountap t_currencyammount
FORM document_post TABLES P_T_ACCOUNTGL STRUCTURE ty_accountgl
P_T_ACCOUNTAP STRUCTURE TY_ACCOUNTAP
P_T_CURRENCYAMOUNT STRUCTURE TY_CURRENCYAMOUNt.
endform.
when i do syntax check the error is as follows:
The field "TY_ACCOUNTGL" is unknown, but there is a field with the similar name "T_ACCOUNTGL".
CAN ANY ONE HELP ME IN RESOLVING THIS PROBLEM...
THANKS,
BHASKAR.
‎2007 Oct 01 6:55 PM
You are passing ty_accountgl as a table to the perform, but it is not defined as a table. It's just a structure.
Rob
‎2007 Oct 01 6:55 PM
You are passing ty_accountgl as a table to the perform, but it is not defined as a table. It's just a structure.
Rob
‎2007 Oct 01 6:58 PM
Hi,
Please try this.
PERFORM DOCUMENT_POST TABLES T_ACCOUNTGL T_ACCOUNTAP T_CURRENCYAMOUNT.
FORM DOCUMENT_POST TABLES P_T_ACCOUNTGL LIKE T_ACCOUNTGL
P_T_ACCOUNTAP LIKE T_ACCOUNTAP
P_T_CURRENCYAMOUNT LIKE T_CURRENCYAMOUNT.
ENDFORM. "
OR
FORM DOCUMENT_POST TABLES P_T_ACCOUNTGL
P_T_ACCOUNTAP
P_T_CURRENCYAMOUNT.
ENDFORM. "
Regards,
Ferry Lianto
‎2007 Oct 01 7:28 PM
Hi,
Change your declarations from
TYPES: ty_accountgl LIKE bapiacgl09,
ty_accountap LIKE bapiacap09,
ty_currencyamount LIKE bapiaccr09
to
TYPES: ty_accountgl TYPE bapiacgl09,
ty_accountap TYPE bapiacap09,
ty_currencyamount TYPE bapiaccr09
This should solve your problem.
Reward points if useful
Rajasekhar