01-29-2008 9:21 AM
Hi,
If have done this:
BD61 - is activated
BD50 - MATMAS is activated
When I change material using MM02 no IDOC is triggerd.
When I use program RBDMIDOC --> MATMAS then IDOC is triggerd !!
plz, help.
01-29-2008 12:37 PM
Hi,
You have to schedule a job in background for program RBDMIDOC with the suitable variant.
The frequency of the job will depend upon your requirementm
01-29-2008 1:06 PM
Hi Mandeep Sindhu ,
It should be triggerd when I click ok SAVE button..
01-29-2008 12:46 PM
in output mode u need to select transfer idoc immediately
Madhavi
01-29-2008 1:09 PM
02-05-2008 10:04 AM
Well,
I solved it but I have one more problem...
I used include: ZXMG0U02 with this code:
IF ( wmara-mtart = 'PART' AND ( wmbew-bklas = 'ONDL' OR wmbew-bklas = 'ACCL' ) ) OR wmara-mtart = 'BAND'.
CALL FUNCTION 'ZFB_SEND_IDOC'
IN BACKGROUND TASK DESTINATION 'NONE'
EXPORTING
i_matnr = wmara-matnr
I_MESTYP = 'MATMAS'.
ENDIF.
In FM 'ZFB_SEND_IDOC' I do some checks and send an IDOC with this code:
SUBMIT rbdmidoc
WITH mestyp EQ i_mestyp
AND RETURN.
EXIT.
Because Change pointers are active for MATMAS, every time someone use MM01 or MM02 IDOC wil be triggerd, BUT here it comes.:
If this is NOT true:
IF ( wmara-mtart = 'PART' AND ( wmbew-bklas = 'ONDL' OR wmbew-bklas = 'ACCL' ) ) OR wmara-mtart = 'BAND'
IDOC wil be triggerd and put 'on-hold' but it wont't be SEND.
THIS SHOULD NOT HAPPEN !! probably Change pointers??
So next time if this IS true:
IF ( wmara-mtart = 'PART' AND ( wmbew-bklas = 'ONDL' OR wmbew-bklas = 'ACCL' ) ) OR wmara-mtart = 'BAND'.
ALL MATMAS IDOC's wil be send....
How can i avoid putting IDOC 'on-hold' ?
I think it has something to do with Change pointers...
tnx..