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

trigger MATMAS with MM02 ?

Former Member
0 Likes
1,697

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.

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.

5 REPLIES 5
Read only

Former Member
0 Likes
858

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

Read only

0 Likes
858

Hi Mandeep Sindhu ,

It should be triggerd when I click ok SAVE button..

Read only

Former Member
0 Likes
858

in output mode u need to select transfer idoc immediately

Madhavi

Read only

0 Likes
858

Hi Madhavi t,

Where in output mode?

Read only

Former Member
0 Likes
858

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..