Skip to Content
author's profile photo Former Member
Former Member

How to send Smartform output into Virtual posting?

Hi Experts,

Please can anyone advise me

1. how to convert Smartform output into xml format?

2. how to send that xml file to virtual posting (3rd party) i.e, We have to save the file in their directory.

Please advise.

Thank you,

Sudheer

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2013 at 04:51 AM

    Hello sudheer,

    see this code, it would be helpful..

    data : s_archive_index1 TYPE toa_dara,

    s_archive_index_tab1 TYPE tsfdara,

    s_archive_params1 TYPE arc_params,

    s_control_param1 TYPE ssfctrlop,

    s_mail_appl_obj TYPE swotobjid,

    s_mail_recipient TYPE swotobjid,

    s_output_options TYPE ssfcompop,

    s_mail_sender TYPE swotobjid,

    s_doc_output_info TYPE ssfcrespd,

    s_job_output_info TYPE ssfcrescl,

    l_line(1024) TYPE C,

    l_table like table of l_line,

    xsf_line like line of s_job_output_info-xsfdata.

    s_output_options-xsfcmode = 'X'.

    s_output_options-xsf = 'X'.

    s_output_options-xsfoutmode = 'A'.

    s_output_options-XSFFORMAT = 'X'.

    CALL FUNCTION v_fm_name

    EXPORTING

    ARCHIVE_INDEX = s_archive_index1

    ARCHIVE_INDEX_TAB = s_archive_index_tab1

    ARCHIVE_PARAMETERS = s_archive_params1

    CONTROL_PARAMETERS = s_control_param1

    MAIL_APPL_OBJ = s_mail_appl_obj

    MAIL_RECIPIENT = s_mail_recipient

    MAIL_SENDER = s_mail_sender

    OUTPUT_OPTIONS = s_output_options

    USER_SETTINGS = 'X'

    LV_SALES = p_sales

    LV_PADDR = v_address_num

    LV_ADRNR = v_adrnr

    LV_EQUNR = v_equnr

    LV_SERNR = v_sernr

    IMPORTING

    DOCUMENT_OUTPUT_INFO = s_doc_output_info

    JOB_OUTPUT_INFO = s_job_output_info

    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.

    loop at s_job_output_info-xsfdata into xsf_line.

    l_line = xsf_line.

    append l_line to l_table.

    endloop.

    CALL FUNCTION 'GUI_DOWNLOAD'

    EXPORTING

    FILENAME = 'C:\temp\test.xml'

    TABLES

    DATA_TAB = l_table.

    Regards,

    Navneet

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 08, 2013 at 09:51 AM

    Hi Sudheer

    For Ist point pls check FM FB_CONVERT_FORM_TO_XML

    Thanks

    Manjit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2013 at 05:59 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2013 at 07:10 AM

    Thank you all for the advises,

    I could not able to work on this on my IDES system.(I use to Practice)

    So I'm waiting for the business to approve the project.

    Navneet Kumar please could you advise where i can implement this code? In print program?

    MANJIT DHIMAN my requirement is how to convert smartform output into xml format instead of printing. not the smartform?

    Please advise!

    Thank you,

    Sudheer

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.