SAP Function BAPISALESORDERCREATEFROMDAT2 - Sales order: Create Sales Order. You can use this method to create sales orders. You must enter at least sales order header data (via ORDERHEADERINstructure) and partner data (via the ORDERPARTNERS table) as inputparameters. Enter the item data via the ORDERITEMSIN table.
Yes, you are using right BAPI i.e. BAPISALESORDERCREATEFROMDAT2You will have to provide ORDERHEADERIN in that, Others are optional, even then if you have data for them, Provide it for better performance.For any confusion related to chosing BAPI: You may go to BAPI transaction and find out the correct BAPI according to ur need.
![]()
For example sales order relatd BAPI's areBAPISALESORDERCHANGE:Change Sales OrderBAPISALESORDERCREATEFROMDAT2: Create Sales OrderBAPISALESDOCUCREATEWITHDIA: Create Data Container with DialogBAPISALESORDERGETLIST:List of all Orders for Customerand so on.Reward if helpful.
Hi All,I tried to create an order with reference to a sales contract =using BAPISALESORDERCREATEFROMDAT21) I passed the contract number to the field REFDOC at header=level, But I got the error message' Document doesn't=have document ' where was the contract number =2E am i=missing anything? For me it worked to fill additional a header field and a line referenceas well.select single AUARTVBTYP into (wabapisdhd1-REFDOCTYPE,wabapisditm-REFDOCCA ) =20from VBAK where vbeln =3D contract number.Succes-Oorspronkelijk bericht-Van: beenaprabh. Via sap-r3-devmailto:[email protected]=20Verzonden: woensdag 10 mei 2006 12:53Aan: Groeneweg,Peter=20Onderwerp: sap-r3-dev Order with contract reference usingBAPISALESORDERCREATEFROMDAT2Hi All,I tried to create an order with reference to a sales contract usingBAPISALESORDERCREATEFROMDAT21) I passed the contract number to the field REFDOC at header level,But I got the error message' Document doesn't have document 'where was the contract number. Am i missing anything? Isthere any other values that has to be passed?Can anyone help me on this?=202) I also tried passing the contract number at item level as followsORDERITEMSIN -REFDOC =3D contract number ORDERITEMSIN-REFDOCIT 3Dcontract item numberORDERITEMSIN- REFDOCCA =3D'G'. =20=20This case sales order has been created without any reference to thecontract. I.e., The contract number field in the order remainedblank and the order quantity didn't get reduced from the open quantityof the contract.
But this sales order number got updated in thedocument flow of the contract.=20=20We are able to create with reference manually through VA01, but failswhen tries to create through Bapi.=20Are there any more values that has to be populated to the BAPI to referthe contract?=20Please help me on this issue.=20Thanks & RegardsBeena=20. Your Message is something like:'Document doesn't have documenttype.' I think that the message type is not properly interfaced.In general the best way to solve issues with the (sales) BAPI's is:The bapi gives in table with all the issued messages.Find the message ID and number.Do a whereused in se91 for this message.Place breakpoints on all occurances.Run the BAPI and examine the code that leads to the message.Succes, Peter=20-Oorspronkelijk bericht-Van: beenaprabh. Via sap-r3-devmailto:[email protected]=20Verzonden: woensdag 10 mei 2006 14:10Aan: Groeneweg,Peter=20Onderwerp: RE:sap-r3-dev RE: Order with contract reference usingBAPISALESORDERCREATEFROMDAT2Still it is not working for me.
R there any other fields to be passed?
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |