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.

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

  • 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

  • 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.

  • 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

  • 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

  • Alv query regarding function modules

    hi all,
    what is difference between
    Reuse_alv_list_display & Reuse_alv_grid_display?
    thanks & regards
    sanjeev

    hi,
    1. For all practical purposes, they are the same.
    2. Some differences:
    a) from abap coding point of view,
    alv list is done with Function modules,
    alv gris can also be done with FM,
    but can also be done using OO concepts.
    b) Alv grid (using oo concept) requires
    designing the screen layout .
    Hence, in one screen, we can show more
    then one alv grid
    (we cannot show more than
    one alv list on one screen)
    c) ALV grid uses ActiveX controls
    present on the Presentation Server.
    Hence, it consumes More Memory
    on the presentation server.
    d) ALV LIST is Display Only.
    Whereas
    ALV Grid Can Be made EDITABLE for entry purpose.
    e) In alv grid, these options are possible,
    but not in alv list.
    without horizontal lines
    without vertical lines
    without cell merging during sorts
    display total lines above the entries
    ALV LIST Can be coded using only FMs
    ALV GRID Can be coded using FMs and object oriented concepts
    ALV LIST Can be displayed hieraicharlly
    ALV GRID cannot be displayed hierarichally
    I hope it helps.
    Rgds
    Anver

  • Query regarding Function module

    Dear Friends,
    Is there any function module exist which can fill VBDKR work area when i passed work area of NAST??
    Scenario :
    Actually there is a requirement wherein i have to design a smartform which is going to be attached to VF03 transaction and when there is print commmand, my smartform get executed. As per my knowledge, when end user give priint command, object key is generated and it is saved in Nast table. Now against that entry in Nast table ,i have to display data for which in function specification they have mentioned to fetch data from VBDKR, but VBDKR is a structure so i need to know wheher there is function module exist which can fill VBDKR when i passed work area of NAST table?
    Regards;
    Parag Gavkar.

    Hi Navneet,
    U have to convert that hexadecimal into character and then u can concatenate..
    DATA:
    myx TYPE X VALUE '80',
    myt(20) TYPE C.
    data myz type char10.
    myz = myx.
    concatenate 'Hallo' myz 'World'
    into myt.
    write myt.
    <b>Can u send the code u r using ...</b>
    Regards,
    Sridhar

  • Query reg. function module ERP_IDOC_INPUT_CREDITOR

    Hi Experts,
    Please tell how to pass the parameter of function module ERP_IDOC_INPUT_CREDITOR.
    parameter like input_method,mass processing,pi_xk99_used .
    Thanks,
    sameer

    you can specify any number fields in file and any number fields in internal table,
    see the program and when you specify the count variable in your internal table ,if the data is not available,then it will take some defualt values,other than this one it will be okay.
    In my system count variable data is  538976288  if the file does not have value.
    report x.
    DATA: BEGIN OF ITAB_MATNR OCCURS 0,
    MATNR LIKE MARA-MATNR,
    COUNT TYPE i,
    END OF ITAB_MATNR.
    data : v_repid like sy-repid.
    parameters p_file like rlgrap-filename.
    initialization.
    v_repid = sy-repid.
    at selection-screen on value-request for p_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = v_repid
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
    IMPORTING
       FILE_NAME           = p_file
    start-of-selection.
    refresh itab_matnr.
    clear itab_matnr.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    FILENAME = P_FILE
    filetype = 'ASC'
    TABLES
    DATA_TAB = ITAB_MATNR
    EXCEPTIONS
    CONVERSION_ERROR = 1
    FILE_OPEN_ERROR = 2
    FILE_READ_ERROR = 3
    INVALID_TABLE_WIDTH = 4
    INVALID_TYPE = 5
    NO_BATCH = 6
    UNKNOWN_ERROR = 7
    GUI_REFUSE_FILETRANSFER = 8
    OTHERS = 9.
    IF SY-SUBRC <> 0.
    MESSAGE E699(PP) WITH 'Unable to load input file' P_FILE.
    ENDIF.
    in my file
    data is like ( No count)
    matnr
    12344
    ssss
    sddd
    sddff
    after ws_upload :
    material          count
    12344             | 538976288                                             |
    ssss               | 538976288                                             |
    sddd               | 538976288                                             |
    sddff               | 538976288

  • Query on function module

    hi,
    Can u pls guide what r the nessary parameters/structure required to pass 2 FM : SD_CUSTOMER_MAINTAIN_ALL to change the customer..
    i am abel to create customer... but Iam unabel to change customer...
    pls provide solution ASAP..
    Thanks in advance..
    Srinivas

    HI srinivas,
    its all depends on which data you want to change....
    POSTFLAG = 'X'.
      CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
           EXPORTING
                I_KNA1                  = I_KNA1_01
                I_KNB1                  = I_KNB1_01
                I_KNVV                  = I_KNVV_01
                I_BAPIADDR2             = I_BAPIADDR2_01
                I_KNB1_REFERENCE        = C_BLANK1
                PI_POSTFLAG             = POSTFLAG
    *      importing
    *           e_kunnr                 = customer
           TABLES
                T_XKNBK                 = T_XKNBK_01
    *           t_xknb5                 = t_xknb5_01
                T_XKNVI                 = T_XKNVI_01
                T_XKNVK                 = T_XKNVK_01
                T_XKNVP                 = T_XKNVP_01
                T_YKNBK                 = T_YKNBK_01
    *           t_yknb5                 = t_yknb5_01
                T_YKNVI                 = T_YKNVI_01
                T_YKNVK                 = T_YKNVK_01
                T_YKNVP                 = T_YKNVP_01
           EXCEPTIONS
                CLIENT_ERROR            = 1
                KNA1_INCOMPLETE         = 2
                KNB1_INCOMPLETE         = 3
                KNB5_INCOMPLETE         = 4
                KNVV_INCOMPLETE         = 5
                KUNNR_NOT_UNIQUE        = 6
                SALES_AREA_NOT_UNIQUE   = 7
                SALES_AREA_NOT_VALID    = 8
                INSERT_UPDATE_CONFLICT  = 9
                NUMBER_ASSIGNMENT_ERROR = 10
                NUMBER_NOT_IN_RANGE     = 11
                NUMBER_RANGE_NOT_EXTERN = 12
                NUMBER_RANGE_NOT_INTERN = 13
                ACCOUNT_GROUP_NOT_VALID = 14
                PARNR_INVALID           = 15
                BANK_ADDRESS_INVALID    = 16
                TAX_DATA_NOT_VALID      = 17
                NO_AUTHORITY            = 18
                COMPANY_CODE_NOT_UNIQUE = 19
                DUNNING_DATA_NOT_VALID  = 20
                KNB1_REFERENCE_INVALID  = 21
                CAM_ERROR               = 22
                OTHERS                  = 23.
    regards
    vijay
    Message was edited by: Vijay Babu Dudla

  • Query on Function Module to Add Identification # and Desc. to Bus. Partner

    Hi Group,
    I was trying to use the BAPI "BAPI_IDENTIFICATION_ADD" (and also the BAPI " BUPA_IDENTIFICATION_ADD" )to add the Identification # and Desc to the respective Business Partner.
    But, I tried for a no of test cases(say around 20-25 times) on calling this BAPI to create Id, but, I could not. And also, I have used "BAPI_TRANSACTION_COMMIT" to commit the things after calling the BAPI "BAPI_IDENTIFICATION_ADD" to add the identification # and it's description to the concerned Business Partner.
    I don't understand why this BAPI is always failing without creating the things I wanted.
    Please let me know what needs to be done on this to the Identification # and Desc. for Bus. Partner.
    thanks in advance.
    Regards,
    Vishnu.

    Vishnu,
    Are you committing the transaction after adding Identification number ?
    If not execute the below given FM's in sequence.
    BAPI_IDENTIFICATION_ADD
    BAPI_TRANSACTION_COMMIT.
    Thanks,
    Thirumala.

  • Function module exit

    hi ABAPERs,
    good day,
    i have a query about function module exit,
    create a function module exit to the ABAP program editor, so that,whenever the program attributes screen is opened an information message is popped to the user,
    probably,this is the enhancement,SEU00001,
    thanks,
    kc

    Hi
    By trx CMOD: create a new project and insert that enhancment, then go to the exit EXIT_SAPLSEDTATTR_010,  and do a doubleclick on the line INCLUDE ZXSEUU20 .
    The system'll create the include ZXSEUU20, here insert the code you need.
    Max

  • Can we call a function module in ADHOC query

    Hi
    Can we call a function module in ADHOC query if yes how.
    Also we ned to know how to call a function module in SAP query.
    An early responce is appreciated.
    Thanks and best regards
    Rajeev

    Okay as far as I understand your aim is:
    To fill a field in the output list with a value that is based on the current line information and calculated by a function module
    So go to SQ02 and create an additional field in the InfoSet.
    You can refer in the coding to the technical names you can see in the left tree window like P0000-PERNR.
    More information is avaiable in the Help part look for additional field in SQ02.
    Regards,
    Michael

  • Query ID in Virtual Cube with services-Function module

    Hi,
    I am using virtual cube with services linked to a function module.
    The function module has fixed parameters(such as infoprovider name). None of these parameters consists of query information such as query  ID OR queryname .
    Do any one know how to determine query which was executed this function module?
    Best Regards,
    Anil

    Hi Claudio,
    I never implemented Virtual InfoCube with services with a FM, but I know there is a couple of How To Documents about named:
    - How to Reporting from External Data via Virtual InfoProvider
    -How to Implement a Virtual InfoCube with Services
    both with some code samples: did you read it?
    Hope it helps
    GFV

  • Linking a function module in Bex query

    Hi,How do I use a function module in a Bex query?
    Req is: use to get the diff b/w 2 date fields only if both the value are present otherwise leave the result column blank.
    Ex:
    Date1, date2, No. of working days
    X        Y         x-y
    Blank    Y         Blank(no value to be set)
    X        Blank     Blank(no value to be set)
    I tried to do this in Query, but then it results in zero in the 2nd and 3rd case which is not as per my req.
    Wanna try with function module DAYS_BETWEEN_TWO_DATES in the query. Steps to link this function module in a bex query wud be very helpful.
    Thanks in advance.

    Hi S R,
    Please take a look at these threads..
    Funtion Module for user exits  variables in BEx Queries.
    Funtion Module for user exits for variables used in BEx Queries.
    SAP BW BEx Analzyer Query in ABAP
    BEX Multi-Language SQL Query
    cheers,
    Prashanth
    P.S Please mark helpful answers

Maybe you are looking for

  • Satellite A215-S4757 - Battery life and cooling fan issue

    Hello everybody, I would like to ask a few questions abou my system: first of all, the cooling fan is running in my opinion too often: almost continuously, with brakes of 2-3 seconds. Is this normal? I have my laptop since august last year and I thin

  • Power Mac G4 MDD strange startup problem

    Hello , I have an old G4 MDD dual 1Ghz which is been used by my 6 years old son  for gaming and watching movies. I had Tiger 10.4.11 on a IBM deskstar HDD and Leo 10.5.8 on a seagate HD. Everything was fine until some days ago, when my mac didn't boo

  • [SOLVED] Once screen goes blank there's no turning back

    Hello. If I let the screensaver to blank my screen, I can't wake it up. The screen doesn't turn off, it just stays blank. I tried pressing Ctrl + Alt + Backspace, changing to a console with Ctrl + Alt + F1, F2, etc but nothing. I have to power off th

  • SAP Quickview: converting to Query

    Hi, I've created a quickview, and this quickview can be used for other users, and I want to convert this quickview to a quey. If I go to the query screen (SQ01), there's the 'convert quickview' functionality (Menu: Query --> convert quickview). But t

  • Porblem in query find Window Forms 6i

    Hi All, i have a issue in query find window .i have two fields (from date,to_date) when user enters the froms date that date will be defaulted to to_date. if user wants to change the to_date it is chaging the from date also .( it should chage only to