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

Exit for extended batmas02.

Former Member
0 Kudos
886

Hi All,

I have extended the batmas02 basic type. Does anyone know of an exit I can use to populate the extended segment?

Regards,

James.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Kudos
628

Hi,

Why don't you copy fm IDOC_INPUT_BATMAS to Z*FM and adapt it to your needs ?

Then use the new FM to handle the idoc!

cheerz;

8 REPLIES 8
Read only

Former Member
0 Kudos
629

Hi,

Why don't you copy fm IDOC_INPUT_BATMAS to Z*FM and adapt it to your needs ?

Then use the new FM to handle the idoc!

cheerz;

Read only

0 Kudos
628

Thanks Stephan, I should have specified that this is an outbound, created from change pointers. If I can avoid it, i don't want to have to copy and modify MASTERIDOC_CREATE_SMD_BATMAS.

Read only

0 Kudos
628

James,

In all cases this has to be done on both sides doesn't it ?

cheerz

Read only

0 Kudos
628

Thanks Stephan,

I am very surprised that there is no exit.

Rgds,

James.

Read only

0 Kudos
628

James,

The place I work here does the same! They copy the standard and then they modify it according to their needs!

There is maybe an exit but I can't find it and nobody here have heard about exits!

I told you this has to be done on both sides because If you send data, the 'person' that receive it have to handle it...

thx for the reward!

cheerz

Read only

0 Kudos
628

Thanks Stephan. I'll have a quick search for an exit in the BAPI BAPI_BATCH_SAVE_REPLICA which is used to generate the IDOC. I'll let you know what my outcome is.

Read only

Former Member
0 Kudos
628

I went through the program and there is no exit to populate the additinal segments. So I guess u will have to copy the FM and make changes in following perfom in the FM MASTERIDOC_CREATE_SMD_BATMAS, the path is as follows...

MASTERIDOC_CREATE_SMD_BATMAS->BAPI_BATCH_REPLICATE>ALE_BATCH_SAVE_REPLICA->IDOC_BATCH_SAVE_REPLICA

Hope this helps.

Read only

0 Kudos
628

Thanks also Abhijit. I just read your answer.