cancel
Showing results for 
Search instead for 
Did you mean: 

to modify a data package in start routine

former_member189410
Participant
0 Kudos

Hi,

This is the code for modifying a value of amount_17

but its not modifying it... can anyone help me out.

in this /BIC/CSZGGN_INFOSOURCE. contains these fields .

SALESORG

QUANTITY

AMOUNT_17

UNIT

CURRENCY

*************************************declaration begin

TYPES:

BEGIN OF DATA_PACKAGE_STRUCTURE.

INCLUDE STRUCTURE /BIC/CSZGGN_INFOSOURCE.

TYPES:

RECNO LIKE sy-tabix,

END OF DATA_PACKAGE_STRUCTURE.

DATA:

DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE

WITH HEADER LINE

WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.

********************************************code begin

loop at DATA_PACKAGE .

if DATA_PACKAGE-amount_17 EQ 234.

DATA_PACKAGE-amount_17 = 230 .

modify DATA_PACKAGE.

endif .

endloop.

Regards,

Nishu Gupta

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Nishu,

Try doing like this .

loop at DATA_PACKAGE where amount_17(Give the Technical name ) EQ 234 .

DATA_PACKAGE-amount_17 = 230 .

modify DATA_PACKAGE.

endif .

endloop.

Thanks = Points.

Former Member
0 Kudos

Hi,

The code should work

Loop at DATA_PACKAGE .

if DATA_PACKAGE-amount_17 EQ 234.

DATA_PACKAGE-amount_17 = 230 .

modify DATA_PACKAGE.

endif .

endloop.

Make sure that the communication structure is in active form with a field 0amount_17.

With rgds,

Anil Kumar Sharma .P

former_member184494
Active Contributor
0 Kudos

Nishu,

You would have to give the correct data element for this IOBJ ...

oop at DATA_PACKAGE .

if DATA_PACKAGE-/bic/yamount_17 EQ 234.

DATA_PACKAGE-/bic/yamount_17 = 230 .

modify DATA_PACKAGE.

endif .

endloop.

Check if this works for you...

Arun

Assign points if useful

former_member189410
Participant
0 Kudos

Hi Arun,

its giving syntax error

/bic/yamount_17, /BI0/OIAMOUNT_17 is not a component of data_package.

Thnx.

Regards ,

Nishu Gupta

former_member189410
Participant
0 Kudos

Hi Arun,

its giving syntax error

/bic/yamount_17, /BI0/OIAMOUNT_17 is not a component of data_package.

Thnx.

Regards ,

Nishu Gupta

former_member189410
Participant
0 Kudos

Hi Arun,

its giving a syntax error

/bic/yamount_17, /BI0/OIAMOUNT_17 is not a component of data_package.

plz help me out for dis problem .

Thnx.

Regards ,

Nishu Gupta