on 01-11-2007 12:33 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.