Binary out put to pdf on saop request

Dear Friends,
In the  soap to server proxy scenario on the request of soap if i send a binary data from service proxy can a soap response can convert that into pdf.
I have BAPI_GET_PAYSLIP_PDF bapi which gives a binary out put if i provide this to a .net or java can they convert
into pdf... is it possible..
Regards
Vijay

Hi satish,
Today we have converted the BAPI output into PDF in .net...
Now thw issue is the output of the BAPI_GET_PAYSLIP_PDF is the hexadecimal format and which is of huge size it almost storing in 50000 lines in a table. So now if i transfer this hexacode to .net portal is really hectic...as every line it takes as one output string element in payload
Now can we send this output in any other means to .net in soap response..or any indirect method..
Like once the request is send to R3 after executing the BAPI in proxy class and converting that into PDF and sending as attachment in soap response is this possible..
Only consern here there are lot of applications i need to do in the same so that server performace should not effet.. for example..
CTC View,Payslip view,IT declarion view... many such ... in .net and websphere parallel.. and every request will increase the traffic in xi...
Any kind of approach for all this ...
Regards
Vijay
Edited by: vijay Kumar on Jul 13, 2009 8:38 AM

Similar Messages

  • Priniting out put to pdf file

    Hi All,
    I am using oracle reports 6i under sun Solaris environment. I may finally deploy these reports on web. Is it possible to send the out put to pdf when ever user select from my web deployed form, I mean when ever user select reports from the web is it possible to send the out put to pdf file it should open on client browser. Please help me. I appreciate any ones help.
    Thanks,
    Kate.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by VK:
    set the DESFORMAT system parameter PDF. DESFORMAT make sense only if the DESTYPE is file. you have to set these parameters dynamically
    <HR></BLOCKQUOTE>
    I think, well, I am sure that DESTYPE=cache also works, as long as your web server outputs proper mime header for pdf files. Here is an example (sensitive information replaced with # character):
    --------------- http://###.example.com/db/rp?server=Rep60.example.com&report=XXXXXXInvoice.rdf&userid=XXXX/XXXX@XXXX&desformat=pdf&destype=cache&P_1=218
    null

  • 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

  • How  convert a report out put to pdf and sending it via an email

    Hi all,
            i have convert the sap list or report output to a pdf file then i have to send it via an email that is given in the selection screen. if anyone knows the solutions for this please make it soon. i will be very thankful.
    Thanks & Regards,
    Poorna

    generate spool request of ur report output and execute the standard program RSTXPDFT4 with tht spool reuest.it will download it in PDF format on ur PC and to send it via mail as attachment ,just copy this below code -
    *& Report  ZGILL_SENDMAIL_PDF                                          *
    REPORT  ZGILL_SENDMAIL_PDF                      .
    INCLUDE ZGILL_INCMAIL.  "SEE BELOW FOR INCLUDE PROGRAM CODE.
    DATA
    DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA : file_name TYPE string.
    data : path like PCFILE-PATH.
    data : extension(5) type c.
    data : name(100) type c.
    SELECTION SCREEN
    PARAMETERS : receiver TYPE somlreci1-receiver lower case DEFAULT '[email protected]'.
    PARAMETERS : p_file LIKE rlgrap-filename
    OBLIGATORY DEFAULT 'C:\TEMP\SALARY_SLIP1.PDF'.
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CLEAR p_file.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
    file_name = p_file.
    START-OF-SELECTION
    START-OF-SELECTION.
    PERFORM ml_customize USING 'Tst' 'Testing'.
    PERFORM ml_addrecp USING receiver 'U'.
    PERFORM upl.
    PERFORM doconv TABLES itab objbin.
    PERFORM ml_prepare USING 'X' extension name.
    PERFORM ml_dosend.
    SUBMIT rsconn01
    WITH mode EQ 'INT'
    AND RETURN.
    FORM
    FORM upl.
    file_name = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = file_name
    filetype = 'BIN'
    TABLES
    data_tab = itab
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    path = file_name.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    CHECK_DOS_FORMAT =
    IMPORTING
    DRIVE =
    EXTENSION = extension
    NAME = name
    NAME_WITH_EXT =
    PATH =
    EXCEPTIONS
    INVALID_DRIVE = 1
    INVALID_EXTENSION = 2
    INVALID_NAME = 3
    INVALID_PATH = 4
    OTHERS = 5
    ENDFORM. "upl
    *********************iNCLUDE pROGRAM********************************************
    *&  Include           ZGILL_INCMAIL                                    *
    Data
    DATA: docdata LIKE sodocchgi1,
    objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
    objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
    objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objhex LIKE solix OCCURS 10 WITH HEADER LINE,
    reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
    DATA: tab_lines TYPE i,
    doc_size TYPE i,
    att_type LIKE soodk-objtp.
    DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
    FORM
    FORM ml_customize USING objname objdesc.
    Clear Variables
    CLEAR docdata.
    REFRESH objpack.
    CLEAR objpack.
    REFRESH objhead.
    REFRESH objtxt.
    CLEAR objtxt.
    REFRESH objbin.
    CLEAR objbin.
    REFRESH objhex.
    CLEAR objhex.
    REFRESH reclist.
    CLEAR reclist.
    REFRESH listobject.
    CLEAR listobject.
    CLEAR tab_lines.
    CLEAR doc_size.
    CLEAR att_type.
    Set Variables
    docdata-obj_name = objname.
    docdata-obj_descr = objdesc.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addrecp USING preceiver prec_type.
    CLEAR reclist.
    reclist-receiver = preceiver.
    reclist-rec_type = prec_type.
    APPEND reclist.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addtxt USING ptxt.
    CLEAR objtxt.
    objtxt = ptxt.
    APPEND objtxt.
    ENDFORM. "ml_customize
    FORM
    FORM ml_prepare USING bypassmemory whatatt_type whatname.
    IF bypassmemory = ''.
    Fetch List From Memory
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listobject
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'LIST_FROM_MEMORY'.
    ENDIF.
    CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
    COMPRESSED_SIZE =
    TABLES
    in = listobject
    out = objbin
    EXCEPTIONS
    OTHERS = 1
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'TABLE_COMPRESS'.
    ENDIF.
    ENDIF.
    Header Data
    Already Done Thru FM
    Main Text
    Already Done Thru FM
    Packing Info For Text Data
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'TXT'.
    APPEND objpack.
    Packing Info Attachment
    att_type = whatatt_type..
    DESCRIBE TABLE objbin LINES tab_lines.
    READ TABLE objbin INDEX tab_lines.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = att_type.
    objpack-obj_name = 'ATTACHMENT'.
    objpack-obj_descr = whatname.
    APPEND objpack.
    Receiver List
    Already done thru fm
    ENDFORM. "ml_prepare
    FORM
    FORM ml_dosend.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = docdata
    put_in_outbox = 'X'
    commit_work = 'X' "used from rel. 6.10
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    CONTENTS_HEX = objhex
    OBJECT_PARA =
    object_parb =
    receivers = 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 'SO' TYPE 'S' NUMBER '023'
    WITH docdata-obj_name.
    ENDIF.
    ENDFORM. "ml_customize
    FORM
    FORM ml_spooltopdf USING whatspoolid.
    DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
    Call Function
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = whatspoolid
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_otf_spooljob = 1
    OTHERS = 12.
    Convert
    PERFORM doconv TABLES pdf objbin.
    ENDFORM. "ml_spooltopdf
    FORM
    FORM doconv TABLES
    mypdf STRUCTURE tline
    outbin STRUCTURE solisti1.
    Data
    DATA : pos TYPE i.
    DATA : len TYPE i.
    Loop And Put Data
    LOOP AT mypdf.
    pos = 255 - len.
    IF pos > 134. "length of pdf_table
    pos = 134.
    ENDIF.
    outbin+len = mypdf(pos).
    len = len + pos.
    IF len = 255. "length of out (contents_bin)
    APPEND outbin.
    CLEAR: outbin, len.
    IF pos < 134.
    outbin = mypdf+pos.
    len = 134 - pos.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF len > 0.
    APPEND outbin.
    ENDIF.
    ENDFORM. "doconv
    **********************INCLUDE END********************************

  • Out put to PDF Format

    Hi,
    Can anyone help me to convert O/p To PDF Format.
    Regards
    Amit Gupta

    hi,
    Plz refer following points  and hope it helps in solving u r problem.
    1. Note Spool Request No.
    2. Go to SE38
    3.Enter a programme RSTXPDFT4
    4.In subject- Click Documentation
    5. Then do Debugging
    6. Enter Spool request no and desired location
    7.Execute
    8.In ABAP DEBUGGER -Press F8
    9. Select the desired location and file name and save.
    10.View the desired o/p in PDF.
    Regards,
    Jaiprakash.P.T

  • OC4J Report Server is not saving the PDF out put

    Hi everybody,
    I have a master report running under OC4J.Under this master report 1000's of other reports are runninng by using the srw.run_report.Report name and other required parameters are taking from the database.My aim is to send all generated PDF reports by using the javamail.My problem is report server is not saving any reports until the completion of the master report.Once the master report is completted we can see all the reports under the specified folder, before that we can not see the out put in the folder .So the above reason my mailing part is getting faild because of system cannot find the specified file in that particular path
    Hi anybody know how to save each pdf report in a folder insted of waiting the completion of entire report
    Is any particular report configuration is required for that?
    srw.runreport is running in the batch mode
    thanks in advanceee
    regards
    mathew
    Message was edited by:
    Mathew Thomas

    Please helppp meee

  • Dev procedure out put display in PDF form is it same wd java and wd abap?

    hi,
    dev procedure out put display in PDF form is it same wd java and wd abap?
    Thanks,
    Rama

    Hi,
    for Web Dynpro Java, see
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/60/6fc10c6748479392101e09c9e8d33a/frameset.htm">this</a> and
    for Web Dynpro ABAP, see <a href="http://help.sap.com/saphelp_nw70/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm">this</a>
    Regards, Heidi

  • XML PUBLISHER report in Excel out put problem

    Hi Experts,
    I have developed one XML report which output type is EXCEL in Oracle Application.
    I am getting some -ve value in the report so I need to do the trailing sign
    Menace for example I got a value -8645 I need to display the value like (8645).
    This functionality is working in PDF output but in EXCEL out put it is not working.
    Could any body please help me on this..
    Its Urgent .
    Thanks in Advance.

    Check this metalink notes, did you got any error..?
    Note: 364547.1 - Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=364547.1
    Note: 359875.1 - Cannot View Xml Publisher Report Output In Excel Format
    Note: 358296.1 - How To Produce Requests In Formats Of HTML, RTF, and Excel From XML Publisher
    Note: 850685.1 - Wrong Output Format In Xml Publisher Output
    Note: 727031.1 - XML Publisher Requests Always Get Defaulted to Output Format as PDF Whatever the Template Type is Set To
    Note: 337343.1 - Unable to View Excel Output File Created by XML Publisher
    Note: 401328.1 - Default Layout Format for XML Publisher Concurrent Request Is Always PDF
    Re: XML Publisher Server on EBS 11.5.10.2

  • Out put file is not genrated when calling xml reports from OAF page

    Dear all
    i am calling xml reports from OAF page
    the out put file is not generated
    i am writing this code
    public int tradingrequest(String quoid, String costoder,int orgid)
    try
    OADBTransaction tx = (OADBTransaction)getOADBTransaction();
    java.sql.Connection pConncection = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(pConncection);
    String applnName =
    "XXCRM"; //Application that contains the concurrent program
    String cpName = "XXCRM_COSTSHEET"; //Concurrent program short name
    String cpDesc =
    "Trading Costsheet Report XXCRM"; // concurrent Program description
    Number orgid1=new Number(orgid);
    // Pass the Arguments using vector
    Vector cpArgs = new Vector();
    cpArgs.addElement(quoid);
    cpArgs.addElement(costoder);
    cpArgs.addElement(orgid1.toString());
    // Calling the Concurrent Program
    int requestId =
    cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
    tx.commit();
    System.out.println("Request ID is " + requestId);
    return requestId;
    } catch (RequestSubmissionException e)
    OAException oe = new OAException(e.getMessage());
    oe.setApplicationModule(this);
    throw oe;
    in controller i am writing this code
    OAMessageStyledTextBean y =
    (OAMessageStyledTextBean)webBean.findChildRecursive("quotationid");
    OAFormValueBean z =
    (OAFormValueBean)webBean.findChildRecursive("costorder");
    String quoid = y.getValue(pageContext).toString();
    String costorder = z.getValue(pageContext).toString();
    System.out.println("The quotation id and costing order are....." + quoid +
    " " + costorder);
    /*if click on run report button to run the report*/
    if ("Viewreport".equals(pageContext.getParameter(EVENT_PARAM)))
    if (tsflag.equals("Y"))
    int requestid = am.servicerequest(quoid, costorder, orgid);
    String url =
    "OA.jsp?akRegionCode=FNDCPREQUESTVIEWPAGE&akRegionApplicationId=0&retainAM=Y&addBreadCrumb=Y&REQUESTID=" +
    requestid;
    pageContext.setForwardURL(url, null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT, null,
    null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    when i call the report from oaf page the request id is coming
    when i click on view output i am getting this message
    Error
    The concurrent request 7335031 did not create an output file.
    WHEN I GOTO FIND REQUESTS PAGE QUERY THIS REQUEST ID I AM GETTING THE OUTPUT IN XM FILE
    Regards
    Sreekanth

    java.io.FileNotFoundException: \..\..\..\xdoAqdFFZfuuJ051010_0628487460.fo (The system cannot find the path specified)
    MY CO code
    if("GenerateReport".equals(event))
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
    try {
    // Hashtable hashtable = new Hashtable(1);
    // hashtable.put("TruckBookingRefNum",trucknum);
    // System.out.println("test"+trucknum);
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=LF Cargo Summary Report.htm";
    response.setHeader("Content-Disposition",contentDisposition);
    response.setContentType("application/HTML");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode) am.invokeMethod("getTestDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    System.out.println(" ByteArrayInputStream.ByteArrayOutputStream"+pdfFile+inputStream);
    //Generate the PDF Report.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    "LFCUST",
    "XXLFCARSUM_TARGET",
    "English",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    "US",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_HTML,
    null,
    pdfFile);
    // hashtable);
    System.out.println(" TemplateHelper");
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    System.out.println(" byte"+b);
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    pdfFile.flush();
    pdfFile.close();
    catch(Exception e)
    System.out.println(" inside catch");
    response.setContentType("text/html");
    throw new OAException(e.getMessage(), OAException.ERROR);
    pageContext.setDocumentRendered(true);
    Edited by: user9367919 on May 13, 2010 10:31 AM

  • How to get default lay out set in my ALV out put.

    I need to have default layout in my ALV output.
    My functional consultant idea was to make sure they have an ALV variant selected. 
    When he first run the program, how will need to  get a "/DEFAULT" variant created.
    How can I do that ?
    Initialization - For ALV variant
    INITIALIZATION.
      ws_repid = sy-repid.
      g_save  = 'A'.
      CLEAR g_variant.
      g_variant-report = ws_repid.
    Get default variant.
      gx_variant  = g_variant.
      gx_variant = g_variant.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save     = g_save
        CHANGING
          cs_variant = gx_variant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 0.
        p_vari = gx_variant-variant.
      ENDIF.
    &--F4 HELP - FOR ALV VARIANT GET--
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
          EXPORTING
            is_variant = g_variant
            i_save     = g_save
          IMPORTING
            e_exit     = g_exit
            es_variant = gx_variant
          EXCEPTIONS
            not_found  = 2.
        IF sy-subrc = 2.
          MESSAGE ID sy-msgid TYPE 'S'      NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ELSE.
          IF g_exit = space.
            p_vari = gx_variant-variant.
          ENDIF.
       ENDIF.
    &--AT SELECTION-SCREEN.- For ALV Variant--
    AT SELECTION-SCREEN.
    *Getting variant Existence
      PERFORM get_exist_variant.
    *&      Form  GET_EXIST_VARIANT                                        *
          text                                                           *
    FORM get_exist_variant .
      IF NOT p_vari IS INITIAL.
        MOVE g_variant TO gx_variant.
        MOVE p_vari TO gx_variant-variant.
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
          EXPORTING
            i_save     = g_save
          CHANGING
            cs_variant = gx_variant.
        g_variant = gx_variant.
      ELSE.
        CLEAR g_variant.
        g_variant-report = ws_repid.
      ENDIF.
    ENDFORM.                    " GET_EXIST_VARIANT
    *&      Form  alv_display                                              *
    This subroutine is to display the out put in ALV.                    *
    FORM alv_display .
    Local data
      DATA: y_x          LIKE boole  VALUE 'X'.
      DATA: lh_index     LIKE lf_fieldcat-col_pos.
    For variant
    DATA: ws_repid LIKE sy-repid,
          g_save TYPE c VALUE 'A',
          g_exit TYPE c,
          g_variant LIKE disvariant,
          gx_variant LIKE disvariant.
      For 1st field.( RPT_LOC )
        CLEAR lf_fieldcat.
        lf_fieldcat-fieldname = 'RPT_LOC'.
        lf_fieldcat-tabname = 'GT_ZGXMIT_L'.
        lf_fieldcat-ref_tabname = 'ZGXMIT'.
        lf_fieldcat-ref_fieldname = 'RPT_LOC'.
        lh_index = lh_index + 1.
        lf_fieldcat-col_pos = lh_index.
        lf_fieldcat-key = y_x.
        lf_fieldcat-no_sum = y_x.
        APPEND lf_fieldcat TO lt_fieldcat.
    For 2nd field.( BAL_XMIT )
        CLEAR lf_fieldcat.
        lf_fieldcat-fieldname = 'BAL_XMIT'.
        lf_fieldcat-tabname = 'GT_ZGXMIT_L'.
        lf_fieldcat-ref_tabname = 'ZGXMIT'.
        lf_fieldcat-ref_fieldname = 'BAL_XMIT'.
        lh_index = lh_index + 1.
        lf_fieldcat-col_pos = lh_index.
        lf_fieldcat-key = y_x.
        lf_fieldcat-no_sum = y_x.
        APPEND lf_fieldcat TO lt_fieldcat.
    4,5,....fields appening
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program                = ws_repid
          I_CALLBACK_PF_STATUS_SET          = ' '
           i_callback_user_command           = 'USER_COMMAND'
          I_CALLBACK_TOP_OF_PAGE            = ' '
          I_STRUCTURE_NAME                  =
          I_BACKGROUND_ID                   = ' '
          I_GRID_TITLE                      =
          I_GRID_SETTINGS                   =
          IS_LAYOUT                         = v_alv_layout
           it_fieldcat                       = lt_fieldcat
          IT_SORT                           =
          IT_FILTER                         =
          IS_SEL_HIDE                       =
          I_DEFAULT                         = 'X'
           i_save                            = 'A'
          IS_VARIANT                        =
           it_events                         = events[]
          IT_EVENT_EXIT                     =
          IS_PRINT                          =
          IS_REPREP_ID                      =
           TABLES
                t_outtab                 = gt_zgxmit_l
           EXCEPTIONS
                program_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.                    " alv_display

    Hello SAm,
    U have to set like   DATA: IT_VARIANT LIKE DISVARIANT,
            G_S_SORT  LIKE LINE OF IT_SORT.
      DATA : G_R_DISP_VARIANT TYPE DISVARIANT.
      SORT G_T_OUTTAB BY PSPID POSID.
      CLEAR: G_R_DISP_VARIANT.
    For storing the variant layout
      IT_VARIANT-REPORT  = SY-REPID.
      IF NOT P_VARIAN IS INITIAL.
        G_R_DISP_VARIANT-VARIANT = P_VARIAN.
      ELSE.
        IT_VARIANT-VARIANT = '/Z48M'.
      ENDIF.
      CLEAR G_T_OUTTAB.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM = IT_VARIANT-REPORT
                I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
                IT_FIELDCAT        = IT_FIELDCAT
                I_SAVE             = 'A'
                IS_VARIANT         = IT_VARIANT
               IS_LAYOUT          = IT_LAYOUT
                IT_SORT            = IT_SORT[]
           TABLES
                T_OUTTAB           = G_T_OUTTAB
           EXCEPTIONS
                PROGRAM_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.
    If u want F4 help in the selection screen then do like this.
    SELECTION-SCREEN BEGIN OF BLOCK VARIANT WITH FRAME TITLE TEXT-013.
    PARAMETERS:  P_VARIAN LIKE DISVARIANT-VARIANT DEFAULT '/STANDARD'.
    SELECTION-SCREEN END OF BLOCK VARIANT.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARIAN.
      PERFORM SHOW_EXISTING_DISPLAY_VARIANTS.
    FORM SHOW_EXISTING_DISPLAY_VARIANTS.
      DATA: G_R_DISP_VARIANT TYPE DISVARIANT.
      G_R_DISP_VARIANT-REPORT = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
           EXPORTING
                IS_VARIANT    = G_R_DISP_VARIANT
                I_SAVE        = 'A'
           IMPORTING
                ES_VARIANT    = G_R_DISP_VARIANT
           EXCEPTIONS
                NOT_FOUND     = 1
                PROGRAM_ERROR = 2
                OTHERS        = 3.
      IF SY-SUBRC = 0.
        P_VARIAN = G_R_DISP_VARIANT-VARIANT.
      ENDIF.
    ENDFORM.                               " SHOW_EXISTING_DISPLAY_VARIANTS
    If useful reward.
    Vasanth

  • On the input :   error message if there is no such id in the database to edit?  and out put comments messed up the whole

    The first page (CoGetEditForm.cfm lets you input the co id
    then it get to the next page for you to edit (CoEditForm.cfm). then
    it lets take action and UPDATEs (CoEditAction.cfm) finally, it goes
    to the colist.cfm to query results and outputs it to html format.
    <td>#comm#</td>
    Question is that:
    1. where and what do I do to have an error message if there
    is no such id in the database to edit?
    2. the out put comments messed up the whole query results
    when I added it to the html out put results. What can I do to clean
    this up and where do I put the code?
    <!-------------------------edit
    page----------------------------->
    <html>
    <head>
    <title>Main Title</title>
    <link rel="stylesheet" href="styles.css">
    </head>
    <body>
    <h1>Edit a Co based on co_ID</h1>
    <table>
    <cfform action="CO_EditForm.cfm" method="POST">
    <tr>
    <td>Co_ID</td>
    <td>
    <cfinput type="Text"
    name="Co_ID"
    message="Please enter the Co_ID"
    validate="integer"
    required="Yes"
    size="22"
    maxlength="20">
    </td>
    </tr>
    <tr>
    <td> </td>
    <td>
    <input type="submit" value="GetCo">
    </td>
    </tr>
    </cfform>
    </table>
    </body>
    </html>
    <!------------------------------------------CO_EditForm.cfm
    page------------------------------------->
    <cfquery name="GetCo"
    datasource="#Request.MainDSN#">
    SELECT
    COName,
    ADD,
    City,
    st,
    zip,
    comm
    FROM
    CO
    WHERE
    Co_ID = #Val(Co_ID)#
    </cfquery>
    <html>
    <head>
    <title>Main Title</title>
    <link rel="stylesheet" href="styles.css">
    </head>
    <body>
    <h1>Edit a CO</h1>
    <table>
    <cfform action="COEditAction.cfm" method="POST">
    <cfoutput>
    <input type="hidden" name="COID" value="#Val(COID)#">
    </cfoutput>
    <tr>
    <td>CO Name</td>
    <td>
    <cfinput type="Text"
    name="COName"
    value="#GetCO.COName#"
    message="Please enter a name for this CO."
    required="Yes"
    size="40"
    maxlength="40">
    </td>
    </tr>
    <tr>
    <td>ADD</td>
    <td>
    <cfinput type="Text"
    name="ADD"
    value="#GetCO.ADD#"
    message="Please enter this new CO's ADD."
    required="Yes"
    size="32"
    maxlength="30">
    </td>
    </tr>
    <tr>
    <td>City</td>
    <td>
    <cfinput type="Text"
    name="City"
    value="#GetCO.City#"
    message="Please enter a city."
    required="Yes"
    size="22"
    maxlength="20">
    </td>
    </tr>
    <tr>
    <td>st</td>
    <td>
    <cfinput type="Text"
    name="st"
    value="#GetCO.st#"
    message="Please enter a st."
    required="Yes"
    size="3"
    maxlength="2">
    </td>
    </tr>
    <tr>
    <td>ZIP Code</td>
    <td>
    <cfinput type="Text"
    name="zip"
    value="#GetCO.zip#"
    message="Please enter a valid ZIP Code."
    validate="zip"
    required="Yes"
    size="11"
    maxlength="10">
    </td>
    </tr>
    <tr>
    <td>comm</td>
    <td>
    <textarea cols="40" rows="5"
    name="comm"><cfoutput>#GetCO.comm#</cfoutput></textarea>
    </td>
    </tr>
    <tr>
    <td> </td>
    <td>
    <input type="submit" value="Update Database">
    </td>
    </tr>
    </cfform>
    </table>
    </body>
    </html>
    <cfquery name="UpdateCO"
    datasource="#Request.MainDSN#">
    UPDATE CO
    SET
    COName = '#Trim(Form.COName)#',
    ADD = '#Trim(Form.ADD)#',
    City = '#Trim(Form.City)#',
    st = '#Trim(Form.st)#',
    zip = '#Trim(Form.zip)#',
    comm =
    <cfif Len(Trim(Form.comm)) GT 0>
    '#Trim(Form.comm)#'
    <cfelse>
    NULL
    </cfif>
    WHERE
    COID = #Val(Form.COID)#
    </cfquery>
    <cflocation url="COList.cfm">
    <cfquery name="GetCo"
    datasource="#Request.MainDSN#">
    SELECT
    coID,
    coName,
    ADD,
    City,
    st,
    zip,
    comm
    FROM
    co
    ORDER BY
    coName ASC
    </cfquery>
    <html>
    <head>
    <title>title getco</title>
    <link rel="stylesheet" href="styles.css">
    </head>
    <body>
    <h1>y List</h1>
    <table>
    <tr>
    <td><b>ID</b></td>
    <td><b>Name</b></td>
    <td><b>ADD</b></td>
    <td><b>City</b></td>
    <td><b>st</b></td>
    <td><b>ZIP Code</b></td>
    <td><b>comm</b></td>
    <td> </td>
    </tr>
    <cfoutput query="GetCompanies">
    <tr bgcolor="<cfif currentrow mod
    2>GHOSTWHITE<cfelse>WHITE</cfif>">
    <td>#coID#</td>
    <td>#coName#</td>
    <td>#ADD#</td>
    <td>#City#</td>
    <td>#st#</td>
    <td>#zip#</td>
    <td>#comm#</td>
    <td>
    <a
    href="EmployeeList.cfm?coID=#coID#">Employees</a>
    <a href="coAddForm.cfm">Add</a>
    <a href="coEditForm.cfm?coID=#coID#">Edit</a>
    <a
    href="coDeleteForm.cfm?coID=#coID#">Delete</a>
    </td>
    </tr>
    </cfoutput>
    </table>
    </body>
    </html>

    After your SQL SELECT on CO_EditForm.cfm, you need a
    <CFIF> that checks to see if any records were retrieved. See
    below.

  • Problem with Input out put parametes of IViews in callable objects

    Dear Friends,
    I have designed model which contains 2 IViews
    Apply leave IViews
    Approve leave Iviews
    In both the cases i have exposed the in & out parameters using start & end point.
    Finally deployed in portal successfully
    Guided procedures ->Design Time
    I have created folder
    when i create callable objects using this IViews , i dont see the input & out put parameters exposed in context parameters tab for this IView.
    Any step i missed.
    Regards
    shekar Chandra

    HI Nishi
                struck up with minor problem,
    We have a application designed in VC.It contains
    Create request
    Approve Request(approve or reject buttons)
    IF approved then
    a.Book Request IView
    b.Summary Iview
    If Rejected then
    a.rejected IView.
    When i am designing Process with Sequential block,
    all the actions namely
    create request
    appprove request
    reject
    book
    summary
    are processingone one by as action mentioned in sequential block irrespective of approved or rejected.
    I cannot go for alternative block, since the result state buttons are desinged in IView only namely(Approve/reject).
    How to overcome this probelm any suitable solution?
    regards
    shekar chandra

  • With Forms Central can I set up a form to send out an automatic PDF document like a quote?

    With Forms Central can I set up a form to send out an automatic PDF document like a quote? In other words when my customer fills out the form and puts their email address on the form it automatically sends them a PDF quote on a piece of merchandise that I have. If not is Form Central compatible with Web Merge?

    Hi;
    At this time FormsCentral does not have the ability to send the PDF in the "Email Reciept", you can set up Email Reciepts to send the form filler a reciept with the form data, but it does not attach a PDF of the form. 
    FormsCentral is not compatible with Web Merge.
    Thanks,
    Josh

  • Problem with dispalying out put of report RLLI0400

    i have added one field in the report by copieng the report to zprogram...
    i want see the out of the report ,but i am not getting any out put just giving the message saying that tha document is printed...
    i need to change code in this report?
    i need to change any thing in form DRUCKER_EINSCHALTEN,
    if yes please tell me what changes are needed.....

    Hi Kranthi,
    in sub routine DRUCKER_EINSCHALTEN omit the code NO-DIALOG with NEW_PAGE command. i think it is genreating output into a spool request and suppress the dialog. if you omit this NO-DIALOG it will generate output.
    Regards
    Krishnendu

  • 'Back ground Job' Out put is truncating

    Hi Gurus,
                      I am excecuting the report in background. It's out put is truncating after some length and comes in the next line. It gives the undesirable fromat. I tried with higher spools also. it doesn't do the need.
                      Plese let me know any other options are available for this.
    I appreciate your help and cooperation.
    Regards,
    Mahesh.

    Hi,
    You have to create an output Variant in your report and select it in your selection screen during Execution in Background.
    Secondly, make the output field length as per the screen visibility.
    Run the report using the variant, execute in background mode (this option is available in program menu) which in turn creates background job. In SM37 you can see the output in Spool List similar to foreground.\
    To get the missed fields in the spool, while creating the background job(execute in background option) you can see the printer setting block at the end of the background job settings window, in that check the 'Spool Request Max. Width 255 char' check box and then continue. It will generate the spool list with maximum width and you can see all the fields in the spool output.
    Regards,
    Shamma

Maybe you are looking for

  • "the specified network name is no longer available"

    I have a weird situation. I am using both iMac and Dell laptop. I use AEBS a1s a bridge - AT & T installed a wireless router and one hard line, and I plug my AEBS on the hard line. Dell is connected to AT&T router (and then to AEBS through hard ether

  • Refresh Issues with af:fileDownloadActionListener

    I have a page with has table - (contents from a data control). Row selection is enabled for this table. I have a menu item (download) in this page which invokes a taskflow inside a popup. This taskflow has a command button af:commandButton (named Dow

  • What I did to my K410 after i bought it (random pics)

    I bought a K410 back in August, and like the PC tinkerer I am, i have been adding on to it for awhile now System befor: Link to image 1 System now: Link to image 2 Pics of my specs/benchmarks/setup: Link to image 3 Link to image 4 Still need to add a

  • Mac MIni has no scroll bar in Mail function with Maverick

    Out of the box mac mini has no scroll bar in Mail funtion

  • Ipad doesn't start or shut down.

    From one second to another my new iPad2 (1 months old) doesn't  start or shut down anymore. The only visible activity is a small round circle on the screen. When connected, my PV recognizes the device, on the pad itself, however nothing seems to chan