Query about  Function Module  'RSPO_RETURN_SPOOLJOB'

Hi all,
     I am currently working on a report that takes the SPOOL NO. for the back ground runned job and passes to the Function module 'RSPO_RETURN_SPOOLJOB' that gives the data in BUFFER after reading this data I am converting it to the excel format and sending it as an attached mail to the specified recepient.
     But the FM mentioned is getting data in weird manner. I am converting it to excel format as we do for the normal internal table data being converted to excel format. But the problem is ragarding the data...
     Is there a way to covert this data into excel format? Or is there any other function Module that converts the data into excel format for the job. If it is there then let me know...
regards,
Brijesh Patel

I have not used this myself, but check if this works for you.
RSPO_DOWNLOAD_SPOOLJOB
Regards,
Ravi
Note : Please mark the helpful answers

Similar Messages

  • Query regarding function module SPOOL_RQ_READ_BAPI_EXPORTS (EBP-SRM Module)

    query regarding function module SPOOL_RQ_READ_BAPI_EXPORTS (EBP-SRM Module)
    shopping cart
    Hi in FM SPOOL_RQ_READ_BAPI_EXPORTS
    i want to relate the internal tables requisition_items and requisition_services.
    but in am not getting the key on which they should be joined
    here i have to take the quantity and other fields from requisition_services
    right now i am using the joining condition as
    requisition_items-pckg_no = requisition_services-pckg_no.
    any help in this regard is welcome.
    Thanks and regards,
    Vithalprasad

    Hi Kathirvel,
    Thank you for reply. I am making changes for standard code only.
    " Call FM SPOOL_DPO_READ_BAPI_EXPORTS to read PO data exported to backend.
    Use this data to call FM B46B_DPO_TRANSFER and copy errors tab from
    ' lt_bapi_return ' to ' et_messages' retrun tab in 'doc_check' badi. "
    Thank you.
    Regards, Sunu

  • About function module in alv

    hai all
    iwant to know about few function modules in alv
    1) reuse_alv_default_varients_get.
    2)reuse alv_varients_f4
    what is the use of these function modules
    how to use these function modules, what r the structures used to use these function module. where to pass this in
    in list and grid display function modules.
    plz help me.
    thanks & regards
    sindu

    HI,
    check this.
    REPORT Z_TEST_alv_variant .
    TYPE-POOLS : SLIS.
    PARAMETERS: ONE RADIOBUTTON GROUP G1 DEFAULT 'X',
                TWO RADIOBUTTON GROUP G1.
    DATA: BEGIN OF I_TAB OCCURS 0,
    FIELD1 TYPE I,
    FIELD2 TYPE I,
    END OF I_TAB.
    DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
          LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    DATA: L_VARIANT TYPE DISVARIANT,
          LX_VARIANT LIKE DISVARIANT,
          L_SAVE TYPE C,
          L_EXIT(1) TYPE C.
    SELECTION-SCREEN BEGIN OF BLOCK 0 WITH FRAME TITLE TEXT-VAR.
    PARAMETERS: P_VARI LIKE DISVARIANT-VARIANT.
    SELECTION-SCREEN END OF BLOCK 0.
    INITIALIZATION.
      L_SAVE = 'A'.
      PERFORM VARIANT_INIT.
    Get default variant
      LX_VARIANT = L_VARIANT.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          I_SAVE     = L_SAVE
        CHANGING
          CS_VARIANT = LX_VARIANT
        EXCEPTIONS
          NOT_FOUND  = 2.
      IF SY-SUBRC = 0.
        P_VARI = LX_VARIANT-VARIANT.
      ENDIF.
    Process on value request
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI.
      PERFORM F4_FOR_VARIANT.
      I_TAB-FIELD1 = 19.
      I_TAB-FIELD2 = 20.
      APPEND I_TAB.
      I_TAB-FIELD1 = 19.
      I_TAB-FIELD2 = 20.
      APPEND I_TAB.
      I_TAB-FIELD1 = 19.
      I_TAB-FIELD2 = 20.
      APPEND I_TAB.
      I_TAB-FIELD1 = 19.
      I_TAB-FIELD2 = 20.
      APPEND I_TAB.
      I_TAB-FIELD1 = 19.
      I_TAB-FIELD2 = 20.
      APPEND I_TAB.
      PERFORM INITIALIZE_FIELDCAT USING GT_FIELDCAT[].
      PERFORM CALL_ALV  TABLES I_TAB[]
                       USING GT_FIELDCAT.
    *& Form initialize_fieldcat
    text
    -->P_GT_FIELDCAT[] text
    FORM INITIALIZE_FIELDCAT USING L_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
      LS_FIELDCAT-FIELDNAME = 'FIELD1'.
      LS_FIELDCAT-KEY = 'X'.
      LS_FIELDCAT-COL_POS = 1.
      LS_FIELDCAT-SELTEXT_S = 'Work center'.
      LS_FIELDCAT-SELTEXT_L = 'Work center'.
      APPEND LS_FIELDCAT TO L_FIELDCAT.
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME = 'FIELD2'.
      LS_FIELDCAT-KEY = ' '.
      LS_FIELDCAT-COL_POS = 2.
      LS_FIELDCAT-SELTEXT_S = 'Work center2'.
      LS_FIELDCAT-SELTEXT_L = 'Work center2'.
      APPEND LS_FIELDCAT TO L_FIELDCAT.
      CLEAR LS_FIELDCAT.
    ENDFORM. " initialize_fieldcat
    *&      Form  call_alv
          text
         -->P_GT_FIELDCAT  text
         -->P_I_TAB  text
    FORM CALL_ALV  TABLES   P_TAB
                    USING    P_GT_FIELDCAT .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM = SY-REPID
          IT_FIELDCAT        = P_GT_FIELDCAT
          I_DEFAULT          = 'X'
          IS_VARIANT         = L_VARIANT
          I_SAVE             = L_SAVE
        TABLES
          T_OUTTAB           = P_TAB[]
        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.                    " call_alv
    *&      Form  VARIANT_INIT
          text
    FORM VARIANT_INIT.
      CLEAR L_VARIANT.
      L_VARIANT-REPORT = SY-REPID.
    ENDFORM.                               " VARIANT_INIT
    *&      Form  variant_SELECTION_SCREEN
          text
    FORM VARIANT_SELECTION_SCREEN .
      IF NOT P_VARI IS INITIAL.
        MOVE L_VARIANT TO LX_VARIANT.
        MOVE P_VARI TO LX_VARIANT-VARIANT.
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
          EXPORTING
            I_SAVE     = L_SAVE
          CHANGING
            CS_VARIANT = LX_VARIANT.
        L_VARIANT = LX_VARIANT.
      ELSE.
        PERFORM VARIANT_INIT.
      ENDIF.
    ENDFORM.                    " variant_SELECTION_SCREEN
    *&      Form  F4_FOR_VARIANT
          text
    FORM F4_FOR_VARIANT.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          IS_VARIANT = L_VARIANT
          I_SAVE     = L_SAVE
        IMPORTING
          E_EXIT     = L_EXIT
          ES_VARIANT = LX_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 L_EXIT = SPACE.
          P_VARI = LX_VARIANT-VARIANT.
        ENDIF.
      ENDIF.
    ENDFORM.                    "F4_FOR_VARIANT
    Regards,
    Laxmi.

  • Query on Function Module for conversion of text - language specific

    Hi,
    In my interface program i have query regarding CDHDR table.
    Problem: Object Class(CDHDR-OBJECTCLAS). The technical name of the object name shall
    be translated to meaningful business text
    For EXample.  I am getting the value for the field OBJECTCLAS is EINKBELEG shall be converted as 'Purchasing Document'
    Kindly suggest me if there any standard SAP function module is available to convert the German text into English

    Hi,
    to pass the internal table to a tables parameter
    both must be of same type
    if both are of same type
    u can use INT1[] = INT2[] to pass internal table value to internal table of FM
    if structures are not same then
    u will have to loop thru int1 and move values selectively to int2 and everytime append int2
    this should sove ur prob
    tc
    saji

  • About Function module reltate to Enhancement

    Hi All,
    i need to know about the Usage and purpose of the function module FKK_BP_BADI_UPDATE.
    Kindly help me to know about this function module

    Hi Venkat,
    The function module BAPI_CUBE_GETDETAIL provides you the detials of infocube (including dimension, characteristics, keyfigures etc).
    Moreoverthis FM is RFC enabled; so you can call this FM from DEV and pass RFC connection of PROD to get detials of the cube in prod. This compare the structures between DEV and PROD.
    Similarly you can use BAPI_ODSO_GETDETAIL from DSO structure comparision across the system landscape.
    Thanks
    Vasu

  • Table that stores information about function module

    Hi All,
    I know that table TFDIR stores primary information about any function module.
    Could anyone tell me where the code of that function module gets stored in?
    Also.. If I want to write an ABAP code to read the function module code then what is the best possible solution?
    Thanks in advace and any answer will be appreciated.
    Regards
    Jignesh

    Hi All,
    Apologies for the same!
    The codes are not stored in any table, they are stored as cluster.
    To read the code, you can use READ REPORT.
    But there you must provide the Include Name For Example , If you want to read the code of READ_TEXT,
    READ REPORT 'LSTXDU01'.
    You can get this include name inside include LSTXDUXX
    Table TFDIR also stores the program name and include number.
    You need to truncate first 3 char 'SAP' and append UXX at the end and that will be your program name.
    Then we can use READ REPORT!!!
    Regards
    Jignesh

  • ABOUT FUNCTION MODULE  (urgent)

    hi ,
    is any one know about below function module.
    CUST_ACCT_STMT_REQUEST_LITE
    we schedule customer account statement in th background.
    we want to add some functionality.
    if any one know anything then it will be appreciated.
    thans,
    jack

    Hi,
    I am giving the Function Modules list link, from there you can findout which is suitable for your application:
    http://sap-img.com/abap/function-list.htm
    Regards,
    Bhaskar

  • Execute BEX Query via Function Module

    Hi Mates,
    I want to execute BEX query via a Function Module.
    Also i want to explore whether the input parameters of the query can be retrieved from a Database Table.
    Please let me know how this can be achieved.
    Thanks in advance.
    Regards,
    Hrishikesh

    Hi Hrishikesh,
    Assuming you have the necessary ABAP knowledge, you will have to code the exit in the include ZXRSRU01 under I_STEP = 1 (this is because you want to prepopulate your parameters from the values in your DB table).
    Your DB table has Key1, Key2 and Your field as the three fields and you want to read the value of 'Your Field' based on your keys Key1 and Key2.
    So, the code will be something like -
    when 'Your variable'.
    if i_step = 1.
    select single 'Your field' from 'Your DB table' into lv_your_field where Key 1 = 'X' and
                                                                                                                   key 2 = 'Y'.
    clear l_s_range.
    l_s_range - low = lv_your_field.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    endif.

  • About Function module 'PRICING'

    Hi experts,
    Now My requirement is get all contract condition data. If I don't want to create a new contract to get these condition data, I can use Function module 'PRICING' to get all condition data. But the question is the parameter COMM_ITEM_I is a structure, it only can store a record(single material). If the contract has many item, eg Service + Goods............ How to process this scenario? If you have experience in this, please give me any idea. Thanks in advance!
    function pricing.
    ""Globale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(CALCULATION_TYPE) LIKE  KOMV-KSTEU DEFAULT 'A'
    *"     VALUE(COMM_HEAD_I) LIKE  KOMK STRUCTURE  KOMK
    *"     VALUE(COMM_ITEM_I) LIKE  KOMP STRUCTURE  KOMP
    *"     VALUE(PRELIMINARY) TYPE  C DEFAULT ' '
    *"     VALUE(NO_CALCULATION) TYPE  C DEFAULT ' '
    *"  EXPORTING
    *"     VALUE(COMM_HEAD_E) LIKE  KOMK STRUCTURE  KOMK
    *"     VALUE(COMM_ITEM_E) LIKE  KOMP STRUCTURE  KOMP
    *"  TABLES
    *"      TKOMV STRUCTURE  KOMV
    *"      SVBAP STRUCTURE  VBAPU OPTIONAL
    *"  CHANGING
    *"     VALUE(REBATE_DETERMINED) TYPE  C DEFAULT ' '

    Hi,
    I guess contracts will be found in EKKO, not in VBAK. Correct me if I am wrong.
    If I am correct, you can use the BAPI "BAPI_PO_GETDETAIL1". POCONDHEADER and POCOND inporting tables will retrieve pricing information.
    Regards,
    Ganga

  • Query in Function Module !!!!

    Hi all,
             Can anyone please tell me as to why we use the Function Module 'CONVERT_OTF'.
    I use the function Module 'CONVERT_OTF' as follows:
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    IMPORTING
    BIN_FILESIZE = V_LEN_IN
    TABLES
    OTF = I_OTF
    LINES = I_TLINE
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    OTHERS = 4.
    But I get the contents of the table I_OTF in some Language like Japanese.
    Can anyuone please tell me how to resolve the above issue please.
    Kindly reply immediately as this is bit urgent.
    Regards,
    Vijay

    Hi,
    Plz try the following.
    CALL FUNCTION "CONVERT_OTF"
      EXPORTING 
       FORMAT    = "PDF"
      IMPORTING 
       BIN_FILESIZE   = FILE_LEN
      TABLES     
        OTF   = OTFDATA
        LINES  = PDFDATA
       EXCEPTIONS 
        ERR_MAX_LINEWIDTH  = 1                  
        ERR_FORMAT   = 2
        ERR_CONV_NOT_POSSIBLE = 3
        OTHERS  = 4.
    The IMPORTING parameter BIN_FILESIZE should be Number of bytes in LINES.
    TABLES parameter OTFDATA must be of type ITCOO.
                                 PDFDATA must be of type TLINE.
    EXPORTING parameter FORMAT is the Target Format.
    Reward if Helpful.

  • Doubt About Function Module

    Hi Experts,
    I want one function module which wil allows us to attach a attachment to the material in the SAP PLM System.
    Please clear my doubt . Why Because i got strucked here in this issue of selecting a right Function Module.
    Please clear my doubt. Helpful ANswers wil be Reward.
    Regards
    Khanna

    Hi khanna,
    try this MATERIAL_MAINT_DIAL_GET_DOC Functional Module for attachment in Material Master,
    In DIR try this CV110_DOC_ASSIGN_FILE,
    Regards
    Rehman

  • Query regarding Functional Modules

    Hi All Experts,
    I want to know that, of all the functional modules(e.g. SD, MM, FI, etc., etc.) in SAP which one is the easiest ? Can you all please provide me a complete link to that so that i am able to learn it quickly and have enough knowledge(i.e. satisfactory knowledge) to it ?
    Also, i want to know where can i get a good knowledge of SAP-FI module ? I want to know how much time will i take to have a satisfactory knowledge of SAP-FI ? ?

    HI ,
    Check these link on SD module which helps you lot to start of Your SD
    http://help.sap.com/saphelp_47x200/helpdata/en/06/57683801b5c412e10000009b38f842/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/8c/df293581dc1f79e10000009b38f889/frameset.htm
    http://sap-img.com/sap-sd.htm
    http://planetsap.com/logictics_SD_main_page.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/SDSLS/SDSLS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MYSAP/SR_SD.pdf
    http://help.sap.com/saphelp_erp2005/helpdata/en/dd/55f33e545a11d1a7020000e829fd11/frameset.htm
    http://www.sap-basis-abap.com/sapsd.htm
    http://www.sapgenie.com/abap/tables_sd.htm
    http://searchsap.techtarget.com/featuredTopic/0,290042,sid21_gci961718,00.html
    http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/SD_tutorial.html
    For MM module
    http://www.easymarketplace.de/online-pdfs.php
    Best Practices Guide:
    http://help.sap.com/bp_bblibrary/500/html/J05_MM_EN_IN.htm
    http://help.sap.com/bp_bblibrary/500/html/J24_SDExtend_EN_IN.htm
    Configuration Tips:
    http://www.sap-basis-abap.com/sapmmpur.htm
    http://www.sap-img.com/materials/sap-mm-configuration-tips.htm
    http://www.erpgenie.com/sapfunc/mm.htm
    Regards
    Sridhar Goli

  • Question about Function Module ME_PO_PRICE_SIMULATION

    Hi experts,
    I am trying to solve an issue concerning the importing parameter I_ROLL_BACK of the function module ME_PO_PRICE_SIMULATION.
    Inside the coding of the user-exit ZXM06U44 (executed after saving a purchase order) there is a call to the function module ME_PO_PRICE_SIMULATION with this importing parameter set to true. In that case, purchase order is not created. Otherwise if I modify this value into false the order is created appropriately.
    Could someone more functional explain me what is the meaning of this parameter. I try to read the documentation but is in German, so I don't understand anything.
    Lots of thanks,
    Javier

    This is what happens inside the FM using I_ROLL_BACK:
    To understand what a rollback statement does, have a look at this:
    https://help.sap.com/abapdocu_70/en/ABAPROLLBACK.htm

  • Question about function Module

    Hi Expert,
             First tell me What is function Module & its working?
    And second is how to call dynamically function module?
    Moderator message : Search for available information, read forum rules before posting.  Thread locked.
    Edited by: Vinod Kumar on Nov 9, 2011 4:57 PM

    This is what happens inside the FM using I_ROLL_BACK:
    To understand what a rollback statement does, have a look at this:
    https://help.sap.com/abapdocu_70/en/ABAPROLLBACK.htm

  • About function module"IDOC_XML_TRANSFORM"?

    Hi Gurus:
         When i do the "IDOC_XML_TRANSFORM",where can i find the exporting file which is in  XML format?
         Thanks for advanced!
    alex zhang

    Check with below link :
    Re: IDOCS_OUTPUT_IN_XML_FORMAT -- IDOCS_OUTPUT_TO_FILE
    Re: any function module to write-xml schema of a idoctype to an internal table
    /people/michal.krawczyk2/blog/2005/11/13/xi-how-to-check-your-idocs-on-a-web-page-from-sapgui -> this will help you
    Thanks
    Seshu

Maybe you are looking for