Skip to Content

Enhancing the DS.

Hi ,

I want to enhance the DS by adding the field in one table , but here there is no connection between the DS and the TABLE. Let me say with an example.

DS----> a,b,c,d

table1---->d,e,f

table2---->f,g,h

now i need the enhance the DS by adding the field h. How to write the code.

Regards,

RaviChandra

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Apr 26, 2012 at 08:20 AM

    Hi Ravi

    Let me rewrite your need you want to add field h from table2 in DS ok?

    But the connection between DS and table2 is coming through table1.

    If this is the case, then enhance the DS with the field and goto CMOD, func exit ...001 and write a case with your DS with two select to grab the value from table2.

    Thank you

    Yiannis

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 26, 2012 at 08:57 AM

    Enhance the Structure of DS by adding field 'h' in RSA6.

    Go to CMOD at the corresponding exit.

    Code:

    Loop at I_T_DATA into W_T_DATA.

    Select f into var_f from table1

    where w_t_data - d = table1 - d.

    Select h into var_h from table2

    where var_f = table2 - f.

    w_t_data - h = var_h.

    Append w_t_data into I_T_DATA.

    ENDLOOP.

    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.