Data transper for customer master using BAPI
I am trying to upload the customer master data from flat file to SAP tables using BAPI Customer.CreateFromData1. But not all of the fields are availble in this BAPI. Few of the important fields are absent e.g incoterms, account signment group of customer..it picks up default value from ref cust.....Is there any other way to load it......
Thanks and regards,
Tushar
Look at OSS [Note 390045 - Usage of BAPI_CUSTOMER_* of function group V02D|https://service.sap.com/sap/support/notes/390045]
you can only do this using ALE or Batch Input
So use [ALE|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=createcustomerALE&cat=sdn_all] or [BDC|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=createcustomerBDC&adv=false&sortby=cm_rnd_rankvalue]. (dixit SAP)
Regards
Similar Messages
-
Master data Load for Substance Creation : Using BAPI in LSMW ?
Hi ,
Had any one did a Master data load for creating a Substance in SAP RM. If so please let me know the best possible option. I am beeing trying to figure out the option to load Substances and its IDENTIFIER / MATERIAL ASSINGMNET from my legacy system. But I am not geeting a clue to use LSMW. ( Direct or BatchInput )
I am not seeing any BAPI for uploading it through the LSMW except the one BUS1077 ( method SAVEREPMUL ) and I guess this is used along with IDOC.
Appreciate your help and suggestion.
DavidThanks John.
I will try this option what you have suggested. Even I told by business team to look for CG33. But they were been telling me some format issue. Probably they would meant the same what you have said. But they were not aware of work around for this. your information is intresting.
The other option given to me was to create a recording for each and every Tab like Substance header / Identifier / Material assignment etc. seperately. Technically I don't feel good to create in that way. Do you think that is alernate approach.?
With Respect & Regards
David -
To load customer master using bapi
HI GUYS ,
DOES ANYONE HAVE A SAMPLE CODE TO LOAD THE CUSTOER MASTER DATA USING BAPIS.Hi Nishanth,
TO LOAD THE CUSTOER MASTER DATA USING BAPIS.
In case you wish to read the customer data you can use the following BAPI, it retrieves the Customer Master (Company Code) Data and the General Data in Customer Master.
CUSTOMER_READ
You need to pass the Customer Number and the Company Code. See the example given below.
REPORT ZEX_CUSTOMERREAD .
Parameters: p_bukrs like KNB1-BUKRS,
p_kunnr like KNA1-KUNNR.
Data: ty_kna1 type kna1,
ty_knb1 type knb1.
Data: int_kna1 like ty_kna1,
int_knb1 like ty_knb1.
CALL FUNCTION 'CUSTOMER_READ'
EXPORTING
I_BUKRS = p_bukrs
I_KUNNR = p_kunnr
IMPORTING
E_KNA1 = int_Kna1
E_KNB1 = int_knb1
EXCEPTIONS
NOT_FOUND = 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.
thanks
karthik -
Change Message Control for Customer Master data
Hi Friends,
I have to choose/populate a message when the user is about to create an already existing customer.
In SPRO --> Financial Accounting --> Accounts Receivable and Accounts Payable --> Customer Accounts --> Master Data --> Preparations for creating customer master data --> "change message control for customer master data" ...
OK...
When u click this it goes into Change View "message control by User" Overview screen wherein u can insert new messages and texts and the type of message ....
Now .....
I want to display the 145th message (F4 help of the Message column) ..... it picks up the text "Customer found with same address;check"..... with Online mesasage type 'I' and batch type 'I' and with standard type '-' ..
I want to have the same message with message types 'E','E', and 'I' respectively.......
How is this possible (or) what should i do to meet my requirement :-|
Expecting ur answers
Thanks in advance ........
Cheers,
R.Kripa.Hey yes it is not possible (as of now
I ve met the requirement by just using message statement in the program itself ............
My requirement is met but still if anyone knows about this do answer / reply
Thanks
Cheers,
R.Kripa. -
Using RFBIDE00 for customer master upload
Hi all,
Does any one used batch input program RFBIDE00 for Customer master Upload data in to SAP.
Could you please explain how to use it... its urgent, appreciare if your early reply..
I am planing to use it through Run the program from SE38..
Thanks..hi good sap1,
Batch Input - Customer Master Data (RFBIDE00)
Description
All new fields for customer master records can be transferred to the R/3 System also with the report RFBIDE00.
Furthermore, the batch input can be carried out with the existing record definitions. By means of the end of record marker, the report recognizes which record structures do not yet correspond to the extended record layout and initializes the new fields with NODATA.
It is pointed out in the batch log, which structures are yet to be maintained. This should be done as soon as possible to be able to use the new functions or fields
Introduction
It is now possible to pass the information concerning tax categories and withholding types (for the extended withholding functionality) and the special Argentine fields via the standard batch-input program. Please look at the standard documentation if you need further information on the program.
Additional Fields
The additional fields have been added to the structures BKNA1 (general information) and BKNB1 (company code data). Please use transaction SE12 to see the fields of the structures.
Enrichments for Tax Categories
The following table shows how to fill the interface table BKNAT to pass the tax category data:
Field
Description
Value
Input
STYPE
Record type
2
obligatory
TBNAM
Table name
KNAT
obligatory
XDELE
Flag: Delete entry
optional
TAXGR
Tax category
obligatory
Enrichments for Extended Withholding Data
The following description shows how to fill the interface table BKNBW to pass the tax category data:
Field
Description
Value
Input
STYPE
Record type
2
obligatory
TBNAM
Table name
KNBW
obligatory
XDELE
Flag: Delete entry
optional
WITHT
Withholding type
obligatory
thanks
karthik
reward me points if usefull -
Search for BAdi for Customer Master Data (XD01)
Hi experts,
i am looking for a BAdi for Customer Master data (XD01). Can anyone suggest me which one can i use?
thanks in advance.
Regards,
akshhi
execute this report
*& Report ZNAGBADI
REPORT ZNAGBADI.
*report zbadi_find .
tables : tstc,
tadir,
modsapt,
modact,
trdir,
tfdir,
enlfdir,
sxs_attrt ,
tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode,
p_pgmna like tstc-pgmna .
data wa_tadir type tadir.
start-of-selection.
if not p_tcode is initial.
select single * from tstc where tcode eq p_tcode.
elseif not p_pgmna is initial.
tstc-pgmna = p_pgmna.
endif.
if sy-subrc eq 0.
select single * from tadir
where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir
where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir
where pname = tstc-pgmna.
select single * from enlfdir
where funcname = tfdir-funcname.
select single * from tadir
where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object in ('SMOD', 'SXSD')
and devclass = v_devclass.
select single * from tstct
where sprsl eq sy-langu
and tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(105) sy-uline.
format color col_heading intensified on.
Sorting the internal Table
sort jtab by object.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type c.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
loop at jtab into wa_tadir.
at first.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Enhancement/ Business Add-in',
41 sy-vline ,
42 'Description',
105 sy-vline.
write:/(105) sy-uline.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
format color col_group intensified on.
write:/1 sy-vline,
2 wf_object2,
105 sy-vline.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
select single modtext into wf_txt
from modsapt
where sprsl = sy-langu
and name = wa_tadir-obj_name.
format color col_normal intensified off.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single text into wf_txt
from sxs_attrt
where sprsl = sy-langu
and exit_name = wa_tadir-obj_name.
format color col_normal intensified on.
endcase.
write:/1 sy-vline,
2 wa_tadir-obj_name hotspot on,
41 sy-vline ,
42 wf_txt,
105 sy-vline.
at end of object.
write : /(105) sy-uline.
endat.
endloop.
write:/(105) sy-uline.
skip.
format color col_total intensified on.
write:/ 'No.of Exits:' , wf_smod.
write:/ 'No.of BADis:' , wf_badi.
else.
format color col_negative intensified on.
write:/(105) 'No userexits or BADis exist'.
endif.
else.
format color col_negative intensified on.
write:/(105) 'Transaction does not exist'.
endif.
at line-selection.
data : wf_object type tadir-object.
clear wf_object.
get cursor field field1.
check field1(8) eq 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
when 'SXSD'.
set parameter id 'EXN' field sy-lisel+1(20).
call transaction 'SE18' and skip first screen.
endcase.
reward for useful answers
regards
Nagesh.Paruchuri -
Upload the data for sales order using BAPI
hi experts,
how to upload the data for sales order using BAPI.
what is the FM?
it would be much helpful if i have the sample code as i am very new to BAPI.
thanks and Regards
ShyamHi Shyam
Its very useful for u
BAPISDORDER_GETDETAILEDLIST
BAPI_ACC_SALES_ORDER_CHECK
BAPI_ACC_SALES_ORDER_POST
BAPI_ACC_SALES_QUOTA_CHECK
BAPI_ACC_SALES_QUOTA_POST
Reward all the helpful answers..
With Regards
Navin Khedikar -
Are there any set guidelines for customer master data cleansing.
1) I was wondering if there are any set guidelines for customer master data cleansing.
2) Part of the cleansing effort involves consolidating number of divisions etc. Any pointers to this regard?
3) Also how do we deal with open docs, billing plans etc?The data cleansing requirement will take place, while move the data from legacy system to new target ERP / system. I.e. need to cleanse, enrich, de-duplicate, & standardize.
The existing data may not have consistent format since it is often being derived from various sources. It may contain duplicate information as well missing or incomplete information. Cleanse and normalize content to achieve accuracy, consistency and proper understanding of the data.
Also its a process of organizing the data, which will ensure enrichment of your data which are up-to-date, accurate, and complete. These processes are manual / labor intensive and require a fair bit of specialization.
If you need to have more details please feel free to interact with us as per below.
Thanks
Kumar
www deebrostech.com -
Reg lsmw for customer master data transfer
Hello All,
I want to know while transfering data by lsmw for customer master data .
Scenario : There are more then one ship-to-party and bill to party so how to upload the data in this case?????
Thanks,
Sunnyhi
just refer to the link below
http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g
<b>step by step procedure with screen shots</b>
regards
vijay
<b>plz dont forget to reward points if helpful</b> -
F4 Help in Customer Master using Dropdown Box
Dear All,
I am using BAPI_CUSTOMER_CREATEFROMDATA1 for customer master creation.
I have a requirement from customer that he wants a drop down for Sales Organization, Distribution Channel, Division and for other necessary fields, data should come from R/3.
Please tell me how to achieve it? How I get these master data from R/3 so that I can populate it on the corresponding dropdowns? is there any standard BAPI exist for it??
Please help.
Thanks in AdvanceHi,
Is the search help custom or standard? If custom then use the search help exit provided in the search help. If standard copy it into a custom one and make use of the search help exit. -
Outbound IDOC for customer master
Hi
I want to configure that as soon as I create a customer master using the transaction XD01 it should generate an outbound IDOC. Can anyone tell me how to configure this and what need to be br configured.
Thanx in advance
regards
VinodHi Vinod,
We can distribute master data in many ways like Send original copy, Send changes and third one is Pull master data.
Go to txn SALE, and follow the steps to configure your scenario.
I think in your case you have to use Message Control or
Output Determination.
visit this link for message control...
http://help.sap.com/saphelp_erp2004/helpdata/en/c8/198afa43b111d1896f0000e8322d00/frameset.htm
Regards,
Narinder Hartala -
Text Migration for Customer Master ?
Hi all,
I am involved in the migration of the customer master and so have to migrate text sitting on the customer master.
Can somebody please provide me some help on this?
As a start off point I have a SAP Sandbox system from where I can see what all text is being maintained at the customer master level which i should be bringing on to the Production system. What tables can I look into to see all the text maintained for the customer master.
Help will be really appreciated.
We intend to use the standad idoc for migration.
Thanks/RegardsHi,
Jason is correct that you will need the READ_TEXT function if you want to either spot check some texts (use SE37 and READ_TEXT to view a sample of customers) or if you want to extract the data.
However, if for example during an extract or during an upload you merely wanted to check whether a customer had texts, you can check on table STXH. Each customer text (of one or multiple lines) will have one header record in table STXH. STXH does not allow you to see the data as Jason pointed out, but it does show whether it exists or not.
An easy way when dealing with long texts to fnd out the object, id and name of any text is to go into the text record intself in the display transaction (eg, XD03 for customer master) and in the menu path click Goto>Header. That will give you the header information for the text and allow you to see what you need to code into your ABAP program or LSMW.
Ben
http://www.harlex-ltd.com -
Regarding ALE-iDoc for Customer Master, J1ID and FD32
Hello all
Scenario:
As per client's requirement we have to develop idoc so that followings requirements will meet:
Say there are two servers a) MDM Server b) PRD Server
1] As and when I'll create customer master data in MDM server then customer master should get created with that data in PRD server
which I can achieve through BD12 by doing some idoc enhancements
2] Simillarly when i'll create data using transaction J1ID and FD32 in MDM Server (Data relevant to customer master) then that data also should get created in PRD server using Idoc
May I know which
1)message type we can use (as we use DEBMAS in case of Customer Master) for J1ID and FD32
2) Any transaction to send data from one server to another server for transaction J1ID and FD32 (as we use BD12 in case of Customer master for sending data created using transaction XD01)
Thanks,
MaheshHello Mahesh,
In the case of customer master it would be better if you would use standard message types and t code to transfer ddata.
But in the case J1ID and FD32 you can build a standalone idoc
Follow these steps to build custom message types and futher transactions
WE81 - Create message type
WE31 - Create segment
WE30 - Create Idoc type
SALE - Define Logical system (not required if already exists)
SM59 - Define RFC (not required if already exists)
WE21 - Define ports (both in sender and receiver)
WE20 - Define Partner profile (both in sender and receiver)
BD46 - Distribue the model view.
SE38 - Create a program to send the idoc in the sender sytem.
SE37 - Build inbound function module to receive the idoc for receiver system
WE57 - Assign FM to message type
BD51 - to change the characteristics for inbound FM
WE42 - Create Inbound process code.
Hope this would help you.
Thanks and Regards,
Ranjith Nambiar -
Can anyone give the steps to create a lsmw for Customer master(XD01) using recording method or Standard/Direct input method
thanks,
Dinesh Enter T-code LSMW
Enter project name (LSMW-DEMO)
Click on create entry button (shift+F1)
Enter the description
Press enter button
Enter sub project name & description
Press enter button
Enter object & object name
Press enter button
Click on continue (F8) button
System displays 21 steps
(Focus on the 1st step)
Step (1): - Maintain object attributes
Click on object attributes
Click on execute button (ctrl +F8)
Click on display change (ctrl+F1)
Click on batch INPUT recording (radio button)
Click on go to and select recordings overview
Click on u201Ccreate recordingu201Dbutton. (Ctrl+F1)
Enter name (RECCUST) of recording & description (RECORDING FOR CUSTOMER)
Enter owner (SAPUSER)
Press enter button
Enter the transaction code (VDOL)& press enter button
Create CMR using the general process
System displays the newly created customer number
Click on default ALL
System displays field names for which date is maintained
Note these fields names in a text tile
Click on save button
Click on back button
Click on back button
Enter the recording name in recoding field ex RECCUST
Press enter button
Click on save button
Click on back button
Observation: -
1) The cursor position is automatically changed to second step. After every step completion the cursor position is changed to succeeding step.
2) Steps are reduced to 14
Step (2) :- Maintain source structures
Click on execute button
Click on display change button
Click on create a structure button
Enter source structure name 2 description,& 2 press enter button
Click on save button
Click on back button
Step(3) :- Maintain source fields
Click on execute button
Click on display change button
(note)try to maintain the source field names same as target fields names
Click on the source structure
Click on copy fields button
Select upload (text separated with tabs) & press enter button
Click on save button
Click on back button
Step (4) :- Maintain structure relations
Click on execute button
Click on display change button
Observations :-source structure & target structure relations is already maintained
Click on save button
Click on back button
Step (5) :- Maintain field mapping 2 convention rules
Click on execute button
Click on display change button
Select the first field (under fields)
Click on u201Cextrasu201D & select u201Cauto field mappingu201D
Click on ok button(continue button)
Click on accept proposal
Continue clicking on accept proposal till all the fields are mapped
System displays auto field mapping complete
Press enter button
Click on save button
Click on back button
Step(6) :- Maintain fixed values transudation user defined routines
This step is optional
We may use this when creation changes are to be made like dollar to euro etc.
Step(7) :- Specify files
Select specify files
Click on enecute button
Click on display change button
Click on legacy data
Click on u201CAdd entryu201D button
Specify the file name (customer records file path)
Specify the name (CMR RECORDS)
Click on tabulator
Press enter button
Click on save button
Click on back button
Step(8) :-Assign files
Click on execute button
Click on display change button
Click on save button
Click on back button
Step(9):-import data
Click on execute button
Click on execute button again
Observations:-transactions read & transactions written are same & and equal to the no. of records maintained in text file.
Click on back button
Again click on back button
Step(10) :-Display imported data.
Click on execute button
Press enter button.(imported data is displayed)
Click on back button
Step(11) :-Convert data
Click on execute button
Again click on execute button
Observations :- transactions red & transactions written are same and are equal to records in the text file
Click on back button
Again click on back button
Step(12) :-Display converted data
Click on execute button
Press enter button
Click on back button
Step(13) :-Create batch input session
Click on create button
Again click on execute button
System displays a message saying that a u201Cbatch input folderu201D is created with specified number of transactions
Press enter button
Click on back button
Step(14) :- Run batch input session
Click on execute button
Select the required u201Csession nameu201D and click on u201Cprocess buttonu201D
Select u201Cforeground processu201D or u201Cbackground processu201Detc
Click on u201Cprocess buttonu201D -
How will i configure partner determination for customer master
how will i configure partner determination for customer master data.
hi
Check this
BUSINESS PARTNERS AND PARTNER DETERMINATION
In the partner determination procedure you can determine whether partner functions can or should occur in a partner object (Customer Master, Sales Document, Item Category etc.) For each object, in which partner function can be created, you can define partner procedures. This also means that
For Customer Master
For Sales Documents
For Sales Documents and Billing Documents: for items
We can define our partner determination procedure for each of these levels as shown below. In Blue are given the ones wherein the Partner Procedures are assigned to the Partner Objects
Customer Master Account Group
Sales Document Header Sales Document Type
Sales document Item Item Category in sales
Delivery Delivery Type
Billing Header Billing Type
Billing Item Billing Type
Sales Activity Sales Activity type
By assigning a procedure you determine for which account groups (for the customer master), which sales document types (for sales documents) and for which item categories this procedure would be valid.
In the partner determination procedure you can determine for each partner function
whether the partner function is an obligatory partner function
whether the partner function can be changed in the document
BUSINESS PARTNER FUNCTION
By assigning a business partner function to a partner you can determine which functions the partner fulfils in the business process. Partner Functions are classified using partner type. The partner type represents the roles played by the business partner within the business transaction.
Following partner functions exist in the standard process of Sales and Distribution
Partner Type Customer
Sold-to Party, Ship-to Party, Bill-to Party, Payer and Sold-to Party authorized to release against a contract. You can define the sold-to party authorized to release against a contract in the partner screen of a contract. This partner may only schedule orders with reference to this contract, even when he is not the sold-to party authorized against a contract.
Partner Type Contact Person
Contact persons are natural persons whom you must contact at the customers for business processing (e.g. purchasers) Contact person can be created directly in customer master record.
Partner Type Vendor
A forwarding agent is an example of a business partner on the credit side, who is included in a sales process. If you commission a particular forwarding agent for deliveries to a specific customer, you can define the forwarding agent in the customer master record as the partner.
The other possible partner functions on the credit side in the sale process are interpreters, auditors etc. The forwarding agent is an agent who performs transportation services. This includes organizing the shipment, delivery and receipt of the goods, arranging the carrier services and handling the customs issues.
Partner Type Personnel
Employee Responsible
Sales Personnel
You can enter an employee from your firm as the person responsible:
In the Customer Master If the employee is normally responsible for processing transactions with this customer.
In the Sales Document If the employee is responsible for processing the Business Transaction.
STEP WISE PROCESS FOR PARTNER DETERMINATION PROCEDURE
Sales and Distribution->Basic Functions->Partner Determination->set Up Partner Determination->Set up Partner Determination for Customer Master.
First go to OVT0 create customer account groups. Here you make new entries, click whether it is a one time customer, description. Also you can do the field selection here for general data, co. code data and sales area data.
Now go to IMG logistics general business partner customers control define & assign customer number ranges define the number. Here you range that you want and assign it to your customer account group.
Now go to VOPA here the selection will be on customer master, click on partner procedures, create the partner determination procedure. The following steps need to be done in partner determination area
Assign partner function to account group i.e SP,SH, BP, PY to account group (debit side ). Sales and Distribution->Basic Functions->Partner Determination->Assign Partner Functions on the debit side to account Groups.
Then create Partner Determination Procedure.
Assign the Partner Determination Procedure to Partner Function.
Then finally assign the Partner Determination Procedure to acc group.
Important Points in Business Partners and Partner Determination Procedure
Partner relationship maintained/defined in the customer master is proposed automatically in the document header when you create a sales document.
In customizing we can decide whether several partners can be assigned to one partner function in the customer master.
In sales documents, the system is configured so that only one partner can be assigned to each partner function.
We can define partners at item level in the sales documents.
Business Partners that are defined at the header level however cannot be changed at the item level.
You can prohibit anyone from changing a partner that has already been entered in a sales document.
It is also possible to manually change or enter the address of a partner, such as the Ship-to Party. This change does not affect the master record.
Maybe you are looking for
-
I can't open my iPhoto after I upgraded from the app store. Any suggestions?
Good Morning. I recently upgraded my iphoto at the app store. Since then I cannot open my iphoto. It comes up error 1712. Can anyone give me any help? Thanks Jeff
-
Save as PDF in FM 9.0.3 causes crash
In FM 9.0.3 (aka 9.0p250 ... why are there 2 names for the same thing?) when I save a book or file with "Save as PDF" FrameMaker crashes. It leaves Acrobat Distiller (9.3) open with message Adobe PDF Settings file read error in PDFX4 2008.joboptions:
-
Hi All, I am maintaining discount condition in PO. I want to post this value to discount G\L account but PO value should not affect this.. How can i achieve this ?
-
Tabs and anything in top 1 inch of screen won'd click open.
only on firefox .... I cannot open the tabs at top or close them. On my mail I cannot open any of the apps. like inbox. And on facebook cannot open anything like contacts or messages. Seems like the top 2 inches of the screen is dead. Cursor moves al
-
Publish a magazine in IBooks/Italy
Our company is publishing a cultural monthly magazine in Italian. We would like to start the creation of an Ipad version, and we have developed an application tool to produce it. At the moment it seems that only independent publishers with an US IRS