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

extension Idoc

Former Member
0 Likes
2,433

Hi All,

i am developing extension idoc.

the basic idoc type is MBGMCR02. i want to extent this idoc adding two fields like MBLNR and MAKT_D.

i have created a Segment type which is having bouth fields.

but when i am creating extension IDoc system sowing error in 2nd screen "Action is not possible for generated idoctypes'.

help me please.

Hi All,

i am developing extension idoc.

the basic idoc type is MBGMCR02. i want to extent this idoc adding two fields like MBLNR and MAKT_D.

i have created a Segment type which is having bouth fields.

but when i am creating extension IDoc system sowing error in 2nd screen "Action is not possible for generated idoctypes'.

help me please.

13 REPLIES 13
Read only

Former Member
0 Likes
2,108

hi,

you can use MBGMCR03 IDoc without Extension.

look at the new Segment: E1BPPAREX.

you can define a DD Structure with your fields and assign them to this new Segment.

Structurename = DDD Structure

And Valuepart1 = FIELD1FIELD2

Read only

0 Likes
2,108

Hi Gordon,

Can u please explain properly? How can I assign DD Structure to this new Segment?

Read only

0 Likes
2,108

Hi,

You need to create the structure 'CI_DATA' with the required fields and map the fields like this

E1BPPAREX-STRUCTURE = 'CI_DATA'

E1BPPAREX-VALUEPART1 = ur field values.

Hope it was helpful.Ask me if u need more clarification

Rhea.

Read only

Former Member
0 Likes
2,108

Hello,

Here is what you need to do.

1. Create a Z-Segment in the Transaction WE31 with all the Fields that you want to have in the Extended IDoc

2. Specify a Z-IDoc Type , lets say ZMBGMCR02, and select the Option Extension in WE30. Click on Create Button.

3. A popup will be opened where you'll need to select the Option Create New. Specify the Linked Basic Type as MBGMCR02.

4. Add the Segment wherever you want at an appropriate position and choose the Optionality (Whether it is a Mandatory Segment) accordingly.

5. Save the Extension and you'll have the Extended IDoc Ready for your data storage.

Thanks and Regards,

Venkat Phani Prasad Konduri

Read only

0 Likes
2,108

Hi Konduri.

i know this. i want to know How can I assign DD Structure to this new Segment (E1BPPAREX)?

basic idoc type is MBGMCR02.

Read only

0 Likes
2,108

Mohanty,

you have to fill the PAREX Segment in the User/exit or BADI.

STRUCTURE = your DD Structure

You have to concatenate all fields of your Structure into the Valuepart fields until they are full

example:

structure = zstruc1

field1 = 'Hello'

field2 = 'World'

field3 = '12345'

Valuepart1 = 'HelloWorld12345'

Read only

0 Likes
2,108

Hi

BAPI_GOODSMVT_CREATE i need to Implement for MBGMCR03(basis type extension)??

Read only

0 Likes
2,108

Hello,

Which SAP version are you working on ? Atleast the extension segment E1BPPAREX is not present in the release 4.7 for the BAPI_GOODSMVT_CREATE function. Not sure of higher releases.

regards,

Advait

Read only

0 Likes
2,108

HI,

E1BPPAREX is available in MBGMCR03 with release 700.

Read only

0 Likes
2,108

Hi,

Yes From ECC 6 there is extension segment (E1BPPAREX) for MBGMCR03 idoc type.

Also there is parameter EXTENSIONIN in BAPI_GOODSMVT_CREATE bapi.

Rhea.

Read only

0 Likes
2,108

thank,

i have add 3 fields in that idoc type.can u help me which process code use for Goods Movement and which Function Module is usefull.

and which program need to be run.

Read only

0 Likes
2,108

The process code should be BAPI in your case.

regards,

Advait

Read only

0 Likes
2,108

Hi,

This idoc is of type BAPI-ALE interface. So for these idoc's the process code will be 'BAPI' . This idoc inbound process code agiain will call BAPI_GOODSMVT_CREATE FM to create a goods movement. So you can use this IDOC type by configuring the process code as BAPI in we21.

Also use parameter EXTENSIONIN in BAPI_GOODSMVT_CREATE bapi

Rhea.