‎2012 Jan 17 10:41 AM
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
‎2012 Jan 17 11:46 AM
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.
‎2012 Jan 17 11:46 AM
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.
‎2012 Jan 17 12:05 PM
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
‎2012 Jan 17 12:09 PM
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
‎2012 Jan 17 3:05 PM
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
‎2012 Jan 19 11:51 AM
Hi All,
Is there any way to get the Personnel Area (T500PPERSA) related to any cluster id (PCL2RELID)of pcl2 table?
Regards,
Anuj