Updating customer master using billing

Hi ,
Let let me tell the business scenario
if you purchase something in supermarket, lifestyle etc
based on the amount u buy (say 2000,3000) they will give u points
say for 2000 - 5 points for 3000 - 10 points
so the first field is card type ie - master card, golden card, silver card etc
second field is card points - no. of points
see in business scenario, say after getting some points at one stage , customer can redeeme the points he got on the whole
ie he can get cash discount based on his points at certain stage
now my 50 points will be redeemed and next time i will have 0 points
now other fields are points redeemed, poiints in balance
now i got this screen working in customer master
data will be updated in ztable
now in billing , we have to write a user exit through which , we can update this points based on the amount of billing
ie updating customer master from billing user exit
can anyone tell what exit i have to use, what logic i have to write , and how to create project and all
Thanks,
Ratna

Hi,
User Exits are nothing but Customizing the SAP Standard prog. with out changing the exiting functionality.
Option, prepared by SAP to extend delivered standard-programs without modification of the original program at the customer. For potential customer requirements, which are not part of the standard, SAP installs blank containers, which can be filled with own functionalities by the customer. Customer-Exits are administered by SAP .
T-Codes are
SMOD - To find a Enahancement/User Exits
CMOD - To Create Enhancement/Project.
Follow the steps
1. Go to CMOD there you have to give the project name that project name should get from your Functional people, or if you know no problem.
2. Click on Create button it will asks save it local or Package.
3. In Enhancements it will give the All Exits Names then double click on your exit
4. It will take you into a Functional Module nothing but your Exit.
in that Exit you will find Include Program i.e. Eg: ZXQSMU01 where you are going to implement your logic.
5. Double Click on the Include program it will asks create object click enter
it will creates there you can write your logic save it local or any package and Activate it.
6. You need not to pass any values from Functional module/Exit to Include program that import/export values automatically program will access, you don't bother directly you can access the import/export etc. values in the program.
Finally your Exit and Project also Activate it. then check your requirement reached or not.
Following Exit try it.
1. V60F0001 - SD Billing plan (customer enhancement) diff. to billing
2. V60A0001 -  Customer functions in the billing document
3. V46H0001 - SD Customer functions for resource-related billing 
4. V05I0001  -  User exits for billing index   ETC...
     May be try these you can get or goto SMOD press F4 it will give a popup window there short text bill execute then you will get a list of exits check those.
if any clarifications reply me.
Regards
Ganesh

Similar Messages

  • Change in Sales Order/Service Order is updating customer master data

    Hello Experts,
    Here is the change happening in CUSTOMER MASTER RECORD for very few number of cases. This we are not able to replicate, since not able to find out, in which cases it is happening.
    Scenario:
    When the user tries to change address in customer screen (For eg., NAME2,NAME3 ,NAME4 etc.) of change transactions (VA02 OR IW32), the same change is being reflected or updated in the customer master record.
    Note : We tried again doing the change(For the already changed order) in change transactions (VA02 OR IW32) and found that the change was not updating customer master, this time.
    Hence, not able to replicate. Kindly suggest.
    Resolvable suggestion would be highly appreciable.
    Regards
    Mahesh

    I never heard of this before. Per standard, only when customer master address is changed (master data), the changes will reflect in the documents (transactional data). Your scenario reflects the other way round. Hence you may need to debug the program SAPMV45A and see any enhancement is causing this.
    Regards,

  • 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.

  • No change log is created when updating the customer master using LSMW

    Hi Gurus,
         I am a bit confused on why no change log is created when I use the LSMW to update the customer master. What I update is the customer partner of the customers. For example I have a sold-to 1000 then a customer representative (Z3) 50001, now when I use the LSMW to change the customer representative to 50002 it is correctly updated however no change log is found if you check for the changes on that specific customer. This is a bother for me since I want to send all the customer changes through IDOC and the processing needs to access the change log.
    Thank you.

    Hello,
    What process are you using object, BAPI, etc.
    Regards
    Waza

  • Customer Master using Appended structure KNA1

    Hi
    We have to update few ZZ description fields in ZAKNA1, which are not part of user interface in XD01/02/03. The available options are such as LSMW, Batch input require code addition through user exit ZXF04U01/ EXIT_SAPMF02D_001.
    I would like to use BAPI as we have a plan to use web services. Any idea how to extend the BAPI's such as BAPI_CUSTOMER_CHANGEFROMDATA1 or BAPI_CUSTOMER_CREATEFROMDATA1 using best practice?  I donu2019t find any extension structures like other BAPIu2019s have. Without ExtensionIn and ExtensionOut parameters, a BAPI can not be enhanced correct?
    The version we are using is ECC 5.0. Any ideas with customer master BAPI will be greatly appreciated.
    Bala

    Hi Bala,
    Just some general comments without having looked at your specific problem. Since you're on ECC 5.0 you cannot use the new [Enhancement Framework|http://help.sap.com/saphelp_nw2004s/helpdata/EN/94/9cdc40132a8531e10000000a1550b0/frameset.htm], which would make such changes more easy...
    A rather awkward workaround for extending the BAPI's is sometimes to add append structures to an IMPORT parameter of the BAPI. However, this is a rather dangerous and limited approach, because you might get into trouble depending on where the structures are used (i.e. if you add a field, it might cause harm in other programs that use the structure) and you also have to study the source code to see if you even could utilize those additional fields.
    A pretty generic option in lieu of other approaches is to generate a custom wrapper function module around the standard BAPI. Within your custom BAPI you can add the missing fields as parameters, call the standard BAPI and then do the additional updates. The big advantage of such a solution is that
    <ol>
    <li>Your change/additional logic is obvious (not hidden in a customer exit or BAdI, which are often harder to find when troubleshooting or changing functionality)</li>
    <li>Any changes to the standard BAPI will automatically also take effect in your custom BAPI (since you didn't copy the original one); this excludes of course interface changes, but here you anyhow would have to do something...</li>
    </ol>
    Should you have custom fields that are already exposed on the customer maintenance screens via enhancements, then you might want to consider using the wrapper approach, but simply export the additional data to memory, then call the standard BAPI and within the customer/user exits handling the additional fields fill them via an import from memory.
    Cheers, harald

  • Updating customer master data after invocing

    Hello Gurus,
                       Is there any procedure that after the customer is INVOICED or after the completion of billing the customer master data field needs to be updated.
    Thanks in advance
    sameer

    hai gurus,
    For the above question, is it possible to create a extra feild in customer sales tab.
    sothat whenever the invoice is saved for bill to party,(the extra feild is for either sold tp party or bill tp party) that feild to going to update automatically.
    Is it possible to get trasaction data to be displayed in customer master data, like the one in material master data, where stock valuation is going to update in accounting 1 veiw.
    thanx in advance
    sukumar

  • Why is customer master used in STO?

    Dear Experts,
    what is the process of using customer master in STO  4th step only?(intra company with sd without billing)
    thanks in advance
    regards
    shiva.

    hi
            while doing STO with shipping receiving plant can be  treated as a customer to supplying plant.that's the reason and in Customer also maintained sales area ie sales org,distribution channel and division.
    Regards,
    M.B.Raju.

  • 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

  • XD01 assertion failed error while updating customer master data

    Hi Guys,
    This is an error when I use transaction XD01 to create customers accounts, If you have any ideas do let me and we'll try it....
    The error does not let an BDC or LSMW progress as well. There are also no recent sap notes on the same.
    The error is as follow
    ASSERTION_FAILED
    Short text
    The ASSERT condition was violated.
    What happened?
    In the running application program, the ASSERT statement recognized a
    situation that should not have occurred.
    The runtime error was triggered for one of these reasons:
    - For the checkpoint group specified with the ASSERT statement, the
    activation mode is set to "abort".
    - Via a system variant, the activation mode is globally set to "abort"
    for checkpoint groups in this system.
    - The activation mode is set to "abort" on program level.
    - The ASSERT statement is not assigned to any checkpoint group.
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    The following checkpoint group was used: "No checkpoint group specified"
    If in the ASSERT statement the addition FIELDS was used, you can find
    the content of the first 8 specified fields in the following overview:
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    I have a company code CG01 with sales organization CTS0 and I want to transfer or extend all the customer master data to another company code CG03 with the sales organization CTS0
    The things that I have tried and not work
    using xd01, fd15, fd16, fd01, does not wok and gives the error as above
    The things that I have tried and it works
    Change the sales organization from CTS0 to CTS1 I am able to post the customer master data, using any of the above tcodes and it does not give any error, however the client wants to sales organization to remain CTS0
    So please give me any ideas as per your experience as this transfer of master data has to happen by Monday, else I'll be fried by my boss
    My number is 9820029197
    Will also keep you'll posted on any developments on this case,
    Ronan Pinto

    >
    > Firstly I am from SAP FI, so totally new to SAP SD
    >
    Then you are best person to explain the reason on why the same sales organization, can't be assigned to different company codes. When a sales is done through one sales organization, then will the  profit/loss be accounted in different company codes. Is it legally allowed in the country, where your customer is doing business? How you are going to develop the  balance sheet? Again being the FI person, you are best judge to provide the details to your customer and not a SD guy.
    >
    > 1) How did the system not give an error while putting the data inside CG02 with sales organisaton same as CST0 same as in company code CG01.
    >
    I dont see any other method than removing the assignments in the backend and uploading the data. You can consult a Basis person to find the  change logs for the assignment table. In my opinion, removing the sales organization from a company code assignment just for loading a customer master data and then reassigning to original sales org is  a crooked method and/or not a professional method.
    >
    > 2) Since I have limited experience of SD, If I have to convince my client about the use of CTS1 sales organisation or a unique sales organisation against his argument that it worked for company code CG02, how should I do it.......
    >
    As explained above, how the sales will be accounted  in different company codes (even if the system allows  to assign the same sales org to different company codes)?
    I would recommend you to post this question in FI forum (after closing here) to check what are the legal implications for this scenario.
    Regards,

  • Upload partner functions to customer master using LSMW

    Dear Friends,
    I'm trying to uplaod customer partner functions data through LSMW. I have tried to upload the data using recording method in LSMW(Tr. code: XD02).
    As per the business requirement, I need to upload multiple number(For example: 10 records) of SP(Sold to) partners to a single customer.
    While executing session, instead of adding all 10 records of partner functions, only the last record(i.e 10th records) is adding in the customer master.
    Your response will be highly appraciated.
    Regards
    Satish

    Hi Satish,
    You can't use XD02 to upload multiple partner functions by recording the transaction. It will not create multiple entries, always it will replace the existing ones with the new entry. you need to use the standard BI program or Idoc method do the same.
    I know the scenarios for the vendors it didnot work in that way for me at that time I used Standard BI method to create the multiple partner associations.

  • Classification View in customer master using lsmw

    Hi folks,
    I have a requirement regarding conversion method that is fields regarding classification view in customer master needed to be populated r created in through xd01 transaction this should be done using lsmw tool,if tried with standard method and bapi method ,can any one tell how to do whether it is bapi r standard method plz dont suggest recording method,even it is idoc method k r can any tell me which function module exists fr this ,POINTS will be awrded for answers .

    Try FM : SD_CUSTOMER_MAINTAIN_ALL
    Thanks
    Seshu

  • 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 Advance

    Hi,
      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.

  • 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

  • Change Customer Master using CMD_EI_API MAINTAIN_BAPI Method

    Hi Experts,
    I am using CMD_EI_API=>MAINTAIN_BAPI method for Creating Customer through Custom program. The Creation of Customer Master is working fine.
    I have another requirement i need to perform the following for the Customer Change
    1 . Delete all Phone , Fax and SMTP entries from the table and create a new entries for Customer.
    2 . Delete a Contact Person based on the information from the legacy system.
    I am facing problem in the above two issues
    ADR2, ADR3 and ADR6 entries are retrieved for customer.
    this values are populated and passed to the method with Task as 'D' - delete.
    there is no error message  from the Method. when i call commit statement
    1 . the address details are not getting deleted in the tables
    2. if a contact person is deleted then i am getting a short dump while commit.
    Please help me if you know the details of MAINTAIN_BAPI method whic can be used for the Deletion purpose.
    Thanks,
    Shrikanth R

    Hi Experts
    I'm having the same problem it looks like the method maintain_bapi does not commit the new values, I debuged it and found a call to a badi lr_badi_update but I could not find information about it.
    Any help will be appreciate
    Leo

  • 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

Maybe you are looking for

  • Olá, Boa noite!

    adquiri o  adobe para conversão de pdf em word e não consigo finalizar a ação...tentei três vezes e a mensagem é sempre a mesma erro de conversão, gostaria de saber se há limite em tamanho de arquivo, pois sei que o arquivo que estou tentando convert

  • Issue with editable alv using  cl_gui_alv_grid

    Hello all, its a table update program . user can save create new entry and delete the entires . the screen should be avaiable for multiple time inputs by the user . i achived it by  method handle double click and i am refreshing the scrren and making

  • Required fields in a presentation

    In a bpm object presentation we want to have some of the text input fileds required. When they are not filled in we want a message to display to the user. i tried setting the Not Null attribute in the bpm object but that does not work. We are using 6

  • WRT54G2 doesnt recognize my network card during setup

    I am trying to setup my WRT54G2 router.  I  ran the setup disk and  I get a message saying "Can't locate  wired network adapter". However, my network adapter is installed  and seems to be working fine.   The network card is an NVIDIA nforce  networki

  • Open in smaller window

    I have created a few slideshows in Flash and when the link to open them is clicked I need the slideshows to appear in a smaller window, like a popup message. Can someone please help and tell me how to do this? Many thanks