‎2012 Aug 23 7:37 AM
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.
‎2012 Aug 23 8:50 AM
Hi Pavan,
Please go through the below scn links.
<link farm removed>
Regards,
Rajesh
Message was edited by: Suhas Saha
‎2012 Aug 23 11:46 AM
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
‎2012 Aug 23 12:03 PM
‎2012 Aug 23 12:14 PM
The macros can actually be seen inside the include RPCXB200 which is inside include RPC2B200 in the code I have shown above.
Regards,
Kumud
‎2012 Aug 24 7:35 AM
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.
‎2012 Aug 24 8:29 AM
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
‎2012 Aug 24 8:47 AM
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