LSMW Customer Create
Hello,
I am creating New customers by using LSMW ( Batch Input Method) its not allowing me to create the Credit Control data for the New Customers, is there any way to handle this in a single transaction.
Hi Krishna,
If u cannot load credit master along with customer master.... credit master is done separately.....better use a recording(FD32 tcode) which is very easy to do so.as u have very few fields to do so....
Sony
Message was edited by:
sony
Message was edited by:
sony
Similar Messages
-
LSMW- Customer Create - Sales Data - URGENT
Hi ,
I am trying to create the Customer via LSMW. With the basic information i am able create the Record.
But , I am facing the Problem when i give the sales informations ( Sales organisation / distribution channel /division ). The values are not populating in the Sales Area Tab ( sales office , sales group , customer group).
Read and convert data is correctly mapped and populating the values. While processing the session in error mode , its not populating the fields in Sales Tab.
Kindly suggest what's going wrong.
Thanks
KrishnaHi,
Steps:
1. Identify Mandatory Fields in XD01.
2. Map Legacy System Fields with corresponding SAP Fields. Note that you should pass values for all the mandatory fields (either from Legacy System Fields, constants, or fetch data based on some condition)
3. Create the Object.
For information regarding LSMW steps visit the following link:
/people/hema.rao/blog/2006/09/14/lsmw--step-by-step
http://help.sap.com/bp_blv1500/BL_US/html/dataconv_lsmw.htm
Also, visit the following thread:
Visit the following link:
Re: sap general
refer
https://forums.sdn.sap.com/click.jspa?searchID=7090774&messageID=1463435
Regards -
In LSMW Customer master standard program.....
I have problem in LSMW customer master data creation.I have used LSMW standard program
object : 0050
method : 0000
prog.name : RFBIDE00
PROGTYPE : B
but upto Dispaly converted data all the steps are wrking fine..
but In the step13: Create batch input session, I am getting error message.
like "Editing was terminaterd"
kindly guide me on this..........hi
chk this:
/message/3216495#3216495 [original link is broken]
regards,
madhumitha -
Hi!
We are trying to load a Customer Master file from a flat file using LSMW and Data Transfer Workbench to load the address data in BAS (since we need to access some extra fields like email address). The problem is that LSMW also creates a new address in BAS so how do we associate the address created by Data Transfer Workbench to KNA1? Do I need an ABAP program and functions ADDR_ADOWNERREF_READ and ADDR_ADOWNERREF_DELETE? Do I then just write over the value in the KNA1-ADRNR field with the value created by Data Transfer Workbench? Can this be done automatically using LSMW?
Thanks,
Tony.Hi Tony,
I know you have posted this a long time ago but were you able to figure this out?
If you were, can you please help me with this.
Thanks,
Kevin -
LSMW for creating project CJ20N
Hi,
I need to create projects by using transaction cj20n, I tried to find any standard sap project/bapi/idoc that I can use in my LSMW to create the project, but could not find.
Has anyone aware of any standard SAP technique to use in LSMW for creating the project by transaction CJ20N. I am just trying not to create custom recording for the conversion.
Thanks,I have a program for inserting WBS by Batch-input.
report Z_PS_BI_0001
no standard page heading
line-size 80.
*------------------------------- TABLES -------------------------------*
tables : proj , " Définition de projet
prps , " Elément d'OTP - données de base
jest , " Statut individuel par objet
tj02t . " Textes de statuts système
*-------------------------------- DATA --------------------------------*
types : begin of type_prps ,
pspnr like prps-pspnr ,
objnr like prps-objnr ,
posid like prps-posid ,
psphi like prps-psphi ,
pspid like proj-pspid ,
end of type_prps.
data itab_prps type sorted table of type_prps
with unique key pspnr
with header line
initial size 30000.
data : bdc_tab type standard table of bdcdata
with header line .
*------------------------ OPTIONS DE SELECTION ------------------------*
selection-screen begin of block b1 with frame title text-t01.
parameters : p_nom(12) type c
default 'Z_'
obligatory ,
p_kokrs like proj-vkokr
obligatory,
p_bukrs like bsis-bukrs
obligatory .
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-t02.
select-options : s_pspnr for proj-pspnr ,
s_posid for prps-posid .
selection-screen end of block b2.
*-------------------------------- MAIN --------------------------------*
start-of-selection.
* Recherche des données.
perform p_recherche_donnees.
* Création du dossier batch-input
perform p_creation_dossier.
* Edition du compte rendu d'execution.
perform p_edition.
end-of-selection.
* Procédure P_RECHERCHE_DONNEES. *
* Recherche des données nécessaires au programme. *
form p_recherche_donnees.
types : begin of type_prhi ,
posnr like prhi-posnr ,
up like prhi-up ,
end of type_prhi.
data itab_prhi type sorted table of type_prhi
with non-unique key up
with header line
initial size 30000.
data : begin of itab_otp occurs 100 ,
pspnr like prps-pspnr , " OTP
pspn like proj-pspnr , " Projet
posid like prps-posid , " Texte OTP
objnr like prps-objnr , " Objet
end of itab_otp.
data : begin of itab_tmp_otp_1 occurs 100 ,
posnr like prhi-posnr ,
up like prhi-up ,
end of itab_tmp_otp_1.
data : begin of itab_tmp_otp_2 occurs 100 ,
pspnr like itab_otp-pspnr ,
end of itab_tmp_otp_2.
data : v_ligne(9) type n.
* Liste tout les elements d'OTP de niveau 2 pour les projets
* selectionnees.
select b~pspnr a~pspnr b~posid b~objnr
into table itab_otp
from proj as a
inner join prps as b
on b~psphi eq a~pspnr
where a~pspnr in s_pspnr
and a~profl eq '0000010'
and a~vkokr eq p_kokrs
and b~posid in s_posid
and b~stufe eq '2'
and b~pkokr eq p_kokrs.
* Tri de la table
sort itab_otp.
* Chargement de la pseudo PRHI
select posnr up
into corresponding fields of table itab_prhi
from prhi
client specified
where mandt eq sy-mandt
and up ne space.
* Extrait la liste des OTP a rechercher.
append lines of itab_otp to itab_tmp_otp_2.
* Tri
sort itab_tmp_otp_2.
* Créé la liste des OTPs dépendant des OTPs de niveaux 2.
loop at itab_tmp_otp_2.
loop at itab_prhi
where up = itab_tmp_otp_2-pspnr.
move : itab_prhi-posnr to itab_tmp_otp_1-posnr ,
itab_prhi-up to itab_tmp_otp_1-up ,
itab_prhi-posnr to itab_tmp_otp_2-pspnr .
append : itab_tmp_otp_1, itab_tmp_otp_2.
endloop.
delete itab_tmp_otp_2.
endloop.
* Recherche si plus petit niveau.
loop at itab_tmp_otp_1.
read table itab_prhi
with key up = itab_tmp_otp_1-posnr.
if sy-subrc eq space.
delete itab_tmp_otp_1.
endif.
endloop.
sort itab_tmp_otp_1 by posnr.
* Recherche de l'objet pour chacun des OTPs trouvés.
loop at itab_tmp_otp_1.
select single objnr posid psphi
into (itab_prps-objnr, itab_prps-posid, itab_prps-psphi)
from prps
where pspnr eq itab_tmp_otp_1-posnr.
if sy-subrc eq space.
move itab_tmp_otp_1-posnr to itab_prps-pspnr.
append itab_prps.
endif.
endloop.
* Recherche si les OTPs ont bien le statut Budget seul.
loop at itab_prps.
select single *
from jest
where objnr eq itab_prps-objnr
and stat eq 'E0002'
and inact eq ' '.
if sy-subrc ne space.
delete itab_prps.
endif.
endloop.
* Recherche texte projet.
loop at itab_prps.
select single pspid
into itab_prps-pspid
from proj
where pspnr eq itab_prps-psphi.
if sy-subrc eq space.
modify itab_prps.
endif.
endloop.
* Compte le nombre de ligne à traiter.
describe table itab_prps lines v_ligne.
if v_ligne eq space.
write : /1 'Aucune donnée à traiter.'.
stop.
endif.
endform. " P_RECHERCHE_DONNEES.
* Procédure P_CREATION_DOSSIER. *
* Création du dossier batch-input. *
form p_creation_dossier.
data : v_estat type j_estat.
* Recherche de la position du statut Budget seul.
select min( estat )
into v_estat
from tj30t
where stsma eq '00000001'
and spras eq sy-langu.
if v_estat ne 'E0002'.
write : /1 'Customizing statut modifié ! Programme inutilisable !'.
stop.
endif.
* Ouverture du dossier batch-input.
perform open_bdc using p_nom.
* Boucle sur la table des données.
loop at itab_prps.
* Ecran de saisie Projet / OTP
perform bdc_dynpro using 'SAPLCJWB'
'0100'.
perform bdc_field using 'BDC_OKCODE'
'=LETB'.
perform bdc_field using '*PROJ-PSPID'
itab_prps-pspid.
perform bdc_field using '*PRPS-POSID'
itab_prps-posid.
* Sélectionne la première ligne et demande les statuts utilisateurs.
perform bdc_dynpro using 'SAPLCJWB'
'0901'.
perform bdc_field using 'BDC_OKCODE'
'=STAT'.
perform bdc_field using 'RCJ_MARKL-MARK(01)'
'X'.
* Déselectionne la zone Budget/Seul
perform bdc_dynpro using 'SAPLBSVA'
'0300'.
perform bdc_field using 'BDC_OKCODE'
'=BACK'.
perform bdc_field using 'J_STMAINT-ANWSO(01)'
* Enregistre et sort.
perform bdc_dynpro using 'SAPLCJWB'
'0901'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
* Enregistrement de la transaction.
perform insert_bdc using 'CJ02'.
endloop.
* Fermeture du dossier batch-input.
perform close_bdc.
endform. " P_CREATION_DOSSIER
* Procédure P_EDITION. *
* Edition du compte rendu d'éxecution. *
form p_edition.
write : /1 'Compte rendu de la création du dossier Batch-Input.'.
skip 2.
write : /1 'Dossier Batch-Input' ,
p_nom ,
'créé avec succés.'.
skip 4.
write : /1 'Liste des OTPs que le Batch-Input devrait modifier.'.
loop at itab_prps.
write : /5 itab_prps-posid.
endloop.
endform. " P_EDITION.
* Form OPEN_BDC *
* Ouverture du dossier Batch-Input. *
form open_bdc using v_nom_dossier.
call function 'BDC_OPEN_GROUP'
exporting
client = sy-mandt " Numéro de mandant
group = v_nom_dossier " Nom dossier batch
keep = 'X' " Code
user = sy-uname " Nom utilisateur
exceptions
client_invalid = 1
destination_invalid = 2
group_invalid = 3
group_is_locked = 4
holddate_invalid = 5
internal_error = 6
queue_error = 7
running = 8
system_lock_error = 9
user_invalid = 10
others = 11.
if sy-subrc ne 0.
write : /1 'Impossible de créer le dossier batch-input.' ,
/1 'Erreur :' , sy-subrc.
stop.
endif.
refresh bdc_tab.
clear bdc_tab.
exit.
endform. " OPEN_BDC
* Form CLOSE_BDC *
* Fermeture du dossier BTCI *
form close_bdc.
call function 'BDC_CLOSE_GROUP'
exceptions
not_open = 1
queue_error = 2
others = 3.
if sy-subrc ne 0.
write : /1 'Impossible de fermer le dossier batch-input.' ,
/1 'Erreur :' , sy-subrc.
endif.
endform. " CLOSE_BDC
* Form BDC_DYNPRO *
* Alimentation de la ligne d'entête de BDCTAB *
form bdc_dynpro using value(progname)
value(dynpronr).
* Efface la header-line.
clear bdc_tab.
* Insertion des valeurs.
bdc_tab-program = progname.
bdc_tab-dynpro = dynpronr.
bdc_tab-dynbegin = 'X'.
* Enregistrement des valeurs.
append bdc_tab.
endform. " BDC_DYNPRO
* Form BDC_FIELD *
* Traitement des enregistrements de la structure BDCTAB *
* --> FIELDNAME Nom du champ *
* --> FIELDVALUE Valeur du champ *
form bdc_field using value(fieldname) value(fieldvalue).
* Efface la header-line.
clear bdc_tab.
* Insertion des valeurs.
bdc_tab-fnam = fieldname.
bdc_tab-fval = fieldvalue.
* Enregistrement des valeurs.
append bdc_tab.
endform. " BDC_FIELD
* Form BDC_CURSOR *
* Positionnement du curseur sur un champ particulier *
form bdc_cursor using value(fieldname) value(fieldvalue).
* Efface la header-line.
clear bdc_tab.
* Insertion des valeurs.
bdc_tab-fnam = fieldname.
bdc_tab-fval = fieldvalue.
* Enregistrement des valeurs.
append bdc_tab.
endform. " BDC_CURSOR
* Form INSERT_BDC *
* Insertion dans le dossier BTCI *
* Attention : la transaction est codée en dur *
form insert_bdc using t_code.
call function 'BDC_INSERT'
exporting
tcode = t_code
tables
dynprotab = bdc_tab
exceptions
internal_error = 1
not_open = 2
queue_error = 3
tcode_invalid = 4
printing_invalid = 5
posting_invalid = 6
others = 7.
if sy-subrc ne 0.
write : /1 text-003 ,
/1 'Erreur :' , sy-subrc.
endif.
refresh bdc_tab.
clear bdc_tab.
endform. " INSERT_BDC
comment in french -
Custom created field created using Addon is overlapping in BP Master form
Hi All,
I have developed an addon to create some custom field in Business partner master data form. Every thing is working fine but the issue is that when I am maximizing and minimizing the BP form the custom created fields are overlapping with existing SAP B1 field. i have created this fields as the sample specified in SAP B1 SDK. I am giving the sample code below please rectify me if I have made any mistake.
lItem = form.Items.Add("CBWBCUSTGR", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX);
lItem.FromPane = form.Items.Item("222").FromPane;
lItem.ToPane = form.Items.Item("222").ToPane;
lItem.DisplayDesc = true;
lItem.Left = form.Items.Item("222").Left;
lItem.Top = form.Items.Item("222").Top + 15;
lItem.Width = form.Items.Item("222").Width;
lComboBox = (SAPbouiCOM.ComboBox)lItem.Specific;
lComboBox.DataBind.SetBound(true, "OCRD", "U_WBCUSTGR");
l Item = form.Items.Add("STWBCUSTGR", BoFormItemTypes.it_STATIC);
lItem.FromPane = form.Items.Item("223").FromPane;
lItem.ToPane = form.Items.Item("223").ToPane;
lItem.Left = form.Items.Item("223").Left;
lItem.Top = form.Items.Item("223").Top + 15;
lItem.Width = form.Items.Item("223").Width;
lStaticText = (StaticText)lItem.Specific;
lStaticText.Caption = "Web Customer Group";
Thanks and Regards
Utpal MaityHi All,
I have tried the solution provided by you by modifying the code as written below but when i am minimizing it the fields are getting overlapped.
lItem = form.Items.Add("CBWBCUSTGR", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX);
lItem.FromPane = form.Items.Item("222").FromPane;
lItem.ToPane = form.Items.Item("222").ToPane;
lItem.DisplayDesc = true;
lItem.Left = form.Items.Item("222").Left;
lItem.Top = form.Items.Item("222").Top + 15;
lItem.Width = form.Items.Item("222").Width;
lItem.LinkTo = "STWBCUSTGR";
lComboBox = (SAPbouiCOM.ComboBox)lItem.Specific;
lComboBox.DataBind.SetBound(true, "OCRD", "U_WBCUSTGR");
l Item = form.Items.Add("STWBCUSTGR", BoFormItemTypes.it_STATIC);
lItem.FromPane = form.Items.Item("223").FromPane;
lItem.ToPane = form.Items.Item("223").ToPane;
lItem.Left = form.Items.Item("223").Left;
lItem.Top = form.Items.Item("223").Top + 15;
lItem.Width = form.Items.Item("223").Width;
lItem.LinkTo = "CBWBCUSTGR";
lStaticText = (StaticText)lItem.Specific;
lStaticText.Caption = "Web Customer Group";
Thanks and Regards
Utpal maity -
Customer created in multiple credit control areas.
Dear friends,
In our current system, whenever a business partner is created, the business partner is being created in all the credit control areas that are permitted for that company code, despithe business partner having only one credit control area assigned in the sales view of his business partner data.
How can I control so that a business partner is only created against one of the allowable credit control areas?
HenryHi henry,
You can mantain overall credit limit for customer created in all CCA's.
Goto FD32, select CCA and central data, you can mainatin overall credit limit for all credit control areas (CCA) and current CCA credit limit. -
How to find the list of custom created SAPscript
for reports i enter z* and F4 gives me list of custom created report.
Similarly if i try in se71 it traverses through applications. I just want to see the list of scripts created. how do i do that?Refer table TTXFP.
Form name : TTXFP-TDFORM
Driver program : TTXFP-PRINT_NAME
Ref Thread: Driver Programs
- Vishal -
I have a team site collection and I want to add a new App of type Issue Tracking list. so I did the following:-
From the site collection I created a new App of type issue tracking.
Then from the site collection I created a new Content type named “CustomIssue” which has its parent as “Issue” content type.
I went to the Issue tracking list and I changed the default content type from Issue , to the new “CustomeIssue” content type.
I open the site collection using SP designer and I created a new Create form for my Issue tracking list based on the "CustomIssue" content type and I select to have the Create form as the default form when creating an item.
Everything till this point worked well. But when I open the “customIssue” content type , and I re-order the columns and I hide some columns, this was not reflected inside the custom Create form …
although when using the default content type and the default create form you can control the order of the fields and to specify if certain fields hold be hidden inside the Create form.. so can anyone advice on this please?Hi,
According to your post, my understanding is that you lost the ability to order and hide site columns if i use custom content type with a custom Create Form.
I try to reproduce the issue, the result is the same as yours.
As a workaround, if I modify the custom content type form the site setting, and then change the NewForm as the default form, it will change the column orders.
However, if I use the new created form as the default form, it will remain the original orders.
I recommend that you modify the custom content type form the site setting, and then reset the NewForm as the default form.
The result is as below:
Best Regards,
Linda Li
Linda Li
TechNet Community Support
ok thanks for the explanation ,, but what if i want to change the order and hidde some fields in the future ,, do i have to chnage the defualt create form again ... -
I have a issue to create a item in a custom item type.
this item type is complex, and i think it need a customized create item page.
but i can not find document for this.
another way is write a web app and do this job with portal's plsql api.
still a problem: how can I set context?
wwctx_api.set_context() need both user and password, how do i get that password?
any sugguestion?Hi Peter,
If you want to access specific Portal resources in PL/SQL from any client other than your browser, you will need to use the API function wwctx_api.set_context(). Examples are accessing WWSBR_ALL_ITEMS when connected to the database with SQL*PLUS. There is no need to use this function if you are running e.g. a PL/SQL item from your browser. The context is automatically set.
The function wwctx_api.set_context() indeed requires the SSO password. If you really need this functionality without supplying a password, you can use the unpublished API call wwctx_api_private.set_context(). Notice however that this one is unpublished and therefore unsupported to be used. Oracle can change this API without further notice.
Hope this helps,
Erik -
I am getting the following error in LSMW customer master master load in LSMW for only some of the records.
Field KNVV-WAERS. does not exist in the screen SAPMF02D 0310
Any one now the solutionHi
Make sure you have mention the Currency in your screen or data. -
Is there any BAPI,direct input object in lsmw to create billing plan?
Hi experts,
Is there any BAPI,direct input object or idoc in LSMW to create sales order with billing plan?
Lanceby myself
-
Customer create notification - sd
dear wf experts,
sd std workflow - customer create notification is activated in OOCU, but we find in our system
ecc 5, that there is no activate event linking for std workflow WS20000084 - customer create notification
also all sd std workflows are do not have the above.
pl note that we are using mm std workflows.
pl help, how to activate the sd wf.
thanx in advance
regards
srihariHi,
Check whether you can trigger by assigning the workflow no. in the SPRO settings instead of triggering by the Event.
Help [link|http://help.sap.com/saphelp_srm30/helpdata/en/ca/c668a4e4ee11d1a53a0060087a79ea/content.htm] related to this workflow.
Regards,
Surjith -
Custom Create tag error when VI is compiled
MY vi runs fine in development mode but generates a custom create tag error - 33164 when running the compiled version
The VI was developed with LabView 6.0.2 and we are using Fieldpoint explorer version 3.0.1.
The VI worked fine but we were having problems with our FP-1600 because it could not maintain an Ethernet connection.
NI sent us a new FP-1601 and the ethernet design flaws of the FP-1600 were no longer causing us problems.
Power was cycled on the system a day or so after that and ever since then the compiled version of the same VI will generate the afore mentioned error code, but the VI works when run in debugger/development mode. Re compiled, re-installed FP explorer, re imported fieldpoint tags; None of these worked. -
Use LSMW to create new MMR.
Hi All,
When using LSMW to create new MMR, for example material 202851 was created. However, when using MM03 to display this material, it says"The material 202851 does not exist or is not activated"
What does this mean?
Thanks.
JasonI am doing migration project for more than 11 years. I load all kind of material masters with its individual depth in one go.
But I usually use IDOC method instead of the batch input.
Because most of my projects are migration projects from SAP to SAP. But it works either way, anyway.
Please tell in detail where your problems are, You say you loaded it, but SAP says you did not. You have to trust SAP.
It does not find your data. It is just a program that tells you it does not find your values, so there are no emotions in the game.
In most cases the error is already in the source file.
But you have to know has well how the source file has to look to make your migration succesfull.
Search the forum, There have been many links to well documented LSMW documentation that show how the source file looks and what you need to do in batch input, to make it work.
By the way, SAP has issued a very good book on LSMW. Even it costs a lot bucks, it is worth. As well the SAP documentation at service.sap.com/lsmw is worth to be read.
Maybe you are looking for
-
Cannot see items in my trash bin sice upgrading to mountain lion
cannot see deleted items in my trash bin,since upgrading to mountain lion,it seems to delete items straight away.
-
Connecting to the Internet via Ethernet
Hey, I am trying to connect to the internet on my G4 Yikes for the first time using my apartment's ethernet connection. How do I set this up? Does it do it automatically? Thanks for any help!
-
I have XML files that i want to be able to add an attribute to the parent nodes in the file. I can add a attribute to new parent nodes when created but what about setting attributes to existing parent nodes. I add attributes to new parent nodes with
-
What permissions does a user require in order to call addProcessTaskInstanc
I have a utility in our OIM admin webapp where the user can login and request a change to their password in a particular resource. This utility needs to call tcProvisioningOperationsIntf.addProcessTaskInstance(long plTaskKey, long plOrcKey) I get an
-
Drag n drop components....
Could I get peoples opinions on a final year project idea please. I was thinking of a MIDP design prorgam for desktop where you drag and drop components(e.g. textfield)onto the screen and the program generates the MIDlet code from the design you made