Smart forms updation

Dear all
  we are implementing sap ecc 6.0 and my previous project is SAP All in one ecc 5.0 where i have installed building blocks. After installing building blocks some Abap smart forms got updated then it became easy for our Abap consultant to make the necessary Abap smart form program
my query is there any updates like particular support pack to make the smart forms to be updated or any program that can be down loaded from sap market site to make the smart forms to be updated
Requirement is to make the smartform to be updated and to make the work easy
In this project our product is SAP ecc 6.0 R3 product so we cant install building blocks but is there any othe way to update our smart forms
pls help me friends
regards
senthil

hi khan,
dont give kwert yaar,
at the refrence field,
give <b>vrkme</b> if it's quantity field or give <b>waerk</b> if it's currency field.
at the field name,
your internal table and filed.
at the data type ,
you can select one of the two.
regards,
seshu.

Similar Messages

  • Smart form update

    Dear all
      we are implementing sap ecc 6.0 and my previous project is SAP All in one ecc 5.0 where i have installed building blocks. After installing building blocks some Abap smart forms got updated then it became easy for our Abap consultant to make the necessary Abap smart form program
    my query is there any updates like particular support pack to make the smart forms to be updated or any program that can be down loaded from sap market site to make the smart forms to be updated
    Requirement is to make the smartform to be updated and to make the work easy
    In this project our product is SAP ecc 6.0 R3 product so we cant install building blocks but is there any othe way to update our smart forms
    pls help me friends
    regards
    senthil

    Hi Senthil,
    Please read the information form marketplace regarding the same. All the information is there.
    Regards,
    Anil

  • Smart form updation

    I hav a report linked to smart form for printing purpose. report was not mad by me. I need some upadtion in output. Few variables defined that showsTotal,  excise duty, cess and Grand total. Excise duty is 12% of total, Cess is 2% of total and Grand total is (Total + Excise duty + Cess ). all their respective outputs shows like 1234,55 insted of 1234.55. Why comma is there in place of decimal. from where I can change these variable. I hav checked it, variable nt defined in report. Is it somewhere in smart form? Pklz guide.
    Thanks,
    Khan.

    hi khan,
    dont give kwert yaar,
    at the refrence field,
    give <b>vrkme</b> if it's quantity field or give <b>waerk</b> if it's currency field.
    at the field name,
    your internal table and filed.
    at the data type ,
    you can select one of the two.
    regards,
    seshu.

  • To find where a variable is getting updated in a smart form thru debugging?

    Hi Friends,
    This is urgently required.
    In transaction vf02 by putting the billing document no.and navigating as follows:
    billing document -> issue output to ->select the doc->print preview
    a smart form is generated.
    The issue that I am facing is that the from and to date is mssing for some of the documents nos.in the output of the smart form.
    How do I debug the smart form and get to the place where the particular date variables are being picked.
    Thanks a lot in advance !!

    hi,
       Create a short cut as follows
      1) On the vf02, standard tool bar there is an 'shortcut generate' icon will be there, click on it. you will get the screen where under 'Application',  give the following details
    Type: system command
    command: /h
    and click ok then there is a short cut created at your desktop
    2) drag and drop the shortcut before clicking on print preview then debugging will starts
    then you can able to debug the smartform

  • Use of NACE after creating print program n smart form

    Wat's d purpose of NACE?I hav created my own print program n smart form according to my own requirement.If NACE is necessary 4 my smart from.How can i use NACE i mean navigation steps.
    Please help me out.Its urgent.
    Thanks & Regards,
    Santhosh.

    Hi Santhosh,
    Nace is for message control settings. Say if u want to trigger a Smartform or an Idoc or any other customized program u can do the message control settings.
    Say at the time of Sales Order creation or updation u want to trigger a Smartform, then u have to follow the following steps:
    Goto NACE
    Select application V1 and then click Output Type.
    create a new Output type or copy the existing one abd save it with new name
    then in Processing Routine Mention the driver program name and in Form routine mention the main subroutine name.
    In Smartform mention your SMartform name and also the layout if u have ceated.
    Again go to NACE and Select application V1 and press Procedures.
    here out of the many procedures u have to select the right one and attach your Output Type to it.
    You can also create a condition record..Say if u want to trigger this Smartforms for Sales Order of particular type.
    Hope this helps.
    Reward Points if useful.
    Thanks.

  • Creating a Purchase Order Smart Form (Form Interface)

    After reading up on all the posts about making a PO smart form I know this:
    - An SAP script "medruck" is the current output
    - A smartform exists for PO's named "/SMB40/MMPO_L" or "/SMB40/MMPO_A"
    - You need to install an update to get those smartforms if you are using ECC 6.0
    So my dilemma is that the SAP administrator is on vacation for a week, so I can't install the update to our system.  I'm trying to just create it from scratch using the medruck SAP script as a reference, but I am a little confused.
    Basically all I need to know is what form interface parameters do I pass in?  Meaning how do I find out what structures and tables are imported into the function module when print preview is called from t-code ME22N?  Can you please provide proper syntax for form interface solution or instructions on how to determine imported variables into the smartform?

    Hi
    If the smartform purchase order is not available in your system
    means you can download the form IDES and you can upload the form in ur ecc 6.0 system.we faced a similar kind of problem in our system and we did as i said.
    Once you uploaded the things you can easily view the form interface and rest of the things related to smartforms.
    Thanks and Regards
    Arun Joseph

  • Error in Control Framework in smart forms programms use GUI_DOWNLOAD

    IN VF02 smartforms ENTRY form , I add a function about save PDF at local PC. When I print the smartfomrs,There is ERROR message in update modules.
    IN SM13 can see the ERROR message.
    Function Module: RV_MESSAGE_UPDATE
    Status :Update was terminated
    Error details: FES 022: Error in Control Framework
    I USE GUI_DOWNLOAD FUNCTION  at my code. WHEN I mark it,no error message. I must use the Similar function.
    How do I solve this problem???

    Hello,
    Check the thread:
    Re: Error in Control Framework in smart forms programms
    Regards,
    David

  • While creating smart form parameters error.

    hi.
    i am  Developing a smart form ..
    based on the given parameter the values are coming..(Sorry i am not able to explain the whole scenario bcz i am new to abap)
    plz have a look on below image.
    Se11 and  error..
    for creating the parameter options i open the se11  (se11 -image) but i am getting the Error at the time  of  Check the program..
    May i know what is the reason...

    hi. thanks for your reply..
    yes i am using vm ware i was installed in external hard disc,,
    from my system i am connecting to the external  hard disc..
    Coming to first screen shot there is no error its just a warning.
    Yes, i also think same but i has to check it...
    i will update u once i check it.
    plz give me some time.. i will check it...

  • The body in SAP Smart Forms email message

    Hi Experts,
    i have a requirement, in smart forms, we did the form to be sent to the email as pdf. we want to add some text in the body of the emil message. can we do this?

    the following is the code for send the mail with both subject and body .plz go thru. hope it will be helpful.
    Creating the document to be sent with success message.
      IF gt_error IS INITIAL.
        gs_doc_chng-obj_name = 'Standard Price'(010).
    gs_doc_chng-obj_descr = 'Material Standard Price update Successful'(011)
    gs_objtxt = 'Materials updated Sucessfully with new Standard Price'(012)
        APPEND gs_objtxt TO gt_objtxt.
        LOOP AT gt_success INTO gs_success.
          gs_objtxt = gs_success.
          APPEND gs_objtxt TO gt_objtxt.
        ENDLOOP.
      ELSE.
    Creating the document to be sent with error message.
        gs_doc_chng-obj_name = 'Error Price'(002).
    gs_doc_chng-obj_descr = 'Material Standard Price Updation Errors'(003)
        gs_objtxt = 'The following Material Numbers failed to update'(004).
        APPEND gs_objtxt TO gt_objtxt.
        LOOP AT gt_error INTO gs_error.
          gs_objtxt = gs_error.
          APPEND gs_objtxt TO gt_objtxt.
        ENDLOOP.
        IF gt_success IS NOT INITIAL.
    gs_objtxt = 'Materials updated Sucessfully with New Standard Price'(012)
          APPEND gs_objtxt TO gt_objtxt.
          LOOP AT gt_success INTO gs_success.
            gs_objtxt = gs_success.
            APPEND gs_objtxt TO gt_objtxt.
          ENDLOOP.
        ENDIF.
      ENDIF.
      DESCRIBE TABLE gt_objtxt LINES gv_tab_lines.
      READ TABLE gt_objtxt INTO gs_objtxt INDEX gv_tab_lines.
    gs_doc_chng-doc_size = ( gv_tab_lines - 1 ) * 255 + STRLEN( gs_objtxt )
    Creating the entry for the compressed document
      CLEAR gs_objpack-transf_bin.
      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   = 'RAW'.
      APPEND gs_objpack TO gt_objpack.
    Entering names in the distribution list
      IF p_plist IS NOT INITIAL.
        gs_reclist-receiver = p_plist.
        gs_reclist-rec_type = gc_c.
        APPEND gs_reclist TO gt_reclist.
        CLEAR gs_reclist.
      ENDIF.
    Populating the reciever list
      gs_reclist-receiver = p_plist.
      gs_reclist-rec_type = gc_u.
      APPEND gs_reclist TO gt_reclist.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = gs_doc_chng
          put_in_outbox              = gc_x
          commit_work                = gc_x
        TABLES
          packing_list               = gt_objpack
          object_header              = gt_objhead
          contents_bin               = gt_objbin
          contents_txt               = gt_objtxt
          receivers                  = gt_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      CASE sy-subrc.
        WHEN 0.
          WRITE: 'eMail sent successfully'(005).
        WHEN OTHERS.
          WRITE: / 'eMail could not be sent'(008).
      ENDCASE.
    ENDFORM.                    " send_log_mail

  • Problem with Smart Form ('RLE_DELNOTE')--Please Help

    Hello,
    I am facing a problem in the smart form.
    So far I am printing certificates (QM module) for the finished goods.  i.e. first level batches.  Now I should incorporate down level batches info also. i.e. semi finished goods info (second, third... level batches).  I am not aware of how to find out the semi finished goods info of a finished good.  Each finished good may have one or two levels of semi finished goods....The print program i am using is 'RLE_DELNOTE'.
    Can any body suggest me what i have to do?
    I have tried with FM 'CHVW_BATCH_WHERE_USED_LIST'.  But is of no use.....please tell me...
    Best Regards,
    Shekhar

    To check to see if you have an OpenGL problem:
    In Photoshop choose Edit - Preferences - Performance.
    Is [ ] Use OpenGL Drawing checked?
    If so, uncheck it.
    Close and restart Photoshop.
    Does the problem persist?
    If so, you probably can correct it with a video driver update.
    Don't forget to go back and re-enable Use OpenGL Drawing.
    To update your video driver:
    Right-click on your desktop and choose Screen Resolution.
    In the dialog that comes up, choose Advanced settings.
    Click the Adapter tab, if it isn't already current.
    What Adapter Type is listed?  Note the brand and model.
    If it is an ATI model, visit this web site:
    http://support.amd.com/us/Pages/AMDSupportHub.aspx
    If it is a nVidia model, visit this web site:
    http://www.nvidia.com/Download/index.aspx?lang=en-us
    Follow the instructions to choose the proper card and operating system.
    Download and install the latest drivers for your hardware.
    -Noel

  • Smart form is alive or adobe?

    hallow
    i heard that sap published  note that not to use anymore smart form
    just adobe form did some heard about this note,
    its weird becouse i now that sap script its life so smart form???
    plz update with that

    SHNYA TAL,
    nobody nows exactly.
    AFAIK Sapscript is not supported any longer - because it's running stable also in unicode environment.
    SMARTFORMS is a development based on SAPscript techniques integrating the form and print program into one function module. A completely new interavtice development environment was created.
    This development is not really complete but quite useful as it integrated features like (i.e.) HTML or PDF output.
    SAP entered a strategic cooperation with Adobe some years ago. The goal is to develop a forms solution ready for the future - with full integration of interactive, web and workflow features.
    I haven't heard too much about the results. To me it looks like both sides still need time to integrate.
    My estimates of used techniques in productive systems is 80 % SAPScript, 20% Smartforms and a neglegible but small existing number of Adobe solution.
    But this is a personal estimate that may be wrong.
    The note you mentioned might be a SAP internal one. If you look at the number of notes for the subject 'Adobe document service' you will come to the conclusion that this is anything but stable.
    Regards,
    Clemens

  • Smart form   out put  into PDF ????

    How to download into PDF file  after the execute Smart form out put ????

    hi,
    pls try this code.
    *& Report : ZPDF_FORMAT
    *& Description : Conversion of Purchase Order into PDF format
    *& used in the workflow (Do Not Change or Delete).
    REPORT zpdf .
    *& Tables used
    TABLES: nast, tsp01, t024, spop, lfa1, tnapr.
    *& Data declaration
    DATA: spoolno LIKE tsp01-rqident.
    DATA: rcode LIKE sy-subrc.
    *data: doc_auth like zoutput-ztag.
    DATA: cancel.
    DATA: pdf LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA: numbytes TYPE i,
    pdfspoolid LIKE tsp01-rqident,
    jobname LIKE tbtcjob-jobname,
    jobcount LIKE tbtcjob-jobcount,
    is_otf.
    DATA: client LIKE tst01-dclient,
    name LIKE tst01-dname,
    objtype LIKE rststype-type,
    type LIKE rststype-type.
    DATA: dir_loc(3).
    DATA: t_docno LIKE vbak-vbeln..
    DATA: spoolreq1 LIKE tsp01sys.
    DATA: spoolreq LIKE rsporq OCCURS 0 WITH HEADER LINE.
    DATA: t_frgke LIKE ekko-frgke.
    DATA: okcode(10),
    flag,
    t_ekgrp LIKE ekko-ekgrp,
    t_lifnr LIKE ekko-lifnr,
    s_mail.
    Data Declartion for mailing system - Start.
    DATA: objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
    DATA: objhead LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA: objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA: objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA: reclist1 LIKE somlreci1 OCCURS 500 WITH HEADER LINE.
    DATA: reclist LIKE somlreci1 OCCURS 500 WITH HEADER LINE.
    DATA: itab LIKE somlreci1 OCCURS 50 WITH HEADER LINE."RKU 220802
    DATA: doc_chng LIKE sodocchgi1.
    DATA: BEGIN OF bdcdata OCCURS 0.
    INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdcdata.
    DATA: tab_lines LIKE sy-tabix.
    DATA: verkf LIKE ekko-verkf.
    DATA: bemail(250), vemail(250).
    Data acceptance
    SELECTION-SCREEN BEGIN OF BLOCK blk0_input WITH FRAME .
    PARAMETERS: docno LIKE ekko-ebeln OBLIGATORY LOWER CASE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK blk0_input.
    Initialisation
    *initialization.
    Screen Parameters Validation
    *at selection-screen.
    AT SELECTION-SCREEN.
    SELECT SINGLE frgke INTO t_frgke FROM ekko
    WHERE ebeln = docno
    AND frgke = 'R'.
    IF sy-subrc <> 0.
    MESSAGE 'DOCUMENT NOT RELEASED' TYPE 'E'.
    ENDIF.
    Execution Part
    START-OF-SELECTION.
    For PO related operation
    Dislay Buyer Group, Name and Email id
    SELECT SINGLE
    ekgrp
    lifnr
    verkf
    INTO (t_ekgrp, t_lifnr, verkf)
    FROM ekko
    WHERE ekko~mandt = sy-mandt
    AND ebeln = docno.
    IF sy-subrc = 0.
    SELECT SINGLE * FROM lfa1
    WHERE lfa1~mandt = sy-mandt
    AND lifnr = t_lifnr.
    ENDIF.
    Get message status from NAST or assign msg status NAST stru
    Pass the message status and get spool data
    PERFORM check_output_create_spool.
    IF rcode NE 0.
    IF rcode = 9.
    message s185 with text-e04.
    ELSE.
    message s185 with text-e01.
    ENDIF.
    EXIT.
    ENDIF.
    find the spool
    PERFORM find_spool_request_id.
    IF sy-subrc <> 0.
    message s185 with text-003.
    EXIT.
    ENDIF.
    READ TABLE spoolreq
    WITH KEY rq0name = nast-dsnam
    rq1name = 'LP01'
    rqclient = '800'
    rq2name = sy-uname
    rqowner = sy-uname.
    IF sy-subrc <> 0.
    CASE sy-subrc.
    WHEN 1.
    message s185 with text-e03.
    WHEN OTHERS.
    message s185 with text-e02.
    ENDCASE.
    EXIT.
    ENDIF.
    spoolno = spoolreq-rqident.
    Convert SPOOL job to PDF
    PERFORM convert_spool_to_pdf.
    Send through mail
    PERFORM assign_data_4_mail.
    PERFORM send_mail_with_attachment.
    Delete created spool request
    spoolreq1-rqident = spoolno.
    PERFORM delete_spool_job.
    *& Form check_output_create_spool
    text
    --> p1 text
    <-- p2 text
    FORM check_output_create_spool.
    SELECT SINGLE * FROM nast WHERE objky = docno
    AND kappl = 'EF'
    AND kschl = 'NEU'
    AND aktiv = space
    AND nacha = '1'.
    IF sy-subrc EQ 0.
    COUNT = COUNT + 1.
    PERFORM mssage_status_field_value.
    nast-vsztp = '4'.
    PERFORM einzelnachricht_dialog(rsnast00) USING rcode.
    ELSE.
    CLEAR nast-uhrvr.
    CLEAR nast-cmfpnr.
    CLEAR nast-datvr.
    PERFORM mssage_status_field_value.
    nast-vsztp = '4'.
    PERFORM einzelnachricht_dialog(rsnast00) USING rcode.
    else.
    rcode = 9.
    ENDIF.
    ENDFORM. " check_output_create_spool
    *& Form mssage_status_field_value
    text
    --> p1 text
    <-- p2 text
    FORM mssage_status_field_value .
    nast-mandt = '800'.
    nast-kappl = 'EF'.
    nast-kschl = 'NEU'.
    nast-objky = docno.
    nast-ldest = 'LP01'.
    nast-anzal = 1.
    nast-dimme = 'X'.
    nast-delet = 'X'.
    nast-nacha = '1'.
    nast-vsztp = '2'.
    nast-spras = 'E'.
    nast-vstat = '0'.
    nast-manue = 'X'.
    nast-erdat = sy-datum.
    nast-eruhr = sy-uzeit.
    nast-usnam = sy-uname.
    nast-tdreceiver = sy-uname.
    concatenate sy-uzeit+2(4) 'PDF' into nast-dsnam.
    ENDFORM. " mssage_status_field_value
    *& Form find_spool_request_id
    text
    --> p1 text
    <-- p2 text
    FORM find_spool_request_id.
    CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
    EXPORTING
    allclients = '800'
    authority = ' '
    datatype = '*'
    has_output_requests = '*'
    rq0name = nast-dsnam "'*'
    rq1name = '*'
    rq2name = '*'
    rqdest = 'LP01'
    rqident = 0
    rqowner = sy-uname
    TABLES
    spoolrequests = spoolreq
    EXCEPTIONS
    no_permission = 1
    OTHERS = 2.
    ENDFORM. " find_spool_request_id
    *& Form convert_spool_to_pdf
    text
    --> p1 text
    <-- p2 text
    FORM convert_spool_to_pdf.
    SELECT SINGLE * FROM tsp01 WHERE rqident = spoolno.
    IF sy-subrc <> 0.
    WRITE: / 'Spool order does not exist'
    COLOR COL_NEGATIVE.
    EXIT.
    ENDIF.
    client = tsp01-rqclient.
    name = tsp01-rqo1name.
    CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
    EXPORTING
    authority = 'SP01'
    client = client
    name = name
    part = 1
    IMPORTING
    type = type
    objtype = objtype
    EXCEPTIONS
    fb_error = 1
    fb_rsts_other = 2
    no_object = 3
    no_permission = 4.
    IF objtype(3) = 'OTF'.
    is_otf = 'X'.
    ELSE.
    is_otf = space.
    ENDIF.
    IF is_otf = 'X'.
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = spoolno
    no_dialog = ' '
    IMPORTING
    pdf_bytecount = numbytes
    pdf_spoolid = pdfspoolid
    btc_jobname = jobname
    btc_jobcount = jobcount
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_otf_spooljob = 1
    err_no_spooljob = 2
    err_no_permission = 3
    err_conv_not_possible = 4
    err_bad_dstdevice = 5
    user_cancelled = 6
    err_spoolerror = 7
    err_temseerror = 8
    err_btcjob_open_failed = 9
    err_btcjob_submit_failed = 10
    err_btcjob_close_failed = 11.
    if sy-subrc <> 0.
    case sy-subrc.
    when 1.
    write: / text-001 color col_positive.
    when 2.
    write: / text-002 color col_negative.
    exit.
    when 3.
    write: / text-003 color col_negative.
    exit.
    when 4.
    write: / text-004 color col_negative.
    exit.
    when others.
    write: / text-005 color col_negative.
    exit.
    endcase.
    endif.
    ELSE.
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = spoolno
    no_dialog = ' '
    DST_DEVICE =
    PDF_DESTINATION =
    IMPORTING
    pdf_bytecount = numbytes
    pdf_spoolid = pdfspoolid
    LIST_PAGECOUNT =
    btc_jobname = jobname
    btc_jobcount = jobcount
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_abap_spooljob = 1
    err_no_spooljob = 2
    err_no_permission = 3
    err_conv_not_possible = 4
    err_bad_destdevice = 5
    user_cancelled = 6
    err_spoolerror = 7
    err_temseerror = 8
    err_btcjob_open_failed = 9
    err_btcjob_submit_failed = 10
    err_btcjob_close_failed = 11.
    case sy-subrc.
    when 0.
    *write: / 'Funktion CONVERT_ABAPSPOOLJOB_2_PDF erfolgreich
    *(successful)'.
    color col_positive.
    when 1.
    write: / text-001 color col_positive.
    when 2.
    write: / text-002 color col_negative.
    exit.
    when 3.
    write: / text-003 color col_negative.
    exit.
    when 4.
    write: / text-004 color col_negative.
    exit.
    when others.
    write: / text-005 color col_negative.
    exit.
    endcase.
    ENDIF.
    ENDFORM. " convert_spool_to_pdf
    *& Form delete_spool_job
    text
    --> p1 text
    <-- p2 text
    FORM delete_spool_job .
    CALL FUNCTION 'RSPO_IDELETE_SPOOLREQ'
    EXPORTING
    spoolreq = spoolreq1
    IMPORTING
    RC =
    STATUS =
    EXCEPTIONS
    error = 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.
    ENDIF.
    ENDFORM. " delete_spool_job
    *& Form ASSIGN_DATA_4_MAIL
    text
    --> p1 text
    <-- p2 text
    FORM assign_data_4_mail .
    Text content of the mail
    move 'Purchase order: ' to objtxt.
    append objtxt.
    move verkf to objtxt.
    append objtxt.
    move lfa1-name1 to objtxt.
    append objtxt.
    concatenate lfa1-ort01 lfa1-pstlz
    into objtxt separated by space.
    append objtxt.
    clear: objtxt.
    append objtxt.
    append objtxt.
    CLEAR objtxt.
    CONCATENATE 'Purchase Order - ' docno
    ' has been released.'
    INTO objtxt SEPARATED BY space.
    APPEND objtxt.
    clear: objtxt.
    append objtxt.
    append objtxt.
    MOVE ' ' TO objtxt.
    APPEND objtxt.
    clear: objtxt.
    append objtxt.
    append objtxt.
    concatenate 'Note:- This is an automatic mail sender.'
    ' Please do not reply to this mail ID.'
    into objtxt.
    append objtxt.
    concatenate
    ' Any query, please send the mail to the respective buyer'''
    's mail id.' into objtxt.
    append objtxt.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
    EXPORTING
    input = docno
    IMPORTING
    output = docno.
    TLINE format will be coverted as 255 char foramt
    CALL FUNCTION 'QCE1_CONVERT'
    TABLES
    t_source_tab = pdf
    t_target_tab = objbin
    EXCEPTIONS
    convert_not_possible = 1
    OTHERS = 2.
    DESCRIBE TABLE objtxt LINES tab_lines.
    creation of the entry for the compressed document
    CLEAR objpack.
    objpack-transf_bin = ''.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'RAW'.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    APPEND objpack.
    creation of the entry for the Attachemnt
    DESCRIBE TABLE objbin LINES tab_lines.
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 1.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'PDF'.
    CONCATENATE docno '.PDF' INTO objpack-obj_name.
    objpack-obj_descr = objpack-obj_name.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    APPEND objpack.
    For Object Header
    CONCATENATE docno '.PDF' INTO objhead.
    APPEND objhead.
    doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    CONCATENATE 'Purchase Order - ' docno ' has been released'
    INTO doc_chng-obj_descr.
    doc_chng-obj_prio = 1.
    recipient Details
    CLEAR reclist1.
    CLEAR reclist.
    REFRESH reclist1.
    REFRESH reclist.
    SELECT SINGLE * FROM t024
    WHERE t024~mandt = sy-mandt
    AND ekgrp = t_ekgrp.
    reclist1-receiver = t024-smtp_addr.
    reclist1-rec_type = 'U'.
    reclist1-com_type = 'INT'.
    reclist1-receiver = '[email protected]'.
    modify table reclist transporting rec_type receiver COM_TYPE .
    where rec_type is initial.
    APPEND reclist1 TO reclist.
    ENDFORM. " ASSIGN_DATA_4_MAIL
    *& Form send_mail_with_attachment
    text
    --> p1 text
    <-- p2 text
    FORM send_mail_with_attachment.
    sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = doc_chng
    put_in_outbox = 'X'
    commit_work = 'X'
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    receivers = reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    operation_no_authorization = 4
    OTHERS = 99.
    CASE sy-subrc.
    WHEN 0.
    PERFORM flush_mail.
    message 'Mail sent successfully' type 'I'.
    when 1.
    message 'No authorization for sending to the specified number'
    *type 'E'.
    when 2.
    message 'Document could not be sent to any recipient' type 'E'.
    when 4.
    message 'No send authorization' type 'E'.
    when others.
    message 'Error occurred while sending' type 'E'.
    ENDCASE.
    ENDFORM. " send_mail_with_attachment
    Start new screen *
    FORM bdc_dynpro USING program dynpro.
    CLEAR bdcdata.
    bdcdata-program = program.
    bdcdata-dynpro = dynpro.
    bdcdata-dynbegin = 'X'.
    APPEND bdcdata.
    ENDFORM. "bdc_dynpro
    Insert field *
    FORM bdc_field USING fnam fval.
    CLEAR bdcdata.
    bdcdata-fnam = fnam.
    bdcdata-fval = fval.
    APPEND bdcdata.
    ENDFORM. "bdc_field
    *& Form AUTOMATE
    text
    --> p1 text
    <-- p2 text
    FORM flush_mail .
    PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=PDIA'.
    PERFORM bdc_dynpro USING 'SAPLSPO4' '0300'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=FURT'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'SVALD-VALUE(01)'.
    PERFORM bdc_field USING 'SVALD-VALUE(01)'
    'int'.
    PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=BACK'.
    PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=BACK'.
    CALL TRANSACTION 'SCOT' USING bdcdata
    MODE 'N'
    UPDATE 'S'.
    ENDFORM. " AUTOMATE
    regards,
    Latheesh

  • Evaluated Receipt Settlement (ERS) Smart form through the MRRL Transaction

    hi all,
    i am handling a smartform .
    How can i run my Evaluated Receipt Settlement (ERS) Smart form through the MRRL Transaction  ?
    what fields should be put in the Nast -objectkey?
    if possible Please Mail to me in my id <REMOVED BY MODERATOR> any documentation available for the given Transaction(MRRL)
    Thanks & regards,
    Cheenangshuk
    Edited by: Alvaro Tejada Galindo on Feb 28, 2008 11:45 AM

    Hi,
    ERS Definition: - Procedure for settling goods receipts automatically. When you use Evaluated Receipt Settlement (ERS), you agree with the vendor that the latter will not submit an invoice in respect of a purchase order transaction. Instead, the system posts the invoice document automatically on the basis of the data in the purchase order and goods receipts. This eliminates invoice variances.
    Uses: -
    - SAP recommend that you implement ERS only if you and your vendor have a clear agreement on the applicable conditions and you continuously update the purchase orders in the system.
    - The system determines the invoice amount for the relevant ordering transaction from the prices entered in the PO, the terms of payment, the tax information and the delivery quantity entered in the goods receipt.
    - ERS also generates credit memos: If an invoice has already been posted for a goods receipt and a return delivery has since taken place, the system generates a credit memo for the quantity returned.
    Advantages: -
    Evaluated Receipt Settlement (ERS) is particularly suitable for creating settlement documents at regular intervals.
    ERS has the following advantages:
    - Purchasing transactions are closed more quickly.
    - Communication errors are avoided.
    - There are no price and quantity variances in Invoice Verification.
    In test mode, the system can issue a list of goods receipts that can be settled and goods receipts that cannot be settled. The system makes no postings, it only lists the invoices selected.
    Refer following links for more details;
    [Evaluated Receipt Settlement|http://help.sap.com/saphelp_erp60_sp/helpdata/en/a8/b99f58452b11d189430000e829fbbd/frameset.htm]

  • Smart Form for Reminder Letters (Purchase Orders)

    Hi All,
    Is there a standard form for the reminder/urging letters for undelivered items in a purchase order. I've defined the purchasing value keys and I'm trying to see what the reminder letter looks like. Can anyone layout the steps to search for or update a smart form?
    Many thanks in advance!

    I believe I have configured everything correctly, however, when I try to generate the message from ME22N I get an error "incorrectly processed". What does that mean?
    My processing routine is:
    Medium - 5 External Send
    Program: SAPFM06P
    Form Routine - ENTRY_MAHN
    Form: MEDRUCK
    Smartform: /SMB40/MMPO_L

  • Pointer to a Smart Form

    Anyone please tell me what are pointers to a Smart Form ?
    I was just curious when I read the answer given by someone.....
    there are a few ways to access the relevant SPRO (Implementation Guide for R/3 Customizing) transaction to switch the pointer to a Smart Form instead of SAPscript. In your case, one of the simplest ways is via transaction code NACE (Conditions for Output Control). From there, the steps are as follows:
    1) Select 'V1' (Sales) 2) Click on the 'Output Types' button 3) Select the relevant output type (e.g. BA00) 4) Double-click on the 'Processing routines' folder 5) Double-click on the relevant transmission medium (e.g. 1 for printer). 6) The Smart Form entry field is near the top of the screen 7) On the same screen, you can update the print program entries and remove the obsolete SAPscript reference.
    Caution: Even though a Smart Form is client-independent, the above configuration table is client-dependent. In other words, if you make the above change in client 100, it will not affect the settings in client 200.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Aug 8, 2008 4:42 PM

    This is not any kind of POINTERS in the technaical terms.
    The author only want to say that if you want to issue a output using the Smartform instead of the SAPScript, you need to follow these steps.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • SPACE at the end of number of gl account  (ALPHA Conversion)

    Hi, While updating data from ODS to cube, it is giving error as <b>"Characteristic value '010000 ' of characteristic 0GL_ACCOUNT is not ALPHA-converted " </b>. If you can see there is added <b>SPACE</b> at the end of '010000'. This number is not gene

  • Epson R1900 Color Issues Only Printing From Lightroom

    Hi all - my first post here thought I've been reading this forum since I purchased 1.1 a while back. I'm using 1.4.1 with XP Home, service pack 3. I've had very few issues with this release (which is why I haven't jumped to 2.X yet). To date, I've oc

  • Flex only finds FlashPlayer 8

    I am very new to Flex Builder 2 and AS3, I have Flex Builder installed and when I try to 'Run' the project I get the following; C:\Program Files\Macromedia\Flash 8\Players\SAFlashPlayer.exe Flex Builder cannot locate the required version of the Flash

  • File to Idoc Scenarion

    Hi All, I am sending a file from xi(File adapter as sender) to SAP xRPM (Idoc adapter as receiver). I have create all IR and ID objects.Here i am using poll interval 60.. While i am checking in SXMB_MONI , NO messages are there for this particular Se

  • Ultrabeat bugs...

    I recently left a feedback on apple.com/feedback. It is copied below. They replied back, saying that they duplicated the same bug. Any suggestions from anyone? BUG------ Whenever I load a new .wav sample from my desktop into an Ultrabeat channel that