2009 Mar 24 11:47 AM
Hi,
While trying to trigger a warning using badi invoice_post sytem not showing warning message.Please help
2009 Mar 24 12:45 PM
HI,
Can you please elaborate your requirement ,so that exact badi can be searched.
Thanks,
Shailaja Ainala.
2009 Mar 24 12:56 PM
User wants to check a checkbox in PO level and trigger a waring msg during MIRO.But even if i try with all posibilites im not able to trugger a warning.Please find the below code for the BADI
INVOICE_UPDATE
DATA:LV_ZLDPNTY TYPE EKPO-ZLDPNTY,
WA_RSEG TYPE RSEG.
LOOP AT TI_RSEG_NEW INTO WA_RSEG.
SELECT SINGLE ZLDPNTY FROM EKPO INTO LV_ZLDPNTY WHERE EBELN = WA_RSEG- EBELN AND EBELP = WA_RSEG-EBELP.
IF LV_ZLDPNTY = 'X'.
MESSAGE ID 'ZFI' TYPE 'W' NUMBER '010' DISPLAY LIKE 'W'..
ENDIF.
ENDLOOP.
2009 Mar 24 2:08 PM
Hi
try the following:
DATA:LV_ZLDPNTY TYPE EKPO-ZLDPNTY,
WA_RSEG TYPE RSEG.
LOOP AT TI_RSEG_NEW INTO WA_RSEG.
SELECT SINGLE ZLDPNTY FROM EKPO INTO LV_ZLDPNTY
WHERE EBELN = WA_RSEG- EBELN
AND EBELP = WA_RSEG-EBELP.
IF LV_ZLDPNTY = 'X'.
* Here goes your message
MESSAGE W010(ZFI) RAISING error_with_message.
ENDIF.
ENDLOOP.
Best regards
Edited by: Pablo Casamayor on Mar 24, 2009 3:09 PM
2009 Mar 24 1:09 PM
Hi,
Once try this way ..........use the function module MRM_FINAL_CHECK ....in this use enhancement spot
and try tho check the records in the internal table t_drseg ......and do validations.
Thanks,
Shailaja Ainala.
2009 Mar 24 1:14 PM
Hi,
Refer Interface documentation of Badi 'INVOICE_UPDATE' you will find answer.
You should note that no system messages can be send in the methods. One exception here is the method CHANGE_AT_SAVE. Within this method, a system message can be issued if the exception ERROR_WITH_MESSAGE is triggered.
Regards
Adil