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

error in Import statement

Former Member
0 Likes
504

Hi All,

Please Suggest the Solution, I am getting sy-subrc = 4 while Import the data from RT table.

CALL FUNCTION 'PA03_PCR_READ'

EXPORTING

F_ABKRS = 'U2'

IMPORTING

F_CURRENT_BEGDA = LV_BEGDA

F_CURRENT_ENDDA = LV_ENDDA.

SELECT SEQNR FROM HRPY_RGDIR INTO LV_SEQNR

WHERE ABKRS = 'U2' AND

FPBEG = LV_BEGDA AND

FPEND = LV_ENDDA AND

SRTZA = 'A'.

CONCATENATE '10000016' LV_SEQNR-SEQNR INTO LV_ID.

ENDSELECT.

IMPORT RT = RT[] FROM DATABASE PCL2(RU) ID LV_ID.

Regards,

Vinod

3 REPLIES 3
Read only

Former Member
0 Likes
460

Hi,

You can try doing like:



import RT = RT from database Table Name(XX) id i_formname.

Hope it helps

Regards

Mansi

Read only

Former Member
0 Likes
460

Hi,

Please check whether the export structure and the import structure are the same. if they are not similar, the import statement returns sburc value 4.

Also check whether the Memory ID is present in the data cluster.

Regards,

Daz.

Read only

Former Member
0 Likes
460

got the solution thanks all