Skip to Content
author's profile photo Former Member
Former Member

to modify a data package in start routine

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Jan 11, 2007 at 12:51 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2007 at 05:45 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2007 at 06:25 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.