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

Fetching data from PCL3.

Former Member
0 Likes
1,174

Hi,

I am trying to fetch data from cluster table PCL3 using import statement. Its not working. Even tried class method CL_EAIN_REQUEST_DATA->LOAD_REQUEST but couldn't succeed. Can anyone please help.

Regards,

Pavan.

7 REPLIES 7
Read only

Former Member
0 Likes
1,068

Hi Pavan,

Please go through the below scn links.

<link farm removed>

Regards,

Rajesh

Message was edited by: Suhas Saha

Read only

kumud
Active Contributor
0 Likes
1,068

Hi Pavan,

You could post your code using Import statement here. My system does not have data in PCL3 cluster and hence I tried writing a sample code for PCL2 cluster and it works as below:

REPORT  ztest_chmuk.
TABLES PCL2.

INCLUDE RPC2B200.


****Fill cluster key
B2-KEY-PERNR = 'XXXXXXXX'.
B2-KEY-PABRJ = 'XXXX'.
B2-KEY-PABRP = 'XX'.
B2-KEY-CLTYP = 'X'.


*Import record
IMPORT B2-VERSION FROM DATABASE PCL2(B2) ID B2-KEY.
IF SY-SUBRC = 0.
***your code here
   ENDIF.

We have standard reports to read clusters like PCL2(B2) as RPCLSTB2. Did you find any standard

report to read PCL3 cluster? Thanks.

Regards,

Kumud

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,068

Old macro technology :

Look for the RMAC macros RP-IMP-Cn-xx and RP-EXP-Cn-xx are provided for importing and exporting data. (Here C3) - Look via SE16/SM30 at table TRMAC with keys RP-IMP-C3, you will get the actual code executed by those macros.

Regards,

Raymond

Read only

0 Likes
1,068

The macros can actually be seen inside the include RPCXB200 which is inside include RPC2B200 in the code I have shown above.

Regards,

Kumud

Read only

0 Likes
1,068

Hi Kumud,

I couldn't find any report for reading cluster PCL3. I know that it is relatively new and is for e-separation. I am really not good at macros.

Regards,

Pavan.

Read only

0 Likes
1,068

Hi Pavan,

Did you try in the way I have used Import for fetching data from PCL2? You could do little more search and find appropriate replacements of includes and variables to be used for  PCL3. You could paste your code here for better idea. Thanks.

Regards,

Kumud

Read only

0 Likes
1,068

If you are not friend with macros... just look at the codes in the TRMAC table and use it without using the macro (but this is not the manner prescribed by SAP) Don' forget to use the incluses related to PCL3 : RPC3AL00, RPC3AN00, RPC3AP00, etc. (*)

Regards,

Raymond

(*) Try to perform a where-used on those includes to find report samples