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

in loop have to copy the datas in 2 different work areas?

hi,

IF wa_elim-vessel = 'VANT'.
wa_bud_service_7070-hsl01 = wa_elim-wkg001.
wa_bud_service_7070-hsl04 = wa_elim-wkg004.
wa_bud_service_7070-hsl07 = wa_elim-wkg007.
wa_bud_service_7070-hsl10 = wa_elim-wkg010.
wa_bud_service_7070-prctr = 'VAN'.
COLLECT wa_bud_service_7070 INTO gt_bud_service_7070.

*Begin of changes - CR000037 - populating the internal tables
" (7120) - NEW ROLL OUT
wa_bud_service_7120-hsl01 = wa_elim-wkg001.
wa_bud_service_7120-hsl04 = wa_elim-wkg004.
wa_bud_service_7120-hsl07 = wa_elim-wkg007.
wa_bud_service_7120-hsl10 = wa_elim-wkg010.
wa_bud_service_7120-prctr = 'VAN'.
COLLECT wa_bud_service_7120 INTO gt_bud_service_7120.

endif

shall i do like this it wont throw any error ?

Regards

Maha.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 10, 2014 at 01:06 PM

    As far as I can see the code will not throw any error.

    But if the datalements are the same of both workarea's then you can also change the code to:

    IF wa_elim-vessel = 'VANT'.

    wa_bud_service_7070-hsl01 = wa_elim-wkg001.

    wa_bud_service_7070-hsl04 = wa_elim-wkg004.

    wa_bud_service_7070-hsl07 = wa_elim-wkg007.

    wa_bud_service_7070-hsl10 = wa_elim-wkg010.

    wa_bud_service_7070-prctr = 'VAN'.

    COLLECT wa_bud_service_7070 INTO gt_bud_service_7070.

    COLLECT wa_bud_service_7070 INTO gt_bud_service_7120.

    But the way you do it is not worse or better, just different.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2014 at 01:04 PM

    Hi Mahalakshmi,

    You can do it. It will not throw any error. I think you should always try what you think could be possible solution. There is no harm in trying out. I am sure you are trying this is development server.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2014 at 01:09 PM

    k thanks

    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.