cancel
Showing results for 
Search instead for 
Did you mean: 

How to Capture Value from input output field

Former Member
0 Kudos

Hi Experts,

Im my requirment i have to capture Delivery Number value from input output field and it should be passed to a functiom module which is called through a service call. i know that we can capture the value using get_attribute and it will be stored in a varaible.

but exactly my problem is when am using this value in FM its throughing an Error that 'Variable' is unknow.

how to solve this any hint.

Thanks,

Sandy.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sandy,

First get that attribute value using get_atttribute and store in local variable.

For ex :

  • get single attribute

lo_el_pack_mat->get_attribute(

EXPORTING

name = `INT_HAND_UNIT`

IMPORTING

value = lv_var ).

and pass this value to FM..like

  • Calling BAPI_HU_DELETE_FROM_DEL

CALL FUNCTION 'BAPI_HU_DELETE_FROM_DEL'

EXPORTING

DELIVERY = lv_var // Ensure that this delivery value and lv_var value is of same type.

HUKEY = HUKEY

TABLES

RETURN = Return1.

Hope it helps..

Cheers,

Kris.

Former Member
0 Kudos

Hi Kris,

Iam passing del number in the same way but it's showing an error that 'Variable' is unknown.

Thanks,

Sandy.

Former Member
0 Kudos

Hi Sandy,

Kindly post your code.

Cheers,

Kris.

Former Member
0 Kudos

Thank you kris am able to pass the delivery number now. Actually missed out binding it to the importing value of function module.