Customer master workflow - email

Hi WF Consultants,
I am New to WF, I did Practice on Examples which  is available on net.
Now i am going to do my Objects....
I have requirement like ..
1)  USER's are informed by de way of e-mail (MS-OUTLOOK) to other users  whenever customer/vendor masters are created.
Please help me  there are any standard T-code is there  OR what are the <b>steps</b> i have to follow in this Object...
Points will be rewarded.
Thanks in advance...
Naresh Kumar

Hi Naresh,
Check  this info.
Developing a simple application using steps "User Decision" and "Mail"
Basic terminology used in the workflow:
The workflow definition is the set of rules that determine the path that the process takes. For example, how a purchase requisition is processed, from the initial request to the creation of the purchase order
A Workflow Instance, which is often simply referred to as the workflow, is a single workflow run. For example, the processing of a single purchase requisition for computers.
The Tasks are the steps in the process, which have to be performed either by people or automatically by the software. For example, to check for the availability of the spare computers in the company.
A Work item is the task instance that is performed as a single workflow step. For example, check that there are no spare computers available in the company.
Agents are the people who process the tasks (via the work items). For example, requisitioner and a member of the purchasing department.
Container is the place where all the data used in the workflow is collected.
Binding is the set of rules that define which data is passed to which part of the process.
Building a simple workflow application
The central tool for creating, displaying and processing a workflow is the workflow builder (Transaction SWDD). Within the workflow builder you can create all components of a workflow, including all the containers you need for getting the data from one step to another.
Generally, most of the workflows are started by an event (for example, when a material is created or when a new purchase requisition arrives). You define which data from this event needs to be passed to the workflow via binding.
However you can also start any workflow directly. Let us create a simple workflow and start the workflow directly, using the testing tools.
Call transaction SWDD. When the workflow builder is called for the first time, a newly created initial workflow definition appears or else last created workflow appears. In such cases you can opt to create a new workflow by pressing “Create New Workflow”(ctrl + shft + F5). The following screen appears.
The initial workflow screen has the following parts:
a. The start of the workflow definition, indicated by .
b. The end of the workflow definition, indicated by .
c. The area in which you insert the new workflow definition is indicated by .
Now select the undefined step and select Create step or double click the undefined step. Now among the different steps chose the User Decision by double clicking on it.
Developing a simple application using steps "User Decision" and "Mail"
Previous
Now enter the title for the user decision “ Please make a decision”. Also enter the decision texts as Approve and Reject. On pressing enter, the outcome values default to the Decision texts but you can specify your own names, if desired. Now we need to select the agent. Agent is the person to whom the work item needs to be sent.. Since this is just a beginning, we would hardcode the user name. Select the User from the drop down list and enter the user name to whom the work item needs to be sent. In general, this type of agent assignment is not done. Agents are generally assigned using the expression, agent assignment rule or organization object (job, position etc.).
Now select Transfer and to graphic button. Following screen appears:
Now we need to include a mail step to be sent to the requestor. Now select the line “Approve” and do a right click. Different options on shown on the context menu. Select Create.
Now select the step “Send Mail” from the list.
Developing a simple application using steps "User Decision" and "Mail"
...Previous
Now enter the subject and the body of the message for the mail to be sent.
Do not change the recipients. Our mail is intended for the persons who triggered this workflow. &_WF_INITIATOR& contains the value who executed the workflow. Since this is a test object, we are using &_WF_INITIATOR&. But we wouldn’t be using this variable in real time scenarios. We would discuss about this in the coming documents.
Now select Transfer and to graphic button.
A popup appears requesting for the abbreviation and the name for this task. Enter the same and press enter.
Now enter the package as local object and press enter.
Follow the steps 5 through 9 for the step “Reject”. The following screen appears:
Press SAVE to save the workflow application. You need to enter an abbreviation and name for your workflow as shown below. You can change any of these at any later point. After saving, a number is assigned to your workflow starting with WS, as shown below.
Developing a simple application using steps "User Decision" and "Mail"
...Previous
To execute the workflow, activate it by choosing the activate button.
Test the workflow by choosing Test. The following screen appears.
Now choose Execute to start the workflow.
Now the recipient would receive a work item in his SAP® inbox (Transaction SBWP).
Now execute the work item by pressing “Execute”. The following screen appears:
Choose one among Approve or Reject as part of the user decision. He can select the third option to retain the work item in his inbox and make the decision later. Now suppose that the recipient has chosen one of the first options. Now a mail would be sent to the requestor with the status of his request.
Creating a Container element
This document details about creation of a container element in workflow and using it in the step "Mail".
Pre-requisites:
It is assumed that the reader of this Tutorial is aware of creating a workflow definition with the step “Mail”. If not, please go through the document on creating the same available, by clicking here.
Steps:
1. Create a workflow definition using the transaction SWDD.
2. Let’s create a container element for Carrier id. Click on the “Workflow Container” on the left side of the screen (as shown in the screenshot below):
3. Now double-click on “Double-Click to Create”
4. Enter the details pertaining to CARRID here.
5. Click on tab “Properties” and select “Import”.
6. Click on “Confirm (Enter)”.
7. Now the element created could be seen on the left side, below the “Workflow Container”.
Creating a Container element
Previous
1. Create a “Mail” step by double-clicking on “Undefined” step in the workflow.
2. Enter the recipient details in the “Recipients” box.
3. In the subject line, enter “Carrid value entered is:” and click on “Insert Expression”.
4. Select the element “Carrid” from the list.
5. Similarly enter the content in the “Body” area.
6. Save and activate the application.
Testing the Workflow application:
7. Test the workflow by clicking F8.
8. Enter the value of the Carrid as shown above and press execute.
9. A mail would be sent to the recipient mentioned earlier with the carrid value entered.
Condition Step
Agenda:
This document details about the steps “Condition”.
Pre-requisites: It is assumed that the reader of this document has a preliminary understanding of workflow and has worked with the container elements earlier. If not, please go through the first two Tutorials of workflow available in this site. (More details)
Procedure:
1. Create a new workflow definition.
2. Create a container element, CARRID (as demonstrated in tutorial 2).
3. Now click on undefined step and create the step “Condition”.
4. Enter the step name of your choice.
5. We would have the following condition here:
If carrid = ‘AA’.
Do this.
Else.
Do this.
Click on “Click here to create a new condition”. Following screen appears.
Double click on “Carrid”. Next click on “=” and enter the value “AA” in the constant field and press ENTER.
Enter the outcome names of your choice as shown above.
Click on “Transfer and go to graphic”.
As shown above, there are two branches here. One navigates to true, if CARRID = ‘AA’ else the control takes the branch “False”.
Test the above scenario by inserting mail steps in the above 2 branches and by passing different CARRID values.
Condition Step
Agenda:
This document details about the steps “Multiple Condition”.
Pre-requisites: It is assumed that the reader of this document has a preliminary understanding of workflow and has worked with the container elements earlier. If not, please go through the first two Tutorials of workflow available in this site. (More details)
Procedure:
1. Create a new workflow definition.
2. Create a container element, CARRID (as demonstrated in tutorial 2).
3. Now click on undefined step and create the step “Multiple Condition”.
4. Enter the step name of your choice.
5. We would have the following condition here:
If carrid = ‘AA’.
Do this.
Elseif carrid = ‘AH’
DO this.
Elseif carrid = ‘SQ’
Do this.
Else.
Do this.
Select the “CARRID” using the F4 help for the comparison basis field.
Enter the values of the carrid under the Comparison values with the corresponding outcome name (of your choice)
Double click on “Carrid”. Next click on “=” and enter the value “AA” in the constant field and press ENTER.
Click on “Transfer and go to graphic”.
As observed above, there are different branches for each value of CARRID mentioned above.
Test the above scenario by inserting mail steps in all the branches and by passing different CARRID values.
Using "Container Operation" step
Agenda: Usage of step “Container Operation”.
Pre-requisites: It is assumed that the reader of this tutorial has worked in the concepts that are dealt in earlier tutorials. (click here for more details)
Scenario: In this tutorial, we would deal about how to work with the step “Container Operation” with an example of calculating the available seats by subtracting occupied seats from the maximum seats at the workflow level.
Procedure:
1. Create a new workflow definition using the transaction SWDD.
2. Create two container elements MaxSeats, Occ_Seats with the “import” property set. You can use the reference fields sflight-seatsmax, sflight-seatsocc for this.
3. Create another container element AvailableSeats without setting either import or export property as this is calculated within the workflow and used within the workflow. You might use any of the above reference fields as data types.
4. Define a new step “Container Operation” in the workflow definition by double-clicking on the “Undefined step”.
5. In this step, we would calculate the available seats from the max seats and seats occupied.
I would recommend entering all the container elements from the F4 help instead of typing them manually.
6. Return to the main screen.
7. Create a mail step after this to send the available seats information.
8. Test the above functionality by passing some values to the maximum and the seats occupied.
9. Result would be as follows:
Triggering Events Programmatically
Purpose: This document details the procedure in triggering the business object events programmatically.
Pre-requisites: It is assumed that the reader of this document is aware of the business object concepts and good in ABAP.
Procedure:
In this document, we would take an example of the business object BUS1001006 (Material) and the event CREATED. In general, this event is triggered whenever a material is created using a standard procedure like MM01 or any others. Now we would trigger this event from our own programs.
Following are the screenshots of the business object BUS1001006 and the event CREATED. Go to transaction SWO1 for more information of the business object.
Double-clicking on the key field parameter gives you technical information of the field.
In order to trigger an event programmatically, we would use the function module SWE_EVENT_CREATE.
Following is the sample code to trigger the events programmatically:
REPORT ZDEMO_TRIGGER_EVENT.
DATA: KEY LIKE SWEINSTCOU-OBJKEY.
KEY = '1163'. “ Material Number (hard-coded)
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'BUS1001006'
objkey = KEY
event = 'CREATED'
CREATOR = ' '
TAKE_WORKITEM_REQUESTER = ' '
START_WITH_DELAY = ' '
START_RECFB_SYNCHRON = ' '
NO_COMMIT_FOR_QUEUE = ' '
DEBUG_FLAG = ' '
NO_LOGGING = ' '
IDENT =
IMPORTING
EVENT_ID =
TABLES
EVENT_CONTAINER =
EXCEPTIONS
OBJTYPE_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.
ELSE.
WRITE 'Event Triggered'.
ENDIF.
COMMIT WORK.
In order to test whether the event is getting triggered or not, we can make use of Event Trace. Switch on the event trace using the transaction SWELS.
Press ‘Switch On”.
Now execute the program developed earlier. Now switch-off the event trace using the same transaction SWELS.
Now go to transaction SWEL. Here you can list out the events triggered in the particular period of time. Here is the event-trace list:
Deadline Monitoring in SAP Workflow
A major advantage of workflow is the ability to monitor the workflow steps according to a predefined schedule. Following are different deadlines that can be monitored against each workflow step:
• Requested Start
• Latest Start
• Requested End
• Latest End
In this example, we will define a deadline to the User Decision example created earlier (click here). Following is the screenshot of the application developed using the User Decision example:
We would extend this example to the deadline monitoring.
In the User Decision step, click on the “latest end” tab.
By default, No deadline monitoring is active (as seen in the above screenshot).
Choose the “Work Item Creation” from the list box.
After selecting “Work Item Creation”, chose an offset of 5 minutes. This means that the work item must be executed within 5 minutes of the creation, if not this would trigger.
Deadline Monitoring in SAP Workflow
Enter recipient details to whom the message to be escalated, if the work item is not executed with in 5 minutes after work item creation.
Save and activate the workflow definition.
Testing the workflow application:
• Execute your workflow.
• Check for the work item in the SAP Inbox. This time do NOT execute the work item.
• Wait for the deadline to be triggered. After that, a deadline message is delivered to the recipient mentioned in the “Latest End” tab. See the screenshot below.
Don’t worry if the deadline message doesn’t appear immediately after 5 minutes. This depends on various factors including how the deadline monitoring program is scheduled and also on the availability of the background processors.
Use SWWA to check how the deadline monitoring program is scheduled in program.
For example, assume that our work item has been created at 09:10 hrs and the deadline message is expected to trigger at 09:15 hrs. From the above screenshot, it is understood that the background program is scheduled to execute for every 3 minutes. Assume that the last run of the program is at 09:14hrs and the next run is expected at 09:17hrs. So even our deadline expires at 09:15, the deadline message would appear only at 09:17hrs after execution of the background program.
Some more points
In our above example, we have used the deadline on the “Work Item” creation time. i.e., 5 minutes after creation time, the deadline message would be sent. Now we would check the other option “Expression”. Here we can mention the date and time, when the deadline message should appear irrespective of the work item creation date/time.
As seen in the above screenshot, we can provide the target date and time by which the task should be finished. Container elements could be used in this case. Please refer to our example on creation of container elements (click here).
Personal Substitute in Workflow
Requirement: Need to have at least one substitute who can act upon work items in your absence.
Important: The appointed substitute would be able to see all your work items. A substitute cannot be assigned for only particular area of organization or any other item. So need to ensure that the substitute have the necessary authorizations to act upon the work items.
Procedure:
1. Go to SAP Business Work Place (TCode: SBWP)
2. Now from the menu bar, select Settings à Workflow settings à Maintain Substitute
3. Highlight/Select the name on the window, in this case SAPDEV02 and click on “Create Substitute”.
4. List of users available in the system are displayed.
5. Select the required substitute user name. Following screen appears.
Validity field describes about the period in which the setting would be active. Note that the dates on the screen would range from the current date to 31st Dec 9999.
Regarding the checkbox “Substitution active”, it is advised to leave this checkbox unchecked for system performance reasons. A check in this box indicates that the substitution is “permanent” and if left unchecked it is treated as “as-needed”. A permanent substitute will automatically receive the primary users work items in their own box. In the case of “as-needed”, substitute must manually adopt the work items from the primary user’s inbox.
6. Save the entries
7. Click Enter to leave the screen.
Adopting a Substitute in Workflow
If you have been designated as an “as-needed” substitute, you must manually adopt the substitution. If you are designated as a “permanent” substitute, the work items would automatically appear in the inbox.
Before adopting a substitution, there are 19 work items in the inbox. See the screenshot below:
To adopt a substitution, select Settings à Workflow settings à adopt substitution.
Select the corresponding User-id (if you have been assigned as a substitute for multiple people, then this option would allow you to select the user name of whom you would to check the work items)
The corresponding user’s work items would appear in our inbox now.
You can end the substitution, by selecting settings à Workflow settings à End substitution.
Note: Substitutes can only adopt work items that are directly routed to the person for whom they are a substitute. If you are a substitute for a user (SAPDEV02) who has been made a substitute for another user (SAPDEV01), you will only see work items for user SAPDEV02 and not of the user SAPDEV01.
Notification of Work Items via e-Mail
SAP provides us with a facility of notifying the user via the email address of your choice when there are any pending work items in the SAP Inbox..
1. Go to Transaction SO13.
2. Click on Automatic Forwarding tab.
3. Click on Create icon .
4. Enter the details in the above screen.
5. Click ENTER to complete the entries.
6. Now the notification would be received at the provided email address if there are any pending work items in the inbox.
Filtering the Work Items in the SAP Inbox using BADI
This document details about the procedure in filtering some of the work items from the SAP inbox using a BADi.
Following is the screenshot of the SAP inbox, before implementing BADi:
The BADi that is used in filtering the work items is WF_BWP_SELECT_FILTER. To implement the BADi, go to transaction SE18. From the menu, select Implementation à Create. (See the screenshot below)
Enter the implementation name and press ENTER
Enter any meaningful short text for the implementation and click on the tab “Interface”
The implementing class, ZCL_IM_BWP_SELECT_FILTER, is automatically proposed. Double click on the implementing class name.
You are now navigated to the class builder. Now double-click on the method name shown on the screen (see the snapshot below)
Now let us filter out the work items belonging to the task TS2000066. See the code below:
Activate the method and also the implementation. In the state of active, you wouldn’t be able to make any changes. To make any changes, we need to deactivate it and then make the changes.
Now check the inbox and would notice that the work items related to that task are no more appearing.
To notice the differences, try activating and deactivating the BADi implementation.
Hope this resolves your query.
Reward all the helpful answers.
Regards

Similar Messages

  • F.27(Statement should be emailed if customer master contains email address)

    Hi All,
    I am working for the tcode f.27. A standard form F140_ACC_STAT_01 is assigned to tcode. Here my requirement is i need to do some changes in the form and output should be in pdf format and statement should be emailed if customer master contains email address.
    Can any body please help me how to send the email if the customer master contains email address.
    Please reply.
    Thanks,
    Nagendra

    Hi Nagendra
    change the customer email address on home and bussiness email field first and then make following changes to function module 'Z_CORR_PROCESS_00002310' or whatever name you  have got , this is working for us, let me know if y ou have any problem, You might have to tweak a code a bit , here we are decide whether to send customer statements to two email or not based on customer group selection
    data: w_output_type(10).  "Output type
       data: w_kunnr like i_kna1-kunnr.
       data: w_ktokd like i_kna1-ktokd.
       data: l_addressdtls type zaddressdtls.
       data: l_atype(1).  " Address type
    DATA: w_mailtxt TYPE finaa-namep VALUE 'ZCITY_STATEMENT_MAIL_BODY'.
    * Variables are imported - set in ZFKORD10_STUD
    * Import variable w_output_type from memory
       clear: w_output_type.
       IMPORT w_output_type FROM MEMORY ID 'ZOUTPUT_TYPE'.
       move 'B' to  l_atype.      "Business e-mail
       if w_output_type = 'EMAIL'. "Email option chosen
         c_finaa-nacha = 'I'.
         c_finaa-tdfaxuser = sy-uname.
          c_finaa-namep = w_mailtxt.
    * Get the Relevant e-mail address
         move I_KNA1-KUNNR to w_kunnr.
         clear: l_addressdtls, c_finaa-intad.
         call function 'Z_GET_CUSTOMER_ADDRESS'
              EXPORTING
                   kunnr                   = w_kunnr
                   atype                   = l_atype  "B Business H Home
              IMPORTING
                   addressdtls             = l_addressdtls
              EXCEPTIONS
                   invalid_customer_number = 1
                   no_customer_partner     = 2
                   invalid_address_type    = 3
                   others                  = 4.
         if sy-subrc eq 0.
           if l_atype = 'H'.  "Home e-mail address
             c_finaa-namep = w_mailtxt.
             c_finaa-intad = l_addressdtls-home_email.
           else.
             c_finaa-namep = w_mailtxt.
             c_finaa-intad = l_addressdtls-business_email.
           endif.
         endif.
         concatenate i_kna1-kunnr
                     'Account statement from City University'
                      into c_itcpo-tdtitle separated by space.
         c_itcpo-tdfaxuser = sy-uname.
         if ( c_finaa-intad is initial            " No email address
              and c_itcpo-tdpreview is initial ). " and not print preview
           c_finaa-nacha = '1'.        "Print output type
           c_itcpo-tdgetotf = 'X'.     "Do not print
           c_itcpo-tdpreview = space.  "No print preview
           c_itcpo-tdnoprev = 'X'.     "No print preview
         endif.
       endif.
    if w_ktokd = 'stud'.
        move 'H' to  l_atype.      "Business e-mail
       if w_output_type = 'EMAIL'. "Email option chosen
         c_finaa-nacha = 'I'.
         c_finaa-tdfaxuser = sy-uname.
         c_finaa-namep = w_mailtxt.
      "Get the Relevant e-mail address
         move I_KNA1-KUNNR to w_kunnr.
         clear: l_addressdtls, c_finaa-intad.
         call function 'Z_GET_CUSTOMER_ADDRESS'
              EXPORTING
                   kunnr                   = w_kunnr
                   atype                   = l_atype  "B Business H Home
              IMPORTING
                   addressdtls             = l_addressdtls
              EXCEPTIONS
                   invalid_customer_number = 1
                   no_customer_partner     = 2
                   invalid_address_type    = 3
                   others                  = 4.
         if sy-subrc eq 0.
           if l_atype = 'H'.  "Home e-mail address
             c_finaa-namep = w_mailtxt.
             c_finaa-intad = l_addressdtls-home_email.
           else.
             c_finaa-namep = w_mailtxt.
             c_finaa-intad = l_addressdtls-business_email.
           endif.
         endif.
         concatenate i_kna1-kunnr
                     'Account statement from City University'
                      into c_itcpo-tdtitle separated by space.
         c_itcpo-tdfaxuser = sy-uname.
         if ( c_finaa-intad is initial            " No email address
              and c_itcpo-tdpreview is initial ). " and not print preview
           c_finaa-nacha = '1'.        "Print output type
           c_itcpo-tdgetotf = 'X'.     "Do not print
           c_itcpo-tdpreview = space.  "No print preview
           c_itcpo-tdnoprev = 'X'.     "No print preview
         endif.
    endif.
    endif.

  • Customer master workflow

    Hi Experts,
    We are developing a customer master workflow, when ever customer master record is created the workflow will be triggered.
    This triggering event is mapped to the change doc object debi.
    My concern is i want to raise this event at sales org or company code creation level.
    I tried doing this validation at check function module,however the record gets already created & updated in tables. So im not able to validate at this point.
    Please advice , how can we achieve this.
    Thanks in advance for your inputs.
    Regards
    Keerthi

    Hi,
    If you are using a Webdynpro alpplication ... then it would be easier.
    There should be "Create" button. In the WDA this button is linked with a action-method.
    Now write down the code to start workflow. You can use the following method to start a workflow.
    SWW_WI_START_SIMPLE : General Task not required
    SWU_START_WORKFLOW : General Task not required
    SAP_WAPI_START_WORKFLOW : General Task Required
    EWW_WORKFLOW_START : General Task not required
    Now design the workflow as per your requirement ( single level / multiple level ). after all approval call a FM to save in the IT, if rejected this FM should not be called. You can also set up the notification to the initiating user to notify the approval/rejection by the approver.
    Hoping that this might help you.
    Thanks and regards,
    SNJY

  • Customer Master - Internet Email Address

    Can anyone advise the following?
    I am trying to send output for 'BA00' Order Confirmation via email based on the Sold-to party in IDES.   But i couldn't find the email address field in the customer master, general view.  Is there some settings somewhere missed?
    Currently in SCOT, i can only see transmiemail addressing to a IDES email account.
    Thanks
    Peter

    Hi
    Scroll down you can find
    In customer master, general data in that communication area where u can find Email address
    regards
    sar
    Edited by: datla Sarves on Jun 13, 2008 9:25 AM
    Edited by: datla Sarves on Jun 13, 2008 9:27 AM

  • Change of email in customer master

    I want to make all the email address for customer in customer master as blank.I am using an bapi sd_customer_maintain_all to make email blank.While running the report it returns with error message for sy-subrc as 22 for camerror any idea what exactly it all about.
    REPORT  zvr000_stlcustomer_emailchange.
    TABLES: kna1,adr6.
    TYPES: BEGIN OF addr,
          addrnumber TYPE adr6-addrnumber,
          smtp_addr  TYPE adr6-smtp_addr,
          persnumber TYPE adr6-persnumber,
          END OF addr,
          BEGIN OF cust,
              kunnr TYPE kna1-kunnr,
              land1 TYPE land1_gp,
              adrnr  TYPE kna1-adrnr,
              smtp_addr TYPE adr6-smtp_addr,
          END OF cust.
    data lv_charr type c value 50.
    data lv_kna1 type kna1.
    data lv_kna2 type kna1-kunnr.
    DATA:  git_adr11 TYPE STANDARD TABLE OF addr,
           gwa_addrr2 LIKE LINE OF git_adr11.
    DATA: git_kna11 TYPE STANDARD TABLE OF cust,
    gwa_addondata     type          cust_add_on_data,
          gwa_kna1  LIKE LINE OF git_kna11.
             data gwa_addr          type          bapiaddr1.
             data gwa_addr2         type          bapiaddr2.
    select-OPTIONS: s_kunnr FOR kna1-kunnr.
    Select the customers and address# from kna1
    SELECT kunnr land1 adrnr FROM kna1 INTO TABLE git_kna11
      WHERE kunnr IN s_kunnr.
    IF git_kna11 IS NOT INITIAL.
    LOOP AT git_kna11 INTO gwa_kna1.
    lv_kna1-kunnr = gwa_kna1-kunnr.
    gwa_addr-e_mail = ''.
    gwa_addr2-e_mail = ''.
        gwa_addondata-changed = 'X'.
        gwa_addondata-kunnr = gwa_kna1-kunnr.
        gwa_addr-addr_no = gwa_kna1-adrnr.
    gwa_addr2-addr_no = gwa_kna1-adrnr.
        lv_kna1-land1 = gwa_kna1-land1.
        lv_kna1-adrnr = gwa_kna1-adrnr.
      CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
            EXPORTING
              i_kna1                  = lv_kna1
              i_bapiaddr1             = gwa_addr
              i_bapiaddr2             = gwa_addr2
            i_customer_is_consumer  = 'X'
            pi_postflag             = 'X'
            pi_cam_changed          = 'X'
            pi_add_on_data          = gwa_addondata
            IMPORTING
              e_kunnr                 = lv_kna2
             o_kna1                  = kna1
        TABLES
            EXCEPTIONS
              client_error            = 1
              kna1_incomplete         = 2
              knb1_incomplete         = 3
              knb5_incomplete         = 4
              knvv_incomplete         = 5
              kunnr_not_unique        = 6
              sales_area_not_unique   = 7
              sales_area_not_valid    = 8
              insert_update_conflict  = 9
              number_assignment_error = 10
              number_not_in_range     = 11
              number_range_not_extern = 12
              number_range_not_intern = 13
              account_group_not_valid = 14
              parnr_invalid           = 15
              bank_address_invalid    = 16
              tax_data_not_valid      = 17
              no_authority            = 18
              company_code_not_unique = 19
              dunning_data_not_valid  = 20
              knb1_reference_invalid  = 21
              cam_error               = 22
              OTHERS                  = 23.
    if sy-subrc = 0.
              concatenate 'Following' gwa_kna1-kunnr 'have been changed to blank'  into  lv_charr separated by space.
              write :/ lv_charr.
          endif.
    ENDLOOP.
    ENDIF.

    Check if this OSS Note number 725938 makes any difference.
    [Sd_customer_maintain_all|http://www.mundosap.com/foro/showthread.php?t=15410]

  • Customer Master email field - change log not appearing

    Hi experts,
    We noticed that the changes to the email address are not appearing in the change log for customer master. Is this always the case? Will it be possible to include the email address in the change log? If so, how?
    Thanks!

    Sorry.. not an issue

  • Workflow  keying off changes in the customer master

    I have created a workflow that triggers  off of changes to a particular field in the customer master.
    Everything works great.. However, users are requesting to see the old value as well as the newly changed value.
    The event container doesn't seem to hold the previous changed value, only the new one.
    It does have have the object key and the event time and date.The only option I see is to have my custom method go back and read the change doc table (cdhdr & cdpos) in and around the event time for the object key ( kna1) to retrieve the old value.
    Any suggestions are appreciated.

    Hi,
    The address data is always saved with the dates (look in table adrc). SO maybe you can retrack the original address.
    Why do you print again an invoice. And if you do i think it is alright when it is sent to the current address and not to the old address.
    Gr., Frank

  • Reg:Email id storage in customer master

    Hai,
    In customer master in which table and firel the email id value is storing

    Hi Ravi,
    Please follow below steps to creat Mail id in XD02.
    1) Go to-> XD02
    2) Give the Customer Number Enter it.
    3) Click on Address tab and find the other communication push button and click it.
    4)  Popup window will be open to maintain the Mail id.
    Given Email Address will be stored in the table ADR6 table field name is SMTP_ADDR.
    i hope Above information will be helpful to you
    Regards,
    Raghava.

  • Auto-hostep app with custom master page does not allow custom workflows

    This has been troubling us all day. We have a sharepoint 2013 auto-hosted app. We wanted to simply change the site logo of the master page but it was easier said than done. Finally we had to create our own custom master page with our own site logo to overcome
    this issue.
    Now we are trying to add a custom workflow in our app. But the instalment of the app always fail with this message:
    3> CorrelationId: cec727fc-bbf9-4499-ae36-6a7d05f3ae8c
    3> ErrorDetail: There was an error during the operation.
    3> ErrorType: Configuration
    3> ErrorTypeName: Configuration
    3> ExceptionMessage: Operation is not valid due to the current state of the object.
    3> Source: Common
    3> SourceName: Common App Deployment
    After many hours of searching I came across this
    post that sums up the problem to this:
    Do not use the WebTemplate element in the app manifest to designate any of the built-in SharePoint site definition configurations as the app web's site type. We do not support using any of the built-in site definition configurations, other than APP#0, for app webs.
    Thus, if you would like to include your workflow to SharePoint-hosted app, you have to use APP#0 template.
    I am fairly new to the sharepoint 2013 app development and having so many problems just because we wanted to have a different site logo is making us focus out of the important stuff of our app. Isn't there a simple way for us to change the app's site logo
    and add a custom workflow? Has anyone come up with a solution?

    Have you configured SharePoint Workflow Manager in the farm? Not sure if you are familiar with but in SharePoint 2013, there's a new component called Workflow Manager that needs to be configured to use SharePoint 2013 workflow.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com
    I am using SharePoint Online. I have enabled the following site feature:
    Workflows can use app permissions
    Allow workflows to read from and to write to all items in this site.
    just in case but it makes no difference. When I stop using my custom masterpage the app can install just fine and the workflow is working. When the custom masterpage is enabled the app won't install with the workflow. I am required to remove the workflow
    to install the app.

  • Send email for approval before update of customer master

    i have to update the customer master XD02 or FD02 and then i have to sent mail to an external system for approval .How to send this mail while saving the transaction XD02 or FD02 is there any Badi or exit by which i can add this functionality.please suggest .
    Thanks in advance.

    Hi,
    Just activate SQL Trace before u run your transaction. After running the transaction you can check the log in sql trace. There u can find if any BADI or Exits are called.
    Regards,
    Renjith Michael.

  • Create customer in workflow

    hi gurus,
    what is the business object for create customer, how to solve  this  scenario.
    pl help me 
    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) When the system master record is being created, duplication check should be performed for name, city, postal code,email I'd etc.
    regards
    vijay

    Hi Vijay
    Since every business has different requirements, you should consider looking at the SAP-delivered workflows for customer creation first.  They would provide you with a model upon which you could base your own workflow - or better yet, you may be able to use it out of the box
    Have you taken the SAP Tutorials on Workflow?  I think they are a must-do for anyone new to WF.
    http://help.sap.com/saphelp_46c/helpdata/en/fb/135962457311d189440000e829fbbd/content.htm
    Regards,
    Sue

  • 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

  • Problem in  creation of Customer Master

    Hi gurus,
    I am facing problem in creation of customer master.
    I have created a account group zz01 copying from 0001.which has internal no. assignement for the customer.
    Now i am trying to create a customer master, at partner functions level under sales area data...  the system is asking for the no. for each partner functions.. when i tried to manually enter, the system is not taking any number nor it is letting me save the data.
    Please help me out in acertaining,  what could be the issue.
    regards
    Gupta
    [email protected]

    its due to the number ranges that is specified in the partner determination ... chech what is the number range assigned in the parner determination ,,, so once u check that u have to manually enter the number between that range only .. this should solve ur problem...
    path to check the number range is as below :
    spro-img-logistic generalbusiness partner-customers---define account groups and field selection ---    
    at this point click position button at the bottom and give ur account group .. select ur account group and click detail button .. now inside that u can see the specified number range .. dafault is 08 ( means u can specify between 400000 to 499999)..
    and some times  u may not have defined number range... check urs and create accordingly ... this should solve ur problem...
    rewards if solved ..
      thank you
    madhan

  • Problem of trigger event for Customer master.

    Hi all,
    I created one object type in KNA1. because i want to use task instead of the workflow.
    after i executed the customer master creation , i got this error during the execution."Dereferencing of the NULL reference".
    if anybody want information, please let me know.
    Regards,
    Luke

    Hi
    "At the beginning, i am using the Receiver Function module is SWW_WI_CREATE_VIA_EVENT.
    after i change to "SAP_WAPI_CREATE_EVENT" but got error too."
    Can you tell us where are you calling this FM (is it via Enhancement option or badi or exit) to trigger the event?
    Just leave the Receiver FM as same as in SWE2 and make sure Linkage Actiavted check box is checked
    "i can't do the buiding between &EVT_OBJECT& and &WI_OBJECT_ID&. because it is not same business object.
    for our workflow object, it references to class is developed by me.
    As suggested by Rick, you could make use of FM or as per blog, you could use class to trigger your custom class's event. Then you need to have binding at task level (PFTC)
    &EVT_OBJECT& --> &WI_OBJECT_ID&.
    Vinoth

  • Creation of extra field in customer master.

    Hi All,
    I have a requirement where i need to create one extra field.
    We intend to capture taluka for each distributor. This will give us micro level detail. We can start analyzing sale at taluka level.Therefore we believe this additional field will be important.
    Kindly provide your valuable solutions to achieve this.Thanks in advance.
    Thanks,
    Pavan.

    Hi Pavan,
    Rather adding an Extra Field(if your requirement "Taluka" is only for information or statical purpose) you can go with charecterstics and classification.
    In my Client Business, the requirement was to add the " Sales Group's" mobile number and Email id in customer master, so that they can a have report where they easily findout the phone number and mail id for the each sales group. so i have acheived this through Charecterstics.
    Screenshot for your Reference:
    This would be also an option.
    Regards
    Kamal

Maybe you are looking for

  • Problem with printing in SMARTFORM

    Hello, I have a problem with a printout. I wrote form in SMARTFORM. There is a HP LJ2420 printer in our local network. This printer is my local printer (LP1) and it is defined in SAP (for example S005). When I print this form on LP1 printout is ok. I

  • Can't send e-mail no matter what I do

    I can receive e-mail but everytime I try to send I get the message: Cannot send message using the server smtp.aol.com:(with my screen name here) I have tried 6 different varations and nothing works. I used the assistant and called AOL and followed ev

  • Laptop G570 not connecting to TV

    I have a Lenovo G570 with no HDMI but with VGA. I bought this computer in Sep/2011. I got a cable with a VGA on one end and a HDMI on the other. I connected them to their respective place, changed the input on the TV to HDMI1 and... NOTHING! What is

  • Campus data collection problem

    I installed this patch for UT support for Nexus 7k in my LMS3.2 (Solaris 10) At the end it asked to reintit the camput manager database, after the reinit I ran the data colletion but it found zero devices. Data collection ran again this morning at it

  • Product variants in CRM

    Hi Everybody,    As you know that Product variant in CRM is material variant in R/3. A material variant is created when the available item is in stock. Scenario. I created a configurable material 'KMAT' in the material master in R/3 system . In the b