Application Development and Automation 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: 
Read only

Message from EXIT_SAPLVMDE_003

Former Member
0 Likes
962

Hi

In the user-exit EXIT_SAPLVMDE_003 I have done some coding for the idoc processing.

My issue is, that I can't get a message back to the idoc, for what happend in the user-exit.

The FM: EXIT_SAPLVMDE_003

is called from the FM: SD_IDOC_INPUT_PICKING in FM: CALL CUSTOMER-FUNCTION '003'

Hi

In the user-exit EXIT_SAPLVMDE_003 I have done some coding for the idoc processing.

My issue is, that I can't get a message back to the idoc, for what happend in the user-exit.

The FM: EXIT_SAPLVMDE_003

is called from the FM: SD_IDOC_INPUT_PICKING in FM: CALL CUSTOMER-FUNCTION '003'

4 REPLIES 4
Read only

Former Member
0 Likes
891

Hi,

Use like;

CALL FUNCTION 'POPUP_TO_DECIDE_INFO'

EXPORTING

defaultoption = 'N'

textline1 = text-001

textline2 = text-002

titel = text-003

start_column = 45

start_row = 9

IMPORTING

answer = answer.

IF answer EQ 'J'.

MESSAGE ID 'YMM' TYPE 'E' NUMBER '033' WITH TEXT-029.

SET SCREEN 0.

LEAVE SCREEN.

ENDIF.

Read only

0 Likes
891

Idocs is running in the background, and I will not have a pop-up...

The message must be sent to the IDoc message status automatic.

Sorry but I don't think that I can use your answer.

Read only

0 Likes
891

did you check the interface parameters for this function

""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(I_IDOCC) LIKE EDIDC STRUCTURE EDIDC

*" VALUE(I_VBKOK) LIKE VBKOK STRUCTURE VBKOK

*" EXPORTING

*" VALUE(E_VBKOK) LIKE VBKOK STRUCTURE VBKOK

*" TABLES

*" T_IDOCD STRUCTURE EDIDD

*" T_VBPOK STRUCTURE VBPOK

you can send back E_VBKOK, and the 2 tables after manipulating. Maybe it would help what you want to send back to IDOC processing.

Read only

0 Likes
891

you can try this in the include.

data: var(25).
field-symbols: <fs> type standard table.

var = '(SAPLVMDE)IDOC_STATUS[]'.

assign (var) to <fs>.
if sy-subrc eq 0.
" now append your messages here to the <fS> if you need to add any

endif.