Application Development 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: 

Passing field symbols of internal table in form statement

Former Member
0 Kudos

Hi all,

in bapi , i have given the following statement

PERFORM bapi_sales TABLES <it_valid> <it_error> <it_errorc> USING testrun.

here it_valid, it_error and it_errorc are field symbols.

how to write form statement for bapi_sales

thanks

Geetha

1 REPLY 1

Former Member
0 Kudos

FIELD-SYMBOLS: <it_valid> TYPE STANDARD TABLE,
               <it_error> TYPE STANDARD TABLE,
               <it_errorc> TYPE STANDARD TABLE.
DATA: testrun TYPE c LENGTH 1.

PERFORM bapi_sales TABLES <it_valid>
                          <it_error>
                          <it_errorc>
                  USING   testrun.

*&---------------------------------------------------------------------*
*&      Form  bapi_sales
*&---------------------------------------------------------------------*
FORM bapi_sales TABLES pt_valid  TYPE STANDARD TABLE
                       pt_error  TYPE STANDARD TABLE
                       pt_errorc TYPE STANDARD TABLE
                USING  testrun.
*...
ENDFORM.                    "bapi_sales

Regards

Markus