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

sYNTAX ERROR

Former Member
0 Likes
583

Hello friends,

I am having an error in,,

PERFORM BUILD_OBJECT_FROM_IDOC USING P_OBJNME P_VERB P_IDOCTP OBJECT[].

FORM BUILD_OBJECT_FROM_IDOC USING P_OBJECT_NAME

P_VERB

P_IDOCTYPE

P_OBJECT[].

i HAVE THIS ERROR.

In Release 4.0, the special character "[" - as here in the name

"P_OBJECT[]" - is no longer allowed.

Please suggest as how can I correct this.

Raju.

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
564

Hi Raju

if you are planning to send the table of OBJECT

use this way ..


PERFORM BUILD_OBJECT_FROM_IDOC tables OBJECT USING  P_OBJNME P_VERB P_IDOCTP.

FORM BUILD_OBJECT_FROM_IDOC
tables p_OBJECT type the structure of OBJECT..
USING P_OBJECT_NAME P_VERB P_IDOCTYPE.

4 REPLIES 4
Read only

former_member156446
Active Contributor
0 Likes
565

Hi Raju

if you are planning to send the table of OBJECT

use this way ..


PERFORM BUILD_OBJECT_FROM_IDOC tables OBJECT USING  P_OBJNME P_VERB P_IDOCTP.

FORM BUILD_OBJECT_FROM_IDOC
tables p_OBJECT type the structure of OBJECT..
USING P_OBJECT_NAME P_VERB P_IDOCTYPE.

Read only

0 Likes
564

Thanks Jay,

FORM BUILD_OBJECT_FROM_IDOC

tables p_OBJECT type structure of OBJECT

USING P_OBJECT_NAME P_VERB P_IDOCTYPE

with this code i have the following error.

For typing of TABLES parameters, only table types should be used . . .

Please suggest,

Thanks,

Read only

0 Likes
564

Hi Raju


 FORM BUILD_OBJECT_FROM_IDOC
tables p_OBJECT *type structure of OBJECT*
USING P_OBJECT_NAME P_VERB P_IDOCTYPE

 FORM BUILD_OBJECT_FROM_IDOC
tables p_OBJECT type wa_object "<<<<<< give the structure name of type you declared this table..
USING P_OBJECT_NAME P_VERB P_IDOCTYPE.

types: begin of itab,
              f1 
              f2 
               .
               .
        end of itab.
data: object type standard table of itab.

in you form p_OBJECT type itab. "<<<<ur structure name of object

Award points if helpful

Read only

Former Member
0 Likes
564

Pass it as a table, not a parameter.

Rob