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

Structure defination inside include

Former Member
0 Likes
1,068

Hi All,

Is there any dynamic way to get the all structure name which are defined inside any include?

Like

In include RPC2b200 i want to get the name of all INCLUDE STRUCTURE like PC205,PC25X.PC20E.

Regards,

Anuj jain

1 ACCEPTED SOLUTION
Read only

brunobex
Active Participant
0 Likes
922

Hi Anuj Jain,

You can try the code below that is just one example of the include:


  TYPES: lty_code TYPE string.

  DATA:
        lt_code TYPE STANDARD TABLE OF lty_code.

  FIELD-SYMBOLS:
        <lf_code> LIKE LINE OF lt_code.

  READ REPORT 'RPC2RX02' INTO lt_code.

  loop at lt_code assigning <lf_code>.
   "IMPLEMENT YOUR LOGIC FOR SEARCH: INCLUDE STRUCTURE
  endloop.

Best Regards

Bruno Xavier.

5 REPLIES 5
Read only

brunobex
Active Participant
0 Likes
923

Hi Anuj Jain,

You can try the code below that is just one example of the include:


  TYPES: lty_code TYPE string.

  DATA:
        lt_code TYPE STANDARD TABLE OF lty_code.

  FIELD-SYMBOLS:
        <lf_code> LIKE LINE OF lt_code.

  READ REPORT 'RPC2RX02' INTO lt_code.

  loop at lt_code assigning <lf_code>.
   "IMPLEMENT YOUR LOGIC FOR SEARCH: INCLUDE STRUCTURE
  endloop.

Best Regards

Bruno Xavier.

Read only

Former Member
0 Likes
922

Thanks Bruno,

As this should be a genric approach so i can't do like this is there any RFC or table which maintain these values.

Rg,

Anuj jain

Read only

Former Member
0 Likes
922

also giving you my actual requirement i want to extract cluster data for pcl2 table for that i want to know the import structures of every relid(xx).which are present in specific include.

like

IMPORT TABLE1 ,TABLE2 FROM DATABASE PCLn(xx) ID xx-KEY.

Rg,

Anuj jain

Read only

0 Likes
922

use fm PYXX_READ_PAYROLL_RESULT to import the payroll results.

changing parameter RESULT is of type PAY99_RESULT.

there you can find all tables and structures.

alternatively you could use GET PAYROLL event of logocal database PNP. See documentation

Read only

Former Member
0 Likes
922

Hi All,

Is there any way to get the Personnel Area (T500PPERSA) related to any cluster id (PCL2RELID)of pcl2 table?

Regards,

Anuj