LSMW-BAPI Method sales contract creation
Hi,
I have a requirement to create sales contract through batch input or bapi method or idoc .
Please let me know if there are any existing applicable methods for it.
with regards,
Bharath
Business object BUS2034, method CreateFromData.
There is no ALE interface delivered for this BAPI in our system but you might generate with transaction BDBG.
Regards Jack
Similar Messages
-
LSMW-BAPI Method sales order creation
Hi,
Please any one guide me to create sales order using bapi method.
Moderator message: please search for available information/documentation.
Edited by: Thomas Zloch on Jul 1, 2011 9:23 AMHi
USE AG German key word fro sold to part and check if there is any issue with leading zeros.Post if need more help . You can pass two record for one sales order in partner function. Please check that also. -
NEED BAPI FOR SALES CONTRACT CREATION AND EXTRACTION FOR Trans- PA41& PA43
Hi All,
I need the BAPI for T-code PA41 and PA43 for sales contract.
i would like to extract all the contract details for Contract data contains Table VEDA. And need to create contract.
Any body please help me out...
Please give me code if any one have how to do mapping ..
Thank you,
Vishnu.Hi Vichu,
Please search on SCN.
Regards
Abhii -
hi frndz..
I am trying LSMW - BAPI method for PO creation.
in have done 7 steps upto "assign file"
But system is not reading line item data.
it is reading header data only...
I want to knw, what should i have in my file, that system will read both data's.
or provide the file contents.
njoy SAP..
njoy Lyf..
Regards,
Amit P HiranCheck these LSMW links, you might get what you are looking for
http://www.sap123.com/showthread.php?t=98
http://help.sap.com/saphelp_erp2004/helpdata/en/7f/b6f45805b111d2b41c006094b944c8/content.htm
http://www.mydatabus.com/visitor.php?pt=downloadFile&tc=6289701541332&cl=53&cn=000003&uid=6659
http://www.erpgenie.com/sap/saptech/lsmw.htm
/people/hema.rao/blog/2006/09/14/lsmw--step-by-step
http://www.sap-img.com/sap-data-migration.htm
http://www.erpgenie.com/sap/saptech/lsmw.htm
http://www.allsaplinks.com/lsmw.html
http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc -
Passing Multiple Tax classification in LSMW BAPI method
Dear All,
Iam using LSMW BAPI method to create and change material master. I need to pass multiple tax classification values for a single material. How can I do this. The structure used in the BAPI for passing the tax classification data is MLAN. How can I create multiple numbers of this structure. Can anybody help me please.
Thanks in advance
Prathibdo you have this multiple records already in the source? Or not at all in the source?
background for tax classification
There is customizing to assign plants to sales organization.
Each plant has an adress with a country.
SAP collects all the plant countries and saves them in the tax classification table MLAN.
Eg. if this material A has a sales org EAST that can sell from plants in JP, AU, and SG
then you will see these 3 countries in the sales org view segment tax classification
In case you dont have any tax classification data in the source, then it you can do it like this:
goto the __END_OF_RECORD__ statement of E1BP_MLAN segment in your LSMW and enter it directly as code:
do the transfer_record as often as you need .
DEPCOUNTRY = 'JP'
TAX_TYPE_1 = 'MWST'
TAXCLASS_1 = '1'
transfer_record.
DEPCOUNTRY = 'AU'
TAX_TYPE_1 = 'MWST'
TAXCLASS_1 = '1'
transfer_record.
DEPCOUNTRY = 'SG'
TAX_TYPE_1 = 'MWST'
TAXCLASS_1 = '1'
transfer_record. -
How to add Text fields while doing SO through LSMW-BAPI method
Hi Friends,
I am doing Sales Order data migration using LSMW-BAPI method. The BAPI that i'm using is SALESORDER_CREATEFROMDAT2
I am able to handle all the fields except for the text fields such "Material sales text" in the Item info and "Layoout Set Header Text" in the Header.
Please do help me in solving my problem in whatever possible way you can.
I am waiting for your reply.
Thanks in advance,
ur friendDear Gaurav Anand,
Thanks a lot.
Can you please be a more descriptive.
I am unable to handle the E1BPSDTEXT structure.
When I am giving the Text field, and the corresponding TEXT_ID , It is showing an error that the address is not handled properly.
Please explain me how to handle this error.
Once again Thanks in advance.
Warm regards,
Your friend -
LSMW/ BAPI method for Document upload (CV01N)
Hi All,
Could you please let me know if it is possible to use LSMW (BAPI method) for creation of document ?(using CV01N) and linking files.
If yes, what is the business object for doing the same?
I did came across a BAPI "BAPI_DOCUMENT_CREATE2", but in order to use it for mass upload , we will have to develop a program. SO I was trying to see of the LSMW method could be used.
Thanks and Regards,
NarendraHi Narendra,
LSMW is not supporting for attachements. Please check and confirm. If you have to upload bulk files then use BDC(Batch data collection) it's very useful for uploading thousands documents at a time. Ask abap'r to write a bdc program.
I hope this will resolve the query.
Regards,
Ravindra -
Using BAPIs for sales contracts
Hi,
I'm having this situation that I have to upload sales contracts into SAP from flat files. We planned to use BAPIs for this purpose. Is it a good option. Can anyone suggest better ideas. If BAPI is a good option, has anyone used standard BAPIs for sales contracts updation in SAP System. If yes, can you guide me through the process.Hi,
You can start off with a program with:
Get the filename of the convert file
IMPORT /SAPDMC/LSMEMORY FROM MEMORY ID '/SAPDMC/LSMW'.
V_PROJECT = /SAPDMC/LSMEMORY-PROJECT. " Project
V_SUBPROJ = /SAPDMC/LSMEMORY-SUBPROJ. " Subproject
V_OBJECT = /SAPDMC/LSMEMORY-OBJECT. " Object
IF V_PROJECT IS INITIAL.
V_PROJECT = 'XXXX_LOC'.
ENDIF.
IF V_SUBPROJ IS INITIAL.
V_SUBPROJ = 'SD'.
ENDIF.
IF V_OBJECT IS INITIAL.
V_OBJECT = 'XXXX_VA41'.
ENDIF.
Function will return path of converted file by LSMW object
CALL FUNCTION '/SAPDMC/LSM_FILE_INFO_GET'
EXPORTING
PROJECT = V_PROJECT " /sapdmc/lsmemory-project
SUBPROJ = V_SUBPROJ " /sapdmc/lsmemory-subproj
OBJECT = V_OBJECT " /sapdmc/lsmemory-object
X_ONLY_USED_FILES = 'X'
IMPORTING
FILE_CONV = V_DSNAME " Path of converted file
EXCEPTIONS
NO_SUCH_OBJECT = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
I am not much of an LSMW expert so wont be able to comment much.
regards
Aveek -
Netprice Picked up from last document-Open PO load using LSMW BAPI method.
Hi Experts,
I m doing Open PO load using LSMW BAPI method...(BAPI_PO_CREAT1).
Inside the LSMW BAPI picks up the NETPR value from the last document and doesnt consider the value from load file...
Please advice me how to handle this issue...
I tried giving values to field CALCTYPE at item level or POCOND table with with carry out new pricing options....but nothig works for me...
PLease give your valuable inputs to achieve the requirement....
Bharathi.Jread OSS Note 580225 - Purchasing BAPIs: Conditions and pricing
-
Error while creating the ASSET using LSMW BAPI method ( BUS1022 )
Hello,
Im creating assets using the below LSMW BAPI method
Business Object BUS1022
Method CREATEINCLVALUES
Message Type FIXEDASSET_CREATEINCLVALU
Basic Type FIXEDASSET_CREATEINCLVALU
the following errors were triggered while populating the values to ACQ_VALUE and ORD_DEP value.
Correction to ordinary dep. greater than acc. dep. in area 01
Correction to ordinary dep. greater than acc. dep. in area 30
Correction to ordinary dep. greater than acc. dep. in area 31
Correction to ordinary dep. greater than acc. dep. in area 32
if i pass only ACQ_VALUE, I am able to create the asset with out any issues.
Can you guys plz guide me to fix this issue to create the asset with both ACQ_VALUE and ORD_DEP values??
Cheers,
Sriram.Hello,
Review AO21.
Regards
Waza -
Unable to create PO with multiple line items through LSMW-BAPI method
Hi All,
I have a requirement of creating PO through LSMW. I can't use LSMW standard batch input program since there are some fileds not available and also it has many limitations. I'm using LSMW-BAPI method ( Business object BUS2012) which create IDOC and uses BAPI_PO_CREATE1 to ultimately post the PO in the system. I am trying to create PO from a single file which contains both Header and Item data.
Now my problem is that everytime PO is being created with Single line item only. Everytime I am giving multiple item data in the source file LSMW is preparing multiple IDOCs for multiple line items. As per my understanding this is happenng since header and item is in the same hierarchy level of IDOC type PORDCR102 and the control record is inserted for every line item in the source file.
It seems that through LSMW-BAPI it is not possible to create PO with multiple line items. Can anybody provide some input regarding this? Thanks in advance.
BR,
Atanu MukherjeeSolved by myself.
Earlier the problem was that LSMW was not being able to recognize items under same header. It was creating new IDOCs every time it gets a new item. To enable this we need to create two structure HEADERDATA and ITEMDATA. Two additional identifier fields with identifier value 'H' and 'I' should be added in these two structures respectively. Then we need one sequential file with the identifiers field followed by the header and Item data. Example:
H~header data
I~item data
I~item data
This would help the standard program to understand what are the items under same header and ultimately create PO with multiple line items.
BR,
Atanu Mukherjee -
Multiple files in LSMW-BAPI method
Hi,
I am facing the following problem with the LSMW-BAPI method...
I got around 20,000 record to be posted....and my LSMW-BAPI method is taking 4 hours to load them..so how can i reduce my time...??? is there any change of loading multiple same structure file...??? or can we run our LSMW background...
Thanks !!hi
just refer to the links,. hope they may help u some or the other way.
BAPI
http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g <b>(SAP link- ultimate material )</b>
regards
ravish
<b>plz dont forget to reward points if helpful</b> -
BAPI for Sales Order Creation.
Hello gurus,
I want to create a sales order using BAPI.
I have tried some BAPI's like BAPI_SALESORDER_CREATEFROMDAT1, BAPI_SALESORDER_CREATEFROMDAT2, BAPI_SALESORDER_CREATEFROMDATA, BAPI_SALESDOCU_CREATEWITHDIA.
But I am not able to update the Miscellaneous Information like Mode of transport(VBAP-OIC_MOT), Forwarding Agent(VBAP-OIC_LIFNR), Base Location(VBAP-OIA_BASELO), Truck Number(VBAP-OIC_TRUCKN), Pipeline trip No.(VBAP-OIC_PTRIP), Pipeline operator´s external batch number(VBAP-OIC_PBATCH).
Is there any other BAPI thru which i can update these fields while creation of Sales Order.
The Fields which I can provide to BAPI as import parameter is:
Order Type(VBAK-AUART),
Contract(VBAK_VGBEL),
SALES Org (VBAK-VGORT),
Dist Channel(VBAK-VTWEG),
Division (VBAK-SPART),
Open Quantity (VBAK-KWMENG)
Plant(VBAP-WERKS)
Storage Location (VBAP-LGORT)
Mode of transport(VBAP-OIC_MOT), Forwarding Agent(VBAP-OIC_LIFNR), Base Location(VBAP-OIA_BASELO), Truck Number(VBAP-OIC_TRUCKN), Pipeline trip No.(VBAP-OIC_PTRIP), Pipeline operator´s external batch number(VBAP-OIC_PBATCH).
Thanks In Advance,
Points will be rewarded for Best Solution......
Yogesh Sharmahi,
I can give u a suggestion .. try it ..
its a quite a long process....
in BAPI_SALESORDER_CREATEFROMDAT2
there is a table EXTENSIONIN...
here u can add append structure and carry on ur sales order creation
Follow the process
Customer Enhancement for VBAK, VBAP, VBEP
Description
You can use this parameter to transfer user-specific enhancments to a BAPI. The customer has to complete the EXTENSION structure and the system automatically continues processing it. If you have not defined any user-specific fields, then you can transfer a blank EXTENSIONIN structure.
Technical information about Customer Enhancements
The following description uses an example to explain how to proceed with customer enhancements to the SD tables VBAK, VBKD, VBAP and VBEP.
The customer has added their own fields to table VBAP using the INCLUDE structure CUTEST. This structure contains 2 fields:
CFIELD1, CHAR 10
CFIELD2, CHAR 3.
The customer also requires that these two fields can be maintained with the BAPI.
1. Maintain structure CUTEST in table VBAP
2. Because the BAPIs work with checkboxes, you must also define a CUTESTX checkbox for the customer structure. It should be structured like this:
Field name Data element
CFIELD1 CHAR1
CFIELD2 CHAR1
3. Define these customer structures in the structures VBAPKOZ und VBAPKOZX using INCLUDE or APPEND.
4. Add the customer structures to the BAPE_VBAP and BAPE_VBAPX BAPI structures using the APPEND technique.
5. Adjust the following structures for customer enhancements to table VBAK:
a) VBAKKOZ
b) VBAKKOZX
c) BAPE_VBAK
d) BAPE_VBAKX
6. Adjust the following structures for customer enhancements to table VBEK:
a) VBEPKOZ
b) VBEPKOZX
c) BAPE_VBEP
d) BAPE_VBEPX
7. Generally, the data should be added to the BAPI interface in the internal communication structures (VBAKKOM, and so on). There, you can process the data in the SD tables (VBAK, and so on).
8. If the EXTENSIONIN parameter contains customer data, you must complete at least the key fields in the relevant standard parameters.
For example:
You want to change customer field VBAP-CFIELD2 for item 20 to "XYZ" in order 4711.
The following entries are expected:
Import: BAPIVBELN-VBELN = '0000004711' Document number
BAPISDHD1X-UPDATEFLAG = 'U' UPDKZ for doc header
Tables: BAPISDITM-ITM_NUMBER = '000020' Item number
BAPISDITMX-ITM_NUMBER = '000020' Item number
+ BAPISDITMX-UPDATEFLAG = 'U' UPDKZ for item
You must complete the EXTENSION table as follows:
STRUCTURE VALUEPART1 1234561234567890123
BAPE_VBAP 0000004711000020 XYZ
BAPE_VBAPX 0000004711000020 X
Further Information
You can find more information in the BAPI programming guide in the chapter for enhancements to BAPIs.
Notes
You must complete the STRUCTURE field with the name of the relevant enhancement structure (BAPE_VBAK, BAPE_VBAP, BAPE_VBEP). You can complete the remaining fields with the append structures from the enhancement structures.
At the moment, you can use the BAPI to store enhancements in the following structures:
VBAK : An enhancement to header data requires an append structure to BAPE_VBAK and an enhancement to structure VBAKKOZ.
VBAP : An enhancement to item data requires an append structure to BAPE_VBAP and an enhancment to structure VBAPKOZ.
VBEP : An enhancement to schedule line data requires an append structure to BAPE_VBEP and an enhancement to structure VBEPKOZ.
VBKD : If you are using an enhancement for header data, you must add an append structure to BAPE_VBAK. You also need to enhance structure VBAKKOZ. If it is for item data, you need to add an append structure to BAPE_VBAP. You must also enhance structure VBAPKOZ.
If you also want to work with checkboxes, each X-structure must also contain an append structure.
For example:
A customer has created an order and wants to include the material long text (50 digits long).
The EXTENSIONIN structure must be completed with BAPE_VBAP. Two fields have fixed definitions in this structure. These are in the VBAP host key (VBELN, POSNR). The customer sets up an append structure that contains field ZMAT50.
Because the VBELN is normally blank when you create an order, the data can look like this:
STRUCTURE |BAPE_VBAP
VALUEPART1 | 000010Customermateriallongtext50
VBELN POSNR ZMAT50 -
Uploading subcontracting PO using LSMW-BAPI method
I am trying to upload the subcontracting Purchase order using LSMW-BAPI .
Bapi name -Create from Data1
Business Object - BUS2012 Purchase Order
Method - CREATEFROMDATA1 Create Enjoy Purchase Ord
Message Type - PORDCR1 Create Purchase Order
Basic Type - PORDCR102 Create Purchase Order
In this BAPI - for subcontracting material (component), required quantity & plant values are provided in a input file .
When I trying to upload this PO, PO gets created but component data not getting uploaded.
In documentation of BAPI -under restriction section -there is a restriction for subcontracting.
So can we create Subcontracting PO using this PO.
any solution on same.
Because most of the conversion part is done. Only for subcontracting PO this bapi is not working.
Please anybody know about the solution guide me ASAP.
ThanksHi Vikram,
I am also having same scenario , I m using BAPI - BAPI_GOODSMVT_CREATE To create GR for Subcontracting PO
Can u please tell me how can solve this problem.
Normal GR its working but for Subcontracting PO its not working.
Regards,
Sanket -
Regarding bapis for sales order creation and modification
Hi,
I am trying to create a syncbo for sales order creation, modification and display. The bapis that I am using are
1.BAPI_SALESORDER_GETLIST
2.BAPISDORDER_GETDETAILEDLIST
3.BAPI_SALESORDER_CREATEFROMDATA1
4. BAPI_SALESORDER_CHANGE
Am I using the correct bapis. When I tried to create a syncbo it gave the following errors
BAPISDORDER_GETDETAILEDLIST does not have RETURN parameter in export or tables parameter
RETURN parameter in Create BAPI Wrapper should refer to structure BAPIRET2
RETURN parameter in GetList BAPI Wrapper should refer to structure BAPIRET2
GetDetail BAPI Wrapper does not have RETURN parameter in export or tables parameter
No Export parameter referring to header structure exists in GetDetail BAPI Wrapper
No Import parameter referring to header structure exists in Create BAPI Wrapper
No Import parameter referring to header structure exists in Modify BAPI Wrapper
No Import parameter referring to a field of header structure exists in GetDetail BAPI Wrapper
No Export parameter referring to a field of header structure exists in Create BAPI Wrapper
No Tables parameter referring to item structure exists in Create BAPI Wrapper
No Tables parameter referring to item structure exists in Modify BAPI Wrapper
I am informed that the above bapis are standard bapis.
I am not sure as to why I am getting the errors.
Does the syncbo require the bapi's to be in a specific format.
What would be the header and item structures for sales order bapis
Regards
Raja SekharHi Raja,
ya , for creating Sync BOs ,our BAPI wrappers must satisfy certain conditions..
just go through this link.
u can use the standard BAPIs of SALES Order in ur Custom BAPI Wrapper
http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/appdev/smartsync/what_is_a_bapi_wrapper.html
the RETURN must be of type BAPIRET2..
Regards
Kishor Gopinathan
Maybe you are looking for
-
BIOS Update for HP Pavilion dv6t-7000 CTO
I was just looking at the updates for my laptop and saw two BIOS updates here. I was wondering which one actually applies to my particlular machine. As one can see, one is a few months more recent than the other. Does this mean that it has the fi
-
I lost my internet connection. This is the second time and really FRUSTRATED. The first time I had to call geeksquad and spent $100. I don't want to call them again. I'm getting the IP address as 169....It should be 192..How do I fix thos problem. It
-
How do I get a downloaded book onto my ipad
I bought a book off iTunes. I downloaded it. After an hour of frustration I found it on my PC. How do I now get it onto my iPad. PLEASE.
-
Problem with SSL socket(SSLSocketFactoryImpl.createSocket())
Hello, I'm trying to create a ssl socket but I get an exception, I really don't know why. I have alredy include the certificate via keytool to my jdk. And I'm able to get html header with URLConnection with the code below import java.net.URL; import
-
How to refresh to reflect the latest change
i have one page to create a new record, then i want to go to another display page to see this new record is one of the displayed record set. how to do this? Thanks!