10-16-2008 10:25 AM
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'
10-16-2008 12:05 PM
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.
10-16-2008 12:18 PM
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.
10-16-2008 9:18 PM
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.
10-17-2008 4:39 AM
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.