Emailing packing list to the customer contact

Hi,
Our business process needs emailing of packing list to the customer.
The packing list output form has been developed using SMARTFORM to print bar codes on it.
We would like to utilize contact person functionality, which is available in the customer master, to store the email id of the packing list recipient.
Can you provide the details of how to send the packing list output to the customer contact using SAP email functionality? Should I need to create a separate output condition type for it?
Thanks in advance.
Regards,
Shiva

Hi Shiva,
             Is this through the SMARTFORM print program.
If so...
After calling a SMARTFORM function module. get the spool number from sy-spono.
SMARTFORM output would be in OTF format. then convert this OTF Spool to pdf format using call  fm CONVERT_OTFSPOOLJOB_2_PDF or
CONVERT_OTF_2_PDF (Check the fm, I am not sure which one is best).
Output from this fm would be PDF table type tline
Send this pdf file to  customer email id using fm 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
Let me know if u need further help.
Reward points.
Thanks
Sampath.

Similar Messages

  • E-mailing packing list to the customer

    Hi,
    Our business process needs emailing of packing list to the customer.
    The packing list output form has been developed using SMARTFORM to print bar codes on it.
    We would like to utilize contact person functionality, which is available in the customer master, to store the email id of the packing list recipient.
    Can you provide the details of how to send the packing list output to the customer contact using SAP email functionality? Should I need to create a separate output condition type for it?
    Thanks in advance.
    Regards,
    Shiva

    Hi,
    You can use the following code to send the smartform output to email.
    *********Variable Declarations *****************************
    DATA: gv_form_name TYPE rs38l_fnam,   " Used to store the function module generated by Smartform
          gv_bin_filesize TYPE i,         " Store the file size
          gv_pos TYPE i,
          gv_len TYPE i,
          gv_tab_lines TYPE i.
    ********Constants *******************************************
    Data : gc_text(11) type c value 'Form Output',
           gc_tst(3) type c value 'TST',
           gc_testing(7) type c value 'Testing'.
    *********Work Area Declarations *****************************
    DATA: gs_docdata TYPE sodocchgi1,     " Data of an object which can be changed
          gs_ctrlop TYPE ssfctrlop,       " Smart Forms: Control structure
          gs_outopt TYPE ssfcompop,       " SAP Smart Forms: Smart Composer (transfer) options
          gs_otfdata TYPE ssfcrescl,      " Smart Forms: Return value at end of form printing
          gs_reclist TYPE somlreci1,      " SAPoffice: Structure of the API Recipient List
          gs_pdf_tab TYPE tline,          " Workarea for SAP Script Text Lines
          gs_objbin TYPE solisti1,        " SAPoffice: Single List with Column Length 255
          gs_objpack TYPE sopcklsti1.     " SAPoffice: Description of Imported Object Components
    *********Internal tables Declarations *****************************
    DATA: gt_reclist TYPE TABLE OF somlreci1,      " SAPoffice: Structure of the API Recipient List
          gt_pdf_tab TYPE TABLE OF tline,          " SAPscript: Text Lines
          gt_otf TYPE TABLE OF itcoo,              " OTF Structure
          gt_objbin TYPE TABLE OF solisti1,        " SAPoffice: Single List with Column Length 255
          gt_objpack TYPE TABLE OF sopcklsti1.     " SAPoffice: Description of Imported Object Components
    CLEAR : gv_form_name,
            gs_ctrlop,
            gs_outopt,
            gs_otfdata,
            gv_bin_filesize,
            gv_pos,
            gv_len,
            gv_tab_lines.
    START-OF-SELECTION.
    Generate Function Module name
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZPDF_G'
        IMPORTING
          fm_name            = gv_form_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Assigning values to Form Control Structure and Form Composer
      gs_ctrlop-getotf = 'X'.
      gs_ctrlop-no_dialog = 'X'.
      gs_outopt-tdnoprev = 'X'.
    Getting the OTFDATA
      CALL FUNCTION gv_form_name
        EXPORTING
          control_parameters = gs_ctrlop
          output_options     = gs_outopt
          user_settings      = 'X'
        IMPORTING
          job_output_info    = gs_otfdata
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Assigning the OTFDATA to OTF Structure table
      CLEAR gt_otf.
      gt_otf[] = gs_otfdata-otfdata[].
    Convert the OTF DATA to SAP Script Text lines
      CLEAR gt_pdf_tab.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = gv_bin_filesize
        TABLES
          otf                   = gt_otf
          lines                 = gt_pdf_tab
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Assigning the Description of the object sent in the mail
      CLEAR gs_docdata.
      gs_docdata-obj_name = gc_tst.
      gs_docdata-obj_descr = gc_testing.
    Assigning the email id to Structure of the API Recipient List table
      CLEAR : gt_reclist, gs_reclist.
      gs_reclist-receiver = '[email protected]'.
      gs_reclist-rec_type = 'U'.
      APPEND gs_reclist TO gt_reclist.
    Passing the SAP Script text lines to SAPoffice: Single List with Column Length 255 table
      CLEAR : gs_objbin, gs_pdf_tab.
      LOOP AT gt_pdf_tab INTO gs_pdf_tab.
        gv_pos = 255 - gv_len.
        IF gv_pos > 134. "length of pdf_table
          gv_pos = 134.
        ENDIF.
        gs_objbin+gv_len = gs_pdf_tab(gv_pos).
        gv_len = gv_len + gv_pos.
        IF gv_len = 255. "length of out (contents_bin)
          APPEND gs_objbin TO gt_objbin.
          CLEAR: gs_objbin, gv_len.
          IF gv_pos < 134.
            gs_objbin = gs_pdf_tab+gv_pos.
            gv_len = 134 - gv_pos.
          ENDIF.
        ENDIF.
      ENDLOOP.
      IF gv_len > 0.
        APPEND gs_objbin TO gt_objbin.
      ENDIF.
    Filling the details in SAPoffice: Description of Imported Object Components table
      DESCRIBE TABLE gt_objbin LINES gv_tab_lines.
      CLEAR gs_objbin.
      READ TABLE gt_objbin INTO gs_objbin INDEX gv_tab_lines.
      IF sy-subrc = 0.
        gs_objpack-doc_size = ( gv_tab_lines - 1 ) * 255 + STRLEN( gs_objbin ).
        gs_objpack-transf_bin = 'X'.
        gs_objpack-head_start = 1.
        gs_objpack-head_num = 0.
        gs_objpack-body_start = 1.
        gs_objpack-body_num = gv_tab_lines.
        gs_objpack-doc_type = 'PDF'.
        gs_objpack-obj_name = 'ATTACHMENT'.
        gs_objpack-obj_descr = 'test'.
        APPEND gs_objpack TO gt_objpack.
      ENDIF.
    Sending the Form Output in the PDF format to email
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data                    = gs_docdata
         put_in_outbox                    = 'X'
         commit_work                      = 'X'
        TABLES
          packing_list                     = gt_objpack
          contents_bin                     = gt_objbin
          receivers                        = gt_reclist
       EXCEPTIONS
         too_many_receivers               = 1
         document_not_sent                = 2
         document_type_not_exist          = 3
         operation_no_authorization       = 4
         parameter_error                  = 5
         x_error                          = 6
         enqueue_error                    = 7
         OTHERS                           = 8
      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 'Sent Successfully'.
      ENDIF.
      SUBMIT rsconn01
      WITH mode EQ 'INT'
      AND RETURN.
    END-OF-SELECTION.
    Reward if useful.........

  • In my MacBook Pro "sent" mailbox emails are listed by my email address but on my iPad the "sent" emails are listed by the sent email address?

    On my MacBook Pro in the "sent" mailbox emails are listed by my email address but on my iPad the "sent" emails are listed by the sent email address.  Very hard to look at the address where the message was sent to?

    After upgrading to IOS 7.0.3 the problems gone.
    There is no mention of this being a bug or a fix so im thinking a software glitch was the issue.
    When I look at a message in my inbox and it says "To: JB Manz" - I click my name and it shows my contact info including my 4 email addresses and the address the message was addressed to is highlighted blue, others all black.
    Not sure how it got fixed but it's working like it used to.

  • Help!!! My husband by accident synced his account under my account and has merged all of our contacts.  In the process of fixing the mixup has deleted contacts on both phones.  How do I restore the contact list from the original contact list.

    Help!!! My husband by accident synced his account under my account and has merged all of our contacts.  In the process of fixing the mixup has deleted contacts on both phones.  How do I restore the contact list from the original contact list.

    I hope that you aren't complaining about dropped calls INSIDE your condo because no amount of switching or upgrading devices will solve that.
    VZW will not guarantee service inside of any structure. There are just too many factors. If the problem is inside then you might want to look at one of the following:
    1.) Network Extender (may cause issues for others in a condo or apartment style setting)
    2.) A Google Voice Number (Free with a Gmail email address), downloading Google Hangouts Dialer and forwarding your calls to the GVN so that you can make and receive calls over Wi-Fi.

  • Using ms project 2007 and vba macro to list all the custom fields used in the project?

    Hi,Using ms project 2007 vba macro, I would like to be able to list all the custom fields used in the project and their corresponding field names. e.g. let us say I create a calculated duration field and name it "expected duration" and the name
    of the field I select is Duration1.
    I am trying to write a macro that will list all the used custom fields such as the result would look like:
    Duration1 ---> "expected duration"
    Text1       ---> "anything"
    Flag1        ---> "....."
    Number1  ---> "..............."
    Can anyone provide me with the solution?
    Regards,
    Chuck

    John,
    I found this module, which provides the the list of custom fields used in the project but does not provide the name given to the field. Here below is the module and hope you could help me achieve this by modifying the macro to list the renamed field.
    ' MSP Checks all Custom Task Fields
    Sub checkfields2()
    'This macro will check and report out which custom task fields are used
    'It requires Project 2002 and above as it relies on the GetField
    'and FieldNameToFieldConstant methods which were not introduced until
    '2002.
    'It does not include resource fields, however it is a simple matter to
    'do it by replacing the pjTask constant with pjResource.
    'Copyright Jack Dahlgren, Oct. 2004
    Dim mycheck As Boolean
    Dim myType, usedfields As String
    Dim t As Task
    Dim ts As Tasks
    Dim i, it As Integer
    Set ts = ActiveProject.Tasks
    usedfields = "Custom Fields used in this file" & vbCrLf
    myType = "Text"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 30
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "" Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Number"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 20
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> 0 Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Duration"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If Left(ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)), 2) <> "0 " Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Cost"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> 0 Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Start"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "NA" Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Finish"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "NA" Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    MsgBox usedfields
    End Sub
    This is what the module gives me. But I would like to have beside Text 1 the name that is shown as below. e.g Text1 is "Test".
    Would you mind helping me achieve this?
    Thanks in advance.
    Chuck

  • Query to get the Customer Contacts

    Hi all,
    Pls tell me the qyery to get the customer contacts like telephone number, fax number details.
    Thanks in advance

    What is the responsibility name? Form name and navigation path?
    You can determine the query from the form itself as follows:
    - Query the record(s)
    - Click on Help > Diagnostics > Examine
    - Under 'Block' field, select 'SYSTEM'
    - Under 'Field' field, select 'LAST_QUERY'
    You may also review the following note:
    Note: 259722.1 - HOWTO Determine Table and Column Name from a field in a form in 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=259722.1

  • *Help Needed* Adding multiple emails/mailing list in the email subscription

    Help Needed
    Hi,
    Can someone help me in adding multiple email address/mailing list in the email subscription for interactive reports in Apex 4.
    pls mail me at [email protected]
    Regards,
    Sunny

    The doc does not mention a separator for the email addresses because we only support one email address per subscription. I have logged a task for our next release to look at expanding it and allowing multiple.
    -- Sharon

  • Apple Mail (Mavericks), Viewing size of list is too small.how do you increase the size of the email message list.  The font is too small, I can hardly read them.

    In Apple Mail, using Mavericks, how do you increase the size of the email message list that displays on the left side of the screen?
    The font size is so small.
    Thanks.

    Thank you for responding.  After investigating and checking further, it was clear that only one of your suggestions changes the font size of the list of emails, also called the In-box.  And that is the display resolution.
    However, changing the display resolution affects the dots per inch of everything, everywhere and makes it larger.
    Given the high end fee Apple charges for their products, and the generally well developed software they provide, it is hard to imagine they have not corrected this obvious slight of effort on the inbox text. At times Apple's "one-size-fits-all" and "it's our way or no way" mentality astounds me and makes me want to run back to Microsoft.
    Evidently this is a well known mistake, which has yet to receive any attention.
    Again, thank you for your effort and assistance on my behalf.

  • Table that stores the customer contact person email id

    hI ALL,
    Can any body please tell me the table name where <b>customer conatct person mail id is stored.</b>
    Please revert for any clarification on this.
    its urgent .
    good points will be given on the orrct solution.
    thanks
    Message was edited by:
            Prabhudutta ......

    Hi Prabhu
    for Contact person -
    KNVK
    For email id -
    SZA1_D0100
    For customer --- RF02D
    Reward if useful to u

  • How to fetch the customer contact details like phoneno,fax_no

    Hi All,
    i am knew to Apps .here i need to extract the details from database to text file.in my query i have a problem to get the details about customer contact_no like phone_no,fax_no,contact_person_name(first,last).anyone can help in this case.thank you in advance
    Akepati

    Hi,
    you can get these information from Hz_Contact_points table. This table stores the phone,fax, email details about the contact of a party.
    Join Condition between Hz_Contact_Points and Hz_parties is Owner_table_id where Owner_table_name ='HZ_PARTIES', owner_table_id is the party_id of Hz_parties.
    I hope this helps
    Regards,
    Dinesh

  • Is there a way to email reminders list from the reminder app for ios5

    I am trying to figure out a way to email me a reminder list that I have created in my iphone.  Or some other way to transfer that information.

    Hi ..
    Sorry, but no. Apps cannot be transferred from one Apple ID account to another, nor can accounts be merged > Frequently Asked Questions About Apple ID

  • Can i send to multiple email addresses for the same contact

    I coach a baseball team and I want to create contacts under the kids' names with email addresses for both parents listed.  Can I send email to multiple email addresses listed inside the same contact?  I hope this makes sense.
    Thanks!

    You can do it individually, but it can also be done with Groups in Contacts, but you will need to create two or more groups. Once you have created the Groups in Contacts, drag the contacts that have multiple email addresses into each group. Then, select Edit Distribution List… from the Edit menu in Contacts.
    For each group, select one address or the other for each contact. Do the same for the other group.
    When you address an email, add both Groups to the address field in Mail.

  • Items are deleted from the Pick and Pack list.

    Hallo,
    one customer of mine has a problem with the pick and pack list.
    First the pick and pack process is done according the the standard process. Everything is fine. Customer prints delivery note and also the invoice.
    One day or two days later (it is no always the same) the items disappear from the pick and pack list. The ID of the list stays there but you cannot see any articel any more.
    Version: 8.81 PL08
    I would be very thankful for any comments.
    Franz

    Dear Gordon,
    thank you very much for the reply.
    No, we have no done any update at this cliente but since we are using the pick and pack functionality at this customer, we have this problem.
    Regards,
    Franz

  • FSCM Collections - Customer Contact Result in the Worklist

    Hi Experts,
    I have implemented FSCM Collections at my client and they have a question regarding the customer contact result in the worklist.
    Indeed when one creates a customer contact and generates the worklist again (via transaction UDM_GEN_WL), it seems that the customer contact Results (code & name) disappear (regardless of the result type or settings in customizing).
    Do you know how we can prevent these data from being removed from the worklist during the worklist generation ?
    Thank you for your answer !

    To all who that might interest: I adressed my questions to a SAP consultant and his answer was the following:
    > Regarding question 1: when the worklist is generated, why is the Last Contact Date not updated ?
    This is controlled by customizing and whether field u2018reachedu2019 is flagged or not in the u2018result codeu2019 settings. If it is flagged, the last contact time and date is updated when the work list is created.
    > Regarding question 2: when the worklist is generated, why is the Last Contact Result not updated ?
    This is the standard system behaviour and here is an explanation on why that is.
    Once you run UDM_GENWL, the customer contact result is set to blank. SAP Development rationale is the following.
    During the day, an specialist opens his/her worklist and successfully contacts the customer. The specialist chooses the result u2018customer reachedu2019 and the work item goes to the completed item list. Now the supervisor runs UDM_GENWL during the night and  a new worklist is created. The next day, the specialist accesses his/her worklist. If the result of the customer contact is not reset and still has a value u2018customer reachedu2019, the specialist may get confused and not know whether to contact the customer today or not. That is the reason why it was decided to reset the field result of customer contact when the worklist is created.
    I guess we can argue on whether it is the right design or not, but it is the standard system behaviour. Having said that, it is possible to add customer specific fields on the work list screen using BAdI UDM_WL_ITEM_DISP_C. This could be used in order to populate a custom field with the u2018customer contact resultu2019. Using FM UDM_CCT_LAST_GET you can get the last customer contact and you can use FM UDM_CCT_RESULT_PROPERTY_GET to get the description of the result code. This is rather easily done but requires some development.

  • Webform Customer Contact field only adds email

    Hi,
    Our customers enter their information via a webform which automatically adds them to our CRM and creates a new case. Yay! Great and easy function.
    Here's the thing though, the customer also enters their Cell Phone as a mandatory field in our webform, however the record is not entered into the customer contact field and only their email address is added.
    Can anyone help?

    Hey there,
    At a guess you made a custom field for the cell phone number which will only go into the case. In the form builder you should select and use the cell phone number field, not a custom field. This will then go into the CRM entry.
    If you feel you have done that you need to ensure you have not renamed the input field name paramater as it needs to he the same as what it spits out in the system so it knows where to store it.
    If that is ok then it could be that you have changed the ID etc or changed the form to break the javascript of the form so people are leaving it blank and the script to run it is not working.

Maybe you are looking for

  • Need suggestion in MDX

    Could anyone please describe me the difference between "WITH" and "SCOPE" keywords in MDX? Both are used for creating the named sets and calculated members I think. But I don't know difference.

  • IMac keyboard not work brand news batterys

    My keyboards are Message was edited by: Thegilston

  • Ipod 4th gen

    My Ipod touch 4th gen will Sync but it will not add songs what do I do?

  • Problem downloading pdf files

    I would like to learn more about IAS High availability, so I'm looking at page http://technet.oracle.com/products/ias/hi_av/content.html. I don't seem to be able to download ttp://technet.oracle.com/products/ias/pdf/firewallLoadbalancer.pdf. After 2/

  • G4's case door won't stay closed - any suggestions, please?

    Another question relating to my inherited Gigabit Ethernet G4's ongoing upgrades: I think fixing it so the blasted case door stayed shut w/o having to tape it would be a significant improvement, don't you? O.o When the computer belonged to my brother