Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

assign users entered ID to the the import paramater

Hello.

I want to pass to the below FM an ID -> IALPREPID which is a field of the table CCIHT_IPEVA .

How can I assign users entered ID to the the import paramater I_IEPVA_SELCRIT ?

FUNCTION incident_query .
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(I_VALDAT) TYPE  ESEDIAGVD DEFAULT SY-DATUM
*"     VALUE(I_INCIDENT_SELCRIT) TYPE RFC_IASEL OPTIONAL
*"     VALUE(I_IEPVA_SELCRIT) TYPE  CCIHT_IPEVA OPTIONAL
*"  EXPORTING
*"     VALUE(E_RECORDS_FOUND) TYPE  SY-TABIX
*"     VALUE(E_REPIDFOUND) TYPE  SY-SUBRC
*"  TABLES
*"      E_HEADER_TAB TYPE  IT_RFC_IALH
*"      E_INVPERSONS_TAB TYPE  IT_RFC_IP OPTIONAL
*"      E_INVINJID_TAB TYPE  RFC_IP OPTIONAL
*"      E_RETURN_TAB TYPE  IT_RFC_RETURN OPTIONAL
*"----------------------------------------------------------------------

Tags:
replied

Hi,

You need to do as follows;

Data i_iepva_selcript type CCIHT_IPEVA.
 i_iepva_selcript-IALREPPID = '00000000000000000124'.

And while calling the FM give import parameter as;

call function 'incident_query'
exporting
I_IEPVA_SELCRIT =  i_iepva_selcript

....

....

....

Regards

Karthik D

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question