Application Development 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: 

Create Idoc from transaction

Former Member
0 Kudos

Hi,

I want to create a Idoc from a transaction.

For example, if i will execute transaction "MM02" to change the material detail then i want to create a idoc for that changed material,

Does anyone have idea regarding this?

{{Actually remaining configuration i have done to sent a idoc from one system to other system but right now i am generating idoc manually using transaction "BD10" in which i am selecting the material manually.

Now i want the whole procedure to be done automatically so that whenever a change in material will be done, a idoc will be generated.}}

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi sumit,

Why don't you use the Change pointers concept for generating the idoc. This will generate the idoc as soon as u change the material data in MM02.

10 REPLIES 10

Former Member
0 Kudos

Hi sumit,

Why don't you use the Change pointers concept for generating the idoc. This will generate the idoc as soon as u change the material data in MM02.

former_member404244
Active Contributor
0 Kudos

Hi sumit,

what ever ravi told thats ryt?Use change pointers method to trigger an idoc whenever changes r done in the material.

Regards,

Nagaraj

0 Kudos

Hi,

When i am using change pointers, in that case i am not able to generate because i am not able to distribute the distribution model even though i have dont the configuration. Thats why i want to know some other method to solve my problem.

Former Member
0 Kudos

Hi sumit gupta,

if your are not being able to distribute then you might be getting some error, can you please send me the error.

and one more thing you cann't able to distribute then its not due to usage of change pointers.

0 Kudos

Okey,

if i will assume that u r right, then one thing i want to know that how ur change pointer will generate idoc whenever "MM02" will b called? Actually when i am changing the material detail, there is no idoc generated automatically, I have to run transaction "BD21" to generate IDOC after changing the material details.

I want to make whole process automatically after making change in material(No manual execution of "BD21").

Can u help me for this??

Note:- I have already created changed pointer in transaction "BD50" for material type "MATMAS".

Former Member
0 Kudos

look summit the idoc will be automatically generated if in your partner profile you choose trigger immediatly other than collect idoc.

if its trigger immediatly then its sure that when you change the material details and press save you will get the popup like 1 master idoc generated and i communication idoc generated

look i don't know what you configure you tell me the procedure and steps you followed to configure change pointers forn MATMAS

0 Kudos

Actually i have already set "Trigger idoc immediately" in WE20. I am using Transactional RFC instead of file in we21.

Configuration for WE21 is for port defination i am using transactional RFC which is defined in SM59.

In WE20 i am creating Logical system in which i am using message type MATMAS in outbound for which i am using transactional RFC in receiver port.Output mode i am choosing "TransferIdoc immediately". and Idoc type is "MATMAS02".

In BD50 i am assigning change pointer to "MATMAS".

Also i have created distribution model but i am not able to distribute which i have already told u.

At the receiver side i am creating another logical system in WE20 in which i am defining message type "MATMAS" as inbound parameter.Process Code is "MATM". and i am choosing "Trigger immediately" in processing option.

So this is the configuration i have done and i m able to send idoc successfully but still i cant make it automatically. I have to use transaction bd21 to create idoc from change pointer. This is the only problem i am getting.

So anything else is required to be done????????

ferry_lianto
Active Contributor
0 Kudos

Hi Sumit,

You need to schedule a job to execute BD21 which will run periodically (let's say every 5-10 minutes).

Other alternative is to find MM02 user exits to execute BD21 during/after save material changes.

Hope this will give you an idea.

Regards,

Ferry Lianto

Please reward points if helpful.

0 Kudos

Okey i think it is a good idea to work on User Exit.

I will try for that.

Thanks.

But still i want to know is it possible to make it automatically without doing any coding.

If u read the reply of "ravikumar pakalapati" to my question there he is asking me to use change pointers.

So is it possible to make it automatic, because even i have heard that using change pointer, one can generate idoc automatically.

And whatever configuration i have done, i have mentioned in my previous reply. Check it.

Former Member
0 Kudos

Hi summit,

what ever the configuration you have done is correct for the change pointers. but see the transaction BD60 too and see that function module masteridoc_create_smd_matmas is assigned to message type matmas and regarding the distribution model you didn't send me the error you are getting while creating the model view. if you are not being able to create then there might be one model already existing for the matmas. then if you cann't generate partner profile then you might get some error regarding the connection to RFC that you mention in the port. so if these things go correct then i am sure that its will be automatic generation of IDOC. Because i have done the same with different message type which is a custom one. And while generating the partner profile in bd64 see that output mode is trigger immediatly.

one more thing is you need to inbound configuration for matmas. all bd51,we57 we20.

i think this will help you.