cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC type SALESORDER_CREATEFROMDAT202

Former Member
0 Kudos

Hi together,

since we have to add new fields to an interface, I want to extend IDOC type SALESORDER_CREATEFROMDAT202. Apparently this doesn´t work with Trx. we 30/31 - similar to

DEBMAS05 eg.

Thanks for any help

Gerd

Accepted Solutions (0)

Answers (3)

Answers (3)

prateek
Active Contributor
0 Kudos

I have done this recently. The procedure is same and it should work. First create a custom segment in we31. Then create a custom "Extension" object in we30 and assign the basic type as SALESORDER_CREATEFROMDAT202. Then add segment to it. Save and release. u ll have to reimport the idoc structure in XI

Regards,

Prateek

Former Member
0 Kudos

Hi,

That´s exactly what I´ve been trying.

But everytime I put SALESORDER_CREATEFROMDAT202 as "linked basic type" I receive the error message "ACTION IS NOT POSSIBLE FOR GENERATED IDOCTYPS".

What´s the problem?

Former Member
0 Kudos

Hi,

Did u followed the exact process which is mentioned in the weblog

chirag

Former Member
0 Kudos

Hi,

Yep!

1. we31 --> OK

2. we30 --> I select radio button "create new" and put SALESORDER_CREATEFROMDAT202 for "linked basis type".

Then I get the error message "ACTION IS NOT POSSIBLE FOR GENERATED IDOC TYPES"

Former Member
0 Kudos

Hi,

Can u check whether that basic type has all the required strucutre in it.

write the basic type name and say display and check the strucutre. if it is present then it should not give any problem.

chirag

Former Member
0 Kudos

Hi,

sorry I can´t assess if basic type SALESORDER_CREATEFROMDAT202 contains all required segements. It´s a standard type!

The check says that all segements are SAP segments. Does that help?

Former Member
0 Kudos

Hi,

When u put the basic type SALESORDER_CREATEFROMDAT202 in WE30 tcode and say display then wat status messge r u getting at the left bottom.

R u getting the below status message.

Basic type SALESORDER_CREATEFROMDAT202 does not exist.

chirag

Former Member
0 Kudos

Hi,

No. Type SALESORDER_CREATEFROMDAT202 is beeing displayed - without any status message by the way!

Former Member
0 Kudos

Hi,

Usually wat happen is

when u say display it shows u all the segment and element relation ship that is called as IDOC strucutre.

I m not getting why u r not able to see the IDOC strucutre,

R u putting the name starting with Z and selecting the option create and selecting the basic type SALESORDER_CREATEFROMDAT202 in WE30 tcode.

can u pls let me nkow the step by step process wat exactly u r doing.

chirag

Former Member
0 Kudos

Hi,

I can display the basic type SALESORDER_CREATEFROMDAT202. That´s not the problem.

My problem is that I can´t create an extension linked on this very basic type.

Gerd

turmoll
Active Contributor
0 Kudos

>

> Then I get the error message "ACTION IS NOT POSSIBLE FOR GENERATED IDOC TYPES"

Hi,

This IDoc type has been generated from BAPI: SALESORDER_CREATEFROMDAT2. I'm not sure if you can just extend this IDoc type as you extend normal IDoc types (the ones that are not generated from BAPI)

I think that you'd rather need to do a copy of BAPI: SALESORDER_CREATEFROMDAT2 to eg. ZSALESORDER_CREATEFROMDAT2 and then you need to generate a new IDoc type from this new BAPI.

Useful tcode: BDBG

Useful link: [Asynchronous BAPI-ALE Communication|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2a1dd5d3-0801-0010-ed8d-bd797ed922cb]

Regards,

Jakub

Former Member
0 Kudos

Hi,

1. Go to transaction we30 put the IDoc name and select radio button Extension

2. select create

3. on the pop-up screen there are three radio button. Just select 'Create New' and in the text corresponding select the same IDoc SALESORDER_CREATEFROMDAT202 and prefix it by ZSALESORDER_CREATEFROMDAT202 . now give description and press enter and your extension will get created.

Regards

vijaya

turmoll
Active Contributor
0 Kudos

Hi,

It will not work since this IDoc corresponds the following BAPI: BAPI_SALESORDER_CREATEFROMDAT2 and it looks like you are not able to extend IDocs created by tcode BDBG. Each segments in the IDoc SALESORDER_CREATEFROMDAT2 represents import/tables paramters of FM: BAPI_SALESORDER_CREATEFROMDAT2. Normally , first you create the BAPI and then you generate the IDoc type by tcode BDBG.

If you had extend the IDoc type by we30 you should have had to also extend the parameters in FM but this is not how it is. ;(

Regards,

Jakub

Former Member
0 Kudos

Hi,

Sorry but that doesn´t work.

- we30 --> "object name" 'ZADDDATB' (as extenstion) --> CREATE

- popup window: "create new", linked basic type 'ZSALESORDER_CREATEFROMDAT202'

This creates an error message "ZSALESORDER_CREATEFROMDAT202" does not exist!

I think, Jakub´s idea is not bad...but I don´t have a clue how this works (trx. BDBG...)

Best regards

Gerd

UUUPS - Sorry I replied to the wrong message.

Edited by: Gerd Knoerle on Apr 8, 2008 7:51 AM

Former Member
0 Kudos

Hi Jakub,

thus, you think there´s no chance to append customer own fields to IDOC type SALESORDER_CREATEFROMDAT202?

Gerd

turmoll
Active Contributor
0 Kudos

I think, Jakub´s idea is not bad...but I don´t have a clue how this works (trx. BDBG...)

Ref. the link in my previous post.

Regards,

Jakub

turmoll
Active Contributor
0 Kudos

thus, you think there´s no chance to append customer own fields to IDOC type SALESORDER_CREATEFROMDAT202?

I guess not via we30 but you can build your custom BAPI and then generate the IDoc. Ref. link provided earlier.

Regards,

Jakub

turmoll
Active Contributor
0 Kudos

Hi,

I did some debugging and it looks like you will always get there error "Action is not possible for generated idoctypes" while you try to extend not Basic IDoc types.

Other words, you can extend all IDocs that are not "generated". Table: EDBAS - Basic types, field - GENERATED.

Regards,

Jakub

Former Member
0 Kudos

Hi Jakub,

I´ve found an OSS-note which could be helpful - If I would understand it

I´m talking about note #143580.

Perhaps you (or somebody else) can help me to solve this puzzle.

Here´s what the note says:

1. include a customer own include structure CUTEST to table VBAP (e.g.)

2. create a checkbox structure CUTESTX

3. These structures have to be added to structures VBAPKOZ, VBAPKOZX, BAPE_VBAP and

BAPE_VBAPX

ad 2.) How do you create a checkbox structure?

ad 3.) What structure(S) - I thought there has to be created only ONE?

Thanks for any help

Gerd

turmoll
Active Contributor
0 Kudos

I´m talking about note #143580.

This note describes how to make use of enhancements for BAPI. Maybe if it handles enhancements for BAPI it will also support enhancement of IDocs created from BAPI but I don't know.

Get familiar with the enhancement technology for BAPI - Customer Enhancement and Modification to BAPIs

Then I would try to post BAPI (via se37) using EXTENSIONIN table just to know how to fill E1BPPAREX segment in the IDoc. While you managed to create SO with "additional" fields you might try to send the IDoc.

Regards,

Jakub

PS. English translations of German's notes are bad.

Former Member
0 Kudos

Hi Jakub,

you talk about bad translations of even worse German notes?

Do you know how to populate this "checkpox structure"?

I followed the instructions given in note #143580 and got an error message "field cfield1 is used twice"

--> that message pops up when you try to inlcude structures cutest and cutestx in structure vbapkoz.

Thanks for any help

Gerd

turmoll
Active Contributor
0 Kudos

> Do you know how to populate this "checkpox structure"?

Do you have to do that? I haven't found it in the note.

> I followed the instructions given in note #143580 and got an error message "field cfield1 is used twice"

> --> that message pops up when you try to inlcude structures cutest and cutestx in structure vbapkoz.

Maybe it's because that in point 2 might be an error - I guess there should be just two fields:

CFIELD1 CHAR1

CFIELD2 CHAR1

I guess that all you need to fill in is a table: EXTENSION but I might be wrong.

Regards,

Jakub

Former Member
0 Kudos

Hi,

I have a requirement that i have to create a billing document for those sales order that are created by SALESORDER_CREATEFROMDAT202 std Idoc...

Please help me out how can i do that..

Regards,

Prashant

Former Member
0 Kudos

Hi gerd

kindly follow these links to enhance data in IDOCs

https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=extendIDOCtype&adv=false&sortby=cm_rnd_rankvalue

/people/michal.krawczyk2/blog/2006/11/14/xipi-data-type-enhancements-standard-business-partner

/people/jiaxiang.huang/blog/2008/01/14/some-experience-on-idoc-enhancement

hope this may solve your problem

Thanks

sandeep

PS: if helpful Kindly reward points

Former Member
0 Kudos

Hi,

Did u followed the same process.

/people/jiaxiang.huang/blog/2008/01/14/some-experience-on-idoc-enhancement

Once u enhanced the IDOC then u need to import the enhanced IDOC in IR and use that.

chirag