Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem in performs

Former Member
0 Likes
406

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
392

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

3 REPLIES 3
Read only

Former Member
0 Likes
393

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

Read only

ferry_lianto
Active Contributor
0 Likes
392

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

Read only

rajasekhar_matukumalli3
Active Participant
0 Likes
392

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