cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Friends,

I have to map data from customs export declaration document to a print form.

I am new to using GUID keys and do not know how to use them while selecting data from tables.

Further, I am not sure how to link the screen fields in the customs export declaration to table fields in the GTS system as i have to display data in the form based on the value in screen fields in the customs document.

Points will be rewarded for helpful answers.

Regards,

John.

0 Likes
View Entire Topic
Former Member
0 Likes

John,

Select data from the table /SAPSLL/CUHD

by passing the customs document to the field CORDER.

Get the GUID_CUHD from the above table and pass this to

the table /SAPSLL/CUIT and get all the item relevant data.

I guess you can also write a join.

As most of the data is in the parameter IS_PRN, I do not think you've to do lot of selects unless your requirement needs you to write.

For the structures H_GEN & H_REF, just pass the data

to the variables(output parameters on the form) as

Incoterms vairable = IS_PRN-H_GEN-INCOT.

Similarly, for the table types H_PAR, I_GEN etc...

read the table H_PAR into a workarea(WA_H_PAR) of TYPE /SAPSLL/PRN_H_PAR_S and move data.

Partner number variable = WA_H_PAR-PARNO.

Hope this helps.

Thanks

Former Member
0 Likes

Hi RK,

Thank you for your reply.

I have copied the standard interface /SAPSLL/PF_US_7525V. The IS_PRN parameter is present in the import parameters of the interface.

The form layout is a customized one that i created from scratch.

I would like to get clarified on one question: Is the data from customs export declaration document automatically transferred to the IS_PRN parameter WITHOUT the need for any selection statement from /SAPSLL/CUHD or /

SAPSLL/CUIT or any other tables?

This question may be a very basic question but i need to know if this is the case. Please clarify.

Regards,

John.

Former Member
0 Likes

Hi RK,

Thank You for your reply.

I am able to print data from is_prn-h_gen to the form.

I have to print some header text from the document. I checked out the IS_PRN structure and found out that IS_PRN-H_TXT of type (/SAPSLL/PRN_H_TXT_T) might contain the header text values from the document. Please let me know if this is true.

Further, the structure looks pretty complex as

/SAPSLL/PNT_H_TXT_S has an internal table TLINES that has the field TDLINE that, in my estimation, holds the text id value.

Please give me few hints on how to access the value of the header texts from IS_PRN structure.

Please reply.

Regards,

John.