Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How to pass the Dynamically table name and RELID in IMPORT x TO y FROM DATABASE dbtab(ar) ID Key

$
0
0

Hello Expert,

 

I wanted to know is there any way through which we can dynamically pass the table name in IMPORT condition.

For e.g.

 

DATA : PCLT TYPE DD03L-TABNAME.

DATA: SET_RELID TYPE T52RELID-RELID.

DATA: key TYPE PCLKEY.

DATA: text_version TYPE PVRSN.

 

DATA: BEGIN OF ptext OCCURS 132.

DATA: line(132).

DATA: END OF ptext.

 

SET_RELID = 'TX'.

PCLT = 'PCL1'.

KEY = '00001000004005     9999123119960101000'.

TEXT_VERSION = '01'.

 

 

IMPORT TEXT_VERSION PTEXT FROM DATABASE <PCLT>(<SET_RELID>) ID KEY.

 

If i use this then it gives me error message "The Dictionary structure or table "<PCLT>" is either not active or does not exist."

 

Kindly help me in this matter.

 

Thanks

Srikanth


Viewing all articles
Browse latest Browse all 8332

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>