Application Development 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: 

assign users entered ID to the the import paramater

Former Member
0 Kudos

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
*"----------------------------------------------------------------------

1 ACCEPTED SOLUTION

Former Member
0 Kudos

This aasignment doesnt work.

I_IEPVA_SELCRIT = I_IEPVA_SELCRIT-IALREPPID.

As import paramater I type in 00000000000000000124 and what happens

In the debugger I see IDOUZ = 00000000000000000124

and not IALREPID = 00000000000000000124.

I_IEPVA_SELCRIT-IALREPPID must have the value 00000000000000000124.

4 REPLIES 4

Former Member
0 Kudos

hi,

From user from point of view You can pass the data to FM in the following ways.

Create the Selection-screen in the report and pass those those values to FM and display the desired output.

Create a screen, in that screen create the fields which are similar to FM import values and In the PAI of that screen pass those values to the screen and display the desired output.

Former Member
0 Kudos

Hi ,

You need to query the CCIHT_IPEVA table before calling the FM and store the IALPREPID in a temporary variable.

While using call function to call the function assign the variable to the importing parameter I_IEPVA_SELCRIT.

Regards

Karthik D

Former Member
0 Kudos

This aasignment doesnt work.

I_IEPVA_SELCRIT = I_IEPVA_SELCRIT-IALREPPID.

As import paramater I type in 00000000000000000124 and what happens

In the debugger I see IDOUZ = 00000000000000000124

and not IALREPID = 00000000000000000124.

I_IEPVA_SELCRIT-IALREPPID must have the value 00000000000000000124.

0 Kudos

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