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.

Similar Messages

  • Is it possible to create a customer master with different address

    Hi Gurus,
    Is it possible to create a customer master with different address as we maintain in SAP CRM.
    Kindly help me onthis issue \
    Regards
    Kannan

    Hi Kannan,
    There are no multiple addresses but you can use multiple unloading ponts for the same address for the ship to Party.
    So when you create a Sales order the system will give a pop up with the unloading points allowing you to select the desired one.
    I hope I understand your query correctly.
    Regards
    Yogesh

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

  • 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

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

  • Customer master Post code  and city field Issue

    Hi,
    I am facing a problem with the customer master, In the address tab  postal code N0N 1J2 is giving a default value in the city description tab, However the defaulted value is not the correct one.
    Eg. if post code 123 has to display  DELHI it displays BOMBAY.
    Can you suggest where can i change the defaulted value.  Is there a table entry missing that should allow this city / zip code combination? Where are these settings maintained.
    Rgds

    Hi Prabu,
    Check this link it would be helpful to your solution
    http://forums.sdn.sap.com/thread.jspa?threadID=1962002
    Let me know if your problem is solved
    Regards
    Pradeep

  • Customer Master Address and Outputs

    I have maintained two address es in my customer master, The Street address and a PO box. I want the delivery Note out put to print the street address on it and the Invoice out put to print the PO BOX.
    Currently my Delivery Note is showing the PO BOX which is a problem since my client can not ship to a PO BOX, and we do not want to maintain another ship to partner with the same customer number.
    Is there a way to fix this or an OSS note on this?

    Hello,
    As i understood correctly, The delivery Output now should print the STREET instead of POBOX number , This is a change in the Logic.
    Just  Pick the customer Number from the Customer of delivery from LIKP-KUNNR and fetch the STREET from KNA1-KUNNR
    In the KNA1 table you will get the ADRNR, then goto ADRC to get the STREET details
    In the same way fetch the POBOX from Payer of Billing document
    Hope it is clear,
    regards,
    santosh

  • Output determination from customer master

    Hi,
    I am working in ecc6.0,
    i want the output deterrmination procedure should be carried from Customer master.
    For this i want to create a new output determination procedure which i can assign to Customer account group.
    Can any one please tell me the path to define this output determination procedure.Because it is not available in basic function.
    So that i can assign to account group.
    thanks

    Hi Friend
    For Output Detn. following are necessary the steps
    1.SD> BF>Output Control>O/P Detn
    here define Po det Proc for Sale Doc or Billing Doc ,
    a.Selct O/P Type (Maintain Program & Routine)
    b.maintain Acc Seqn
    c.MaintainO/P Det Procedure & Assign to Sale Doc Type.
    If you still have issue witn .
    Check out Comm Strategy & Print Paramets too.
    Thanks
    Saurabh

  • Ship-to Party details- not from Customer master

    Hi all,
    I need to fetch ship to party details for SO and those details should not be from Customer master(order specific including name, location and region)
    For that  I am using following code.
          SELECT vbeln
                 kunnr
                 adrnr
                 parvw
            FROM vbpa
            INTO TABLE it_vbpa
            FOR ALL ENTRIES IN it_vbak
            WHERE vbeln = it_vbak-vbeln
            and   posnr = '000000'               "Header line partner details
            AND parvw = 'WE'.
          IF NOT it_vbpa[] IS INITIAL.
            SELECT addrnumber
                   name1
                   location
                  region
              FROM adrc
              INTO TABLE it_adrc
              FOR ALL ENTRIES IN it_vbpa
              WHERE addrnumber = it_vbpa-adrnr.
          ENDIF.
    Am I doing it in correct way or am I missing something here?.  Please suggest.
    Regards

    Hi,
    It seems you are retrieving partner detials at header level of a SO. Code seems to be OK.
    Let us know if you have further issues. Thanks.

  • Notification when customer master range exceesd 95%

    Hi,
    Our customer master number range was almost over.....
    Luckily we noticed it and we extened the number range.
    So we are planning to set up a notification such that it notifies via email when customer master number range is used 95%.
    Any of you have set up this notification .
    Can you pleas provide any inputs.
    Thanks for the help

    Build a Custom Program that would check the 'Current Number' for the Customer Master Number Range and that would send the Notification  if the current number is 95% of the whole number range .  You can set this program as a background Job daily/weekly/monthly based on your need.

  • Mass change of customer master data

    Hi,
    I would like to do a mass change of customer master data.
    I need to remove the international VAT register number for local Polish customers, as we will use the local NIP number for these customers.
    Which transaction code do I need to use?
    Are there any things I should keep in mind?
    Thank you.
    Kind regards,
    Linda

    Hi,
    You haev a Transaction called MASS. Please check whether you have the authorization for the same. If you have then it is very much easy for you to maintain the same. If you dont have the MASS authorization then you have to create a LSMW and then make the change.
    Steps:
    1. Enter MASS
    2. Object type - Select KNA1 (avaialble in the drop down) and execute
    3. You should have an option "Customer master (VAT registration numbers general section) " with table KNAS. Execute
    You will be able to choose those customers whom you want and make the changes.
    Hope this should help you.

  • Customer Master: Communicatio method more than One mail ID

    Hi All,
    I have a requirement here:
    In the customer master - General data - address - communication method
    My user want to maintain more than one e-mail id, i see system allows to insert more than one id.
    Requirement: User want system to send ex: order confirmation to all the IDs that are maintained in the customer master.
    Issue: I see in the customer master after I insert the mail ID there is a radio button which restricts to only one ID where the communication to be sent.  
    Help: Any one got some idea how I can fulfil this requirement please?
    Yash

    hi
    this is to inform you that
    create a Z table woth maintaince view with authorized personall only.
    where you can have/maintain n number of mail ids of the users.
    and
    two function modules are available for the same one is old and anothre is new function modules provided by SAP.
    when ever you want to trigger a email you have to call the z table.
    then it triggers automatically.
    regards
    balajia

  • Need to pull postal code in SO from customer master instead on postlcd/city

    I want  postal code to be pulled in sales order - partners tab for  bill to party from customer masater/ under PO box adress.
    Currently it is pulling postal code/city from customer master/ under street address.
    Is there any standard con-fig available for same ?
    please reply,
    Thanks and regards,
    Sujit

    normally not but in asset reporting there seems to be a relation between structure and report-name (not tcode)
    go to tcode se11 and search for structures with search term FIAA_SALVTAB* and you'll find some structures.
    The last part of the name (RABEST, RABEWG ) is the link to the report (RABEST01, RABEWG01)
    hope that helps
    Andreas

  • Customer master data...error

    Hello,
    In customer master basic data address tab we are maintaining street/house number street2 street3 street4 details...But when i create Idoc using DEBMAS/DEBMAS04 in BD12 iam able to see only street/housenumber field data(STRAS in KNA1) and not the street1 street2 what might be the reason....?
    Iam creating the idoc through BD12...
    is it stored in KNA1 or a different table...?
    anyone pls help...
    thanks
    Larry

    Hi Larry,
    The address data is only stored partially in KNA1. All adress details are stored using Central Address Management (look for field ADRNR in table KNA1, that is the reference).
    Regards,
    John.

Maybe you are looking for