Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fill The Internal Table

former_member203806
Participant
0 Likes
994

Hi All

Any body help me, i have below internal Table

( RS1- Release status1,  RS2- Release status2, RC1- Release Code1,  RC2 - Release Code 2 )

Po numberRS1RS2RC1RC2
450000010XX5052
450000011X7053

I want to make below internal table from above data.

How this is possible.......

( RC - Release Code , RS - Release Status )

RCRSPO Number
50X450000010
52X450000010
70X450000011
53450000011

Rgds

PP

Moderator messge - Spoon feeding is not allowed in the forums. Points have been removed & thread locked.

Message was edited by: Suhas Saha

Hi All

Any body help me, i have below internal Table

( RS1- Release status1,  RS2- Release status2, RC1- Release Code1,  RC2 - Release Code 2 )

Po numberRS1RS2RC1RC2
450000010XX5052
450000011X7053

I want to make below internal table from above data.

How this is possible.......

( RC - Release Code , RS - Release Status )

RCRSPO Number
50X450000010
52X450000010
70X450000011
53450000011

Rgds

PP

Moderator messge - Spoon feeding is not allowed in the forums. Points have been removed & thread locked.

Message was edited by: Suhas Saha

6 REPLIES 6
Read only

Former Member
0 Likes
962

LOOP AT itab1.

     CLEAR itab2.

     itab2-po_number = itab1-po_number.

     itab2-rc              = itab1-rc1.

     itab2-rs              = itab1-rs1.

     APPEND itab2.

     CLEAR itab2.

     itab2-po_number = itab1-po_number.

     itab2-rc              = itab1-rc2.

     itab2-rs              = itab1-rs2.

     APPEND itab2.

ENDLOOP.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
962

What did you try, which problem did you get, converting the other way with creation of a dynamic table may cause problem, but this way should not be difficult ?

(LOOP/ENDLOOP, IF IS NOT INITIAL/ENDIF, MOVE and APPEND statements required)

Regards,

Raymond

Read only

0 Likes
962

Hi Raymond

I tried to Dynamic tables......any way thanks for reply...

PP

Read only

Former Member
0 Likes
962

First , loop the source internal table and just pass RS1 and RC1 values into internal table and again do the same for RS2 and RC2. Then you can easily combine those two internal tables and get desired output.

Read only

former_member203806
Participant
0 Likes
962

Hi Amol

Another issue i faced , in Release status showing as XXX

i need to separate XXX to  'X'   'X'   'X

Rgds

PP'

Read only

0 Likes
962

Is release status is 3 character ?

Then use,

Data: gd_status TYPE string VALUE 'XXX'

         gd_c1  TYPE c,

         gd_c2  TYPE c,

         gd_c3  TYPE c.


gd_c1 = gd_status(1).

gd_c2 = gd_status+1(1).

gd_c3 = gd_status+2(1).