URGENT:Creating customer master using Sd_Customer_Maintain_all

hello all ,
I am creating customer master using SD_Customer_Maintain_All.I will be thankful if somebody Can  tell me how to pass data to this function module.Better if somebody can provide code.
Thanks.
Sandeep.

hello all ,
I am creating customer master using SD_Customer_Maintain_All.I will be thankful if somebody Can  tell me how to pass data to this function module.Better if somebody can provide code.
Thanks.
Sandeep.

Similar Messages

  • How to create customer By using SD_CUSTOMER_MAINTAIN_ALL function module

    Hello all,
    I want to create customer By passing( T_CUST_HIER_IP - customer no, account group, company code, distribution channel, division, name1, search team, city, country).
    using BAPI or function module I am using SD_CUSTOMER_MAINTAIN_ALL
    LOOP AT T_CUST_HIER_IP INTO W_CUST_HIER_IP.
        MOVE-CORRESPONDING W_CUST_HIER_IP TO W_KNA1.
        MOVE-CORRESPONDING W_CUST_HIER_IP TO W_KNB1.
        MOVE-CORRESPONDING W_CUST_HIER_IP TO W_KNVV.
      CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
       EXPORTING
         I_KNA1                              = W_KNA1
         I_KNB1                              = W_KNB1
         I_KNVV                              = W_KNVV.
    ENDLOOP
    But it gives error SALES_AREA_NOT_VALID.

    Hi,
       Check in TVKO and TVTA  master tables, for Sales Area (Sales OrganizationDistribution ChannelDivision) is vaild or not..
       If no entreis availble , it will raise the exception SALES_AREA_NOT_VALID.
    -somesh
    reward points if it is helpful

  • Bapi to  create customer Master

    Dear all,
    As far i know there is no standard bapi to create a customer.  There i s standard fm used her is SD_CUSTOMER_MAINTAIN_ALL. I tried to create customer master using this and making the function module as remote enabled. i tried to created a  zbapi and use this fm inside of this. Please tell me if any idea on this.If any body knows   please help me in this.
    Regards,
    Madhu.

    Dear Alain
    Once again thanks for your reply. I passed customer no to extract data of a customer . But it is not extracting any data .
    I am thinking to fill all the fields of the table by seeing hoe it is extracting the data . can you give me some idea on this .
    DATA: ls_i_main   TYPE cmds_ei_main,
            ls_e_main   TYPE cmds_ei_main,
            lt_custs    TYPE cmds_ei_extern_t,
            ls_cust     TYPE cmds_ei_extern,
            ls_head     TYPE cmds_ei_header,
            ls_instance TYPE cmds_ei_instance.
      CONSTANTS: lc_obj_task TYPE cmd_ei_object_task VALUE 'M'.
      ls_instance-kunnr = '0000100001'.
      ls_head-object_instance = ls_instance.
      ls_head-object_task = lc_obj_task.
      ls_cust-header = ls_head.
      APPEND ls_cust TO lt_custs.
      ls_e_main-customers = lt_custs.
      CALL METHOD cmd_ei_api_extract=>get_data
        EXPORTING
          is_master_data = ls_e_main
        IMPORTING
          es_master_data = ls_i_main.
          "es_error       = pe_error.
    Regards,
    madhu.
    Edited by: madhurao123 on Mar 31, 2010 1:17 PM

  • Why can't I find the field remark when I use LSMW to create customer master

    I want to create customer master data with LSMW.
    Object               0050   客户主记录
    Method               0000
    Program Name         RFBIDE00
    Program Type         B   Batch Input
    but I can't find the field 'Comments' which is in view general data -> address.
    pls help me to find it.
    tks!

    Hi,
    This is quiet simple.
    See when you enter your Tcode in LSMW & start recording, on the first screen where you enter the customer details to create, you see a tick below "Use central adress management"
    Just tick this & record you will get comment in your recording
    Hope this helps you
    Regards,
    Dhananjay

  • Send SMS while creating Customer Master Record using XD01?

    Hi Experts,
    We have a requirement that " Send SMS from XD01 (customer Master)".  Send SMS to customer's mobile after successfully creating customer master  record by pressing SAVE button in XD01 tcode.
    Successfully, sending SMS through the ABAP program.
    How to send SMS from XD01 tcode? I tried using USER-EXIT "SAPMF02D", but it is not sending and giving error message. If I send through the program, it is sending and working fine.
    Whether I have to use Work Flows or any other solutions?
    Please help me out.
    thanks in advance.
    Regards
    Saray.

    Hi,
    Can you please paste your code here?
    Also check BADI CUSTOMER_ADD_DATA in se18.
    Regards,
    Amit

  • Create Material Master using workflow (urgent)

    Hello all,
    We have an urgent client requirement to create material master using workflow.
    Different views for the material master will be created by the relevant departments.
    ex: Accouting 1, 2 will go to accounts deptt.
    I have studied the workflow tutorial  (20 units) on <b>SAP help</b> for leave of absence and have some understanding of objects, methods, bindings etc
    I am however finding it very difficult to define the steps to create a workflow for material master. Are there any standard steps already defined that i can use.
    Any help/inputs will be greatly appreciated.
    Regards
    S. Datar

    Hi,
    You need to speak to a workflow consultant.
    You can get workflow to do many things (including creating a material master) but it takes a lot of coding and design.
    For those of you who think that workflow is just used for the standard SAP workflow tasks, you have to realise that workflow is far more powerful and far more useful than many people think.
    It is always referred to as "Event triggered messaging" but it is more accurate to call it "Event triggered events".
    Within workflow you can chain together many different transactions and or ABAPS and so you can get it to do virtually anything you want (as long as you know how).
    In this case you need the workflow to trigger an ABAP or BTCI session etc. that works through the MM01 transaction. It is relatively easy to get it to do this, but I am not technical enough to be able to help with the steps involved (sorry)
    Steve B

  • Creation of Customer master using CLASS( 'MAINTAIN_BAPI')..

    I am creating customer master by class 'MAINTAIN_BAPI'.  So all fields are sucessfully created except the field 'Remarks / Comments' on customer..Please suggest for the same as far as posiible..
    << Moderator message - Everyone's problem is important. But the answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
    Edited by: Rob Burbank on Jul 18, 2011 10:06 AM

    Hi Yogesh,
    Hi,
    sorry to reply after the message closure.
    Maybe you will read it.
    SD_CUSTOMER_MAINTAIN_ALL is used in standard during the maintenance of a consumer using the standard customer master data transaction XD01 & XD02.
    It is not intended to be used out of the transaction and in no case it should be used out of its original context. Due to the specificity of the function module, out of the original context we may face limitations and data inconsistencies.
    For the maintenance of customers, there is NO BAPI and NO direct function module.
    There are some functions modules like the one above where the name is looking nice. But these should not be used.
    BAPI_CUSTOMER_CREATEFROMDATA1 is part of them. This one uses SD_CUSTOMER_MAINTAIN_ALL, so the above remark is still valid. Moreover, this BAPI is to be used only from process  SAP Product Catalog. Out of it and due to its limitation, a lot of troubles are expected.
    Sorry.
    Below ECC 2005 (6.00), the only solution was batch input and DEBMAS idocs. See [note 384462|https://service.sap.com/sap/support/notes/384462]
    Starting with ECC 2005 (6.00) and above: a synchronisation tool has been introduce. See class CMD_EI_API and VMD_EI_API
    Hope this helps.
    BR
    Alain

  • Need Function Module to create Customer Master

    Hi,
       I need to create customer master data (T-Code: XD01) include the company code data and sales area data.
       Is there any function module that I can use? I tried to use BDC but since the screen is different for each account group, I'm thinking is there any FM that can use so that I do not need to create so much BDC.
    Hope someone can use.
    Thanks.

    hi there...
    Please find below some of the BAPIs, Function Modules and Direct Input Programs for Customer Master.
    RFBIDE00
    BAPI_CUSTOMER_CREATEFROMDATA1
    SD_CUSTOMER_MAINTAIN_ALL
    hope it helps...
    do reward if helpful or get bak if u hav further queries.

  • Error while creating customer master data

    dear sir,
    i have created customer master and maintined all level general,compnay code and sales level data.and again deleted all areas thru t-code XD06.and thru se16n i have deleted the entires in kna1 knb1 knvv table
      again while creating one with same name showing error while maintaing sales level data
    Check: Table KNA1 does not exist, table KNVI does
    Message no. F2061
    plz help how do i rectify this problem and maintain the same cutomer no (external) again.
    regards,
    Debesh

    Hi,
    you did the wrong thing, don't remove the entries from standard table like KNA1, KNVV etc, SAP will maintained the entries in lot of tables same time.
    XD06 is used to set delete indicator, after wards you may create new customer master, if any problem for name you may change the name field as 'delete' for old customer.
    Now to solve your issue, i believe you need to first save the entries with maintainace of general data (KNA1) and then use XD02 to maintain the Sales area data, pl try this way it should work.
    If this way will not work, pl maintain the tax indicator in table KNVI manually to solve the issue.
    regards
    Vivek.
    Edited by: Vievk Vardhan on Dec 7, 2009 6:41 PM

  • While creating customer master  i am getting the Communication error

    Hi experts,
    while creating customer master  i am getting the  Communication error with the external tax system (VERTEX_MS0018)    please tellme how to solve this issue
    Regards,
    Anil prasad
    Edited by: prasadanil on Sep 16, 2011 12:52 PM

    hI Prasad,
    It seems you are maintaining the address data for a country with jurisdiction code. Different external control systems can behave in different ways.
    1. You entered a jurisdiction code that matches the postal code but not the city (possibly due to a typo).
    a) Behavior when you use Taxware: There is no message and data can be saved.
    b) Behavior when you use Vertex: Due to the incorrect city, no comparison jurisdiction code can be determined and message TAX_TXJCD861 is issued with a text from the vertex system that may be unintelligible.
    2. You do not enter a jurisdiction code, but you do enter a postal code and a city that does not match the code (possibly due to a typo).
    a) For Taxware: If the jurisdiction code could not be explicitly determined, a selection dialog box containing the relevant tax jurisdiction codes for the postal code appears. You select one. This and the corresponding city are transferred.
    b) For Vertex: The TAX_TXJCD861 message is issued (behavior as in 1b). Other terms TAX_TXJCD861, TAX_TXJCD101, TAX_TXJCD107.
    For resolving this issue, you can check SAP Note 677850 - Address data: Check/new determination jurisdiction code.
    Hope you will resolve the above issue with these inputs.
    Let me know if you need any further details.
    Ravi.

  • Ship to party is not available in account group while creating Customer Master

    Hello All.
    While creating customer master in account group there is no SH(ship to party) what is the purpose of it . I can see PY BP but not SH (XD01). We always use Sold to Party but i have seen Payer and Bill to party as well while creating customer master . Just got confused why we select such options when everything comes under sold to party.
    I cannot see SH while creating customer for the first time is it necessary that SH should there while creating customer master.
    Regards

    Hi ,,
    please do assign ship to party to account group .
    SPRO --> S&D --> BASIC FUNCTION --> PARTNER DETERMINATION--> SET UP PARTNER DETERMINATION --> FOR CUSTOMER MASTER -- > A/C GROUP - FUNCTION ASSIGNMENT
    Here assign ship to party(sh) to your account group.
    Now you will find sh in customer master.
    If you want further clarification , please let me know.
    Regards
    Patchala.

  • File to IDOC scenario: Create customer master and then return customer no

    Hi all.
    I have a scenario to pass xml file to sap XI to generate IDOC to create customer master in SAP. My problem is that I need to return customer no. created in SAP from IDOC. Is there any solution to do this? Someone told me that BPM could be used for doing this but I don't know the steps.I have no problem in create customer master in SAP. My only problem is how to return customer no.  Any help would be appreciate. Thank you.
    Best Regards,
    Pavin

    >>u can use synch-Asynch bridge using BPM
    This can not be done via sync-async bridge.There are 2 reasons for this
    1.He has file adapter as sender and that doesn't support synchronous scenarios.
    2.He has standard IDOC as receiver.there is no way you can fetch customer# from IDOC without writing a custom program,Thats why i said he need to either use RFC/Proxy or do some custom development.
    Thanx
    Aamir

  • Details regarding Create customer master record

    Hi,
    Can anyone gv info regarding Creating customer master record.
    I need Existing Bapi's for the same.
    Thanks in advance.
    Purna

    Check out the bapi:BAPI_CUSTOMER_CREATEFROMDATA1.
    To know of how to use it, check its documentation, it is very well documented.
    hi karthik, shaik can not reward points as he did not mark this as a question.
    Regards
    Gopi

  • Create customer master in Web dynpro abap

    Hi Gurus,
    i'm new to web dynpro abap...
    My requirements is given below... which is the standard BAPI for create customer master data... then how to call workflow in web dynpro application without using portal server (uwl)... please reply as soon as possible
    1) Create customer master
    2) Change Customer master
    3) Display customer master
    4) When the customer master record is created it should trigger a workflow to another user for approval. Once approved, the customer master should be created in the system
    5)The customer master record creation should be through a bapi call.
    6) When the system master record is being created, duplication check should be performed for name, city, postal code,email I'd etc.
    Regards
    vijay.

    Dear Vijay,
    HAVE YOU GOT THE SOLUTION FOR THE ABOVE REQUIREMENT.. i TOO HAVE GOT THE SAME REQUIREMENT AND I CAME ACROSS YOUR THREAD.
    Please do reply with your answer.
    Regards,
    Sujit K karn

  • Dump while creating customer master data

    Hi,
    I am trying to create customer master record using XD01.  I am getting express document error:
    "Acct group Sold-to party uses ext. no. assignment. Specify an account number"
    I have maintained the external number range from 000000... to ZZZZZZ.... and have also maintained account group.
    Below are the error details:                                                                               
    "MESSAGE_TYPE_X" " "                                                                               
    "SAPLSZA0" or "LSZA0U47"                                                                     
        "ADDR_SAVE_INTERN"     
    Source Code Extract                                                                               
    Line
    SourceCde                                                                               
    523
           call function 'TR_WRITE_LOG'                                                         
      524
             exporting                                                                               
    525
               iv_log_type             = 'FILE'                                                 
      526
              iv_logname_file         = lv_logfile                                              
      527
          IV_LOGNAME_DB           =                                                          
      528
           iv_logname_memory       = lv_protfile                                             
      529
               iv_append_mode          = prot_append_mode                                       
      530
               iv_condense             = ' '                                                    
      531
             tables                                                                               
    532
               it_msgs                 = msg_tab                                                
      533
             exceptions                                                                               
    534
               invalid_input           = 1                                                      
      535
               file_access_error       = 2                                                      
      536
               db_access_error         = 3                                                      
      537
               others                  = 4                                                      
      538
    539
           if sy-subrc <> 0.                                                                    
      540
             message id sy-msgid type sy-msgty number sy-msgno                                  
      541
                     with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.                                  
      542
           endif.                                                                               
    543
                                                                                    544
                                                                                    545
           message x842 with '&1' raising database_error.                                       
      546
                                                                                    547
         endif.                                                                               
    548
    Ende Fangschaltung -
      549
    *xxxi-                                                                               
    550
       END-OF-DEFINITION.                                                                       
      551
                                                                                    552
                                                                                    >>>>>
       write_to_db  adrc   .                                                                    
      554
    WRITE_TO_DB  ADRCT  .                                     "*912d                         
      555
       DELETE adrct FROM TABLE adrct_d.                          "*912i                         
      556
       IF sy-subrc <> 0.                                         "*912i                         
      557
         MESSAGE a840 WITH 'ADRCT' RAISING database_error.       "*912i                         
      558
       ENDIF.                                                    "*912i                         
      559
       UPDATE adrct FROM TABLE adrct_u.                          "*912i                         
      560
       IF sy-subrc <> 0.                                         "*912i                         
      561
         MESSAGE a841 WITH 'ADRCT' RAISING database_error.       "*912i                         
      562
       ENDIF.                                                    "*912i                         
      563
       MODIFY adrct FROM TABLE adrct_i.                          "*912i                         
      564
       IF sy-subrc <> 0.                                         "*912i                         
      565
         MESSAGE a842 WITH 'ADRCT' RAISING database_error.       "*912i                         
      566
       ENDIF.                                                    "*912i                         
      567
       write_to_db  adrp   .                                                                    
      568
       write_to_db  adcp   .                                                                    
      569
       write_to_db  adrt   .                                                                    
      570
       write_to_db  adr2   .                                                                    
      571
       write_to_db  adr3   .                                                                    
      572
       write_to_db  adr4   .                                                                    
    I will reward all the helpful answers.
    Thanks,
    Mohit.

    Hi Farhan,
    All the info you need is available in note 956054. This contains info on the customizing settings, etc.
    The role that you need to maintain is also a part of the customizing setup that is covered within the note.
    Hope this helps you.
    Cheers,
    Rishu.

Maybe you are looking for

  • Weblogic doesn't start up

    Hi, I use weblogic on my MacBook for few months now and I don't know why since this morning weblogic refuses to start up. Apparently it fails to connect to this address: fd00:6587:52d7:1d76:62c5:47ff:fe97:19f6 I noticed this IPv6 address is the one d

  • Help for a New Photoshop user

    How do i get the bend out of a photo?

  • Does AMC adjust so YouTube/Vimeo videos are not too dark

    Hi, been having problems with videoes coming out too dark in YouTube.  This seems to be a problem lots of people are having.  Just to clarify I mean the video is a lot darker on youtube/vimeo than if played in something like VLC on the same monitor.

  • Cannot find photos in iPhoto master folder?

    Hi there When I first bought my Mac I imported a photo library from an external hard drive into iphoto. I cannot find the files in the master folder? I can see and open all the photos in iphoto. There are files in there for all the most recent import

  • Default settings at User level

    Hi All, Please explain how to do the default settings at User level. Appreciate early action.