Skip to Content
0
Former Member
Nov 14, 2012 at 06:45 AM

Using BAPI_INSPOPER_RECORDRESULTS , ORIGINAL_INPUT is not recording.

202 Views

Hello Guru,

When I used BAPI_INSPOPER_RECORDRESULTS for record Characteristic results. Result fields are recorded successfully, but original value ( ORIGINAL_INPUT ) not recorded.

Please advice,

Below is the sample code used :

DATA: BEGIN OF ichar_results OCCURS 0.

INCLUDE STRUCTURE BAPI2045D2.

DATA: END OF ichar_results.

DATA: BEGIN OF bapireturn2 OCCURS 0.

INCLUDE STRUCTURE bapiret2.

DATA: END OF bapireturn2.

ichar_results-insplot = '030000056083'.
ichar_results-inspoper = '0840'.
ichar_results-inspchar = '0010'.

ichar_results-closed = 'X'.

ichar_results-evaluated = 'X'.

ichar_results-evaluation = 'A'.

ichar_results-code1 = ‘A’.

ichar_results-code_grp1 = ‘ZAPPRCTY’. “Custom Code group.
ichar_results-ORIGINAL_INPUT = 'A APPROVED'.

APPEND ichar_results.

CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'

EXPORTING

INSPLOT = ‘030000056083'

INSPOPER = '0840'

IMPORTING

RETURN = bapireturn2

TABLES

CHAR_RESULTS = ichar_results.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'

IMPORTING

RETURN = bapireturn2.

Br

Garima