How to limit 35 charactger field to output 35 bytes in Unicode system

Hello,
I hope someone can help me.  We are have upgraded from 4.5b to 6.2 Unicode and in the previous system when 35 characters of double byte characters was output to a Unix file via OPEN DATASET FOR OUTPUT IN TEXT MODE - only 35 bytes would be output.  Under unicode we are now having 35 characters being output not 35 bytes.  Has anyone had any experience with limiting the number of bytes output to a field.  I have tried all variations of the OUTPUT DATASET command.
All help will be much appreciated.
Joanne

FYI
This issue was resolved by creating a flat type C structure and using
SET LOCALE LANGUAGE 'J'
OPEN DATASET dsn FOR OUTPUT IN LEGACY TEXT MODE.
and TRANSFER the contents of the flat data structure TO THE FILE dsn

Similar Messages

  • How to split all the fields of output ls-l from an internal table

    Hi all,
    Using ls-l command i have brought the file attributes of a file like its read and write permissions,creation date ,path etc in a internal table.
    Now how to split all these fields from the internal table or what should be the splitting criteria.
    The field contents of internal table are like this:
    -rw-rw----    1  devadm     sapsys     18360    apr  29......so on
    I want to split this into different fields.
    Kindly suggest.
    Thank You.

    Hi,
    I think the delimiter will be space. For date alone (Apr 29) you need to concatenate after the string has been split.
    Thanks and regards,
    S. Chandramouli

  • How to display the editable fields in output of an ALV report?

    Hi all,
    I have a requirement of displaying values in ALV Grid format and above this grid display i have to put some fields , that are editable.
    I know making ALV grid fields as editable, but here requirement is to display some fields before displaying the ALV grid dispaly and to enable these fields editable to user and when printing this the values entered by user also has tobe printed.
    Please help me on solving this problem? Is it possible to do this with ALV function modules?
    Thanks,
    Vamshi.

    Hi all,
    Thanks for your replies.
    But this is not  my requirement. I mentioned in my question that i too know how to edit the fields in ALV grid report.
    Here my requirement is .
                                             name :_____________
                                             amount:____________
    alv grid display
    Like above i need to display.  after name the user can be enter value and after amount also the user can be enter some value at output . But this is not the header of ALV .
    Is this possible in classical ALV or Classical report? If not please specify alternative?
    Thanks,
    Vamshi.

  • How to write a Currency field in Output?

    Hi,
    How should I write an amount field in the output using the key word "currency"?
    I have a write statement in the program like this:
    write: /24 i_konp-kbetr.
    Thanks.

    The output of the WRITE statement is "123456,78".
    DATA int TYPE i VALUE 12345678.
    WRITE int NO-GROUPING CURRENCY 'EUR'

  • How to know querry level fields from which tables in the source system

    Hi Experts,
    let's say we've two fields in the querry e.g: Actual GI Quantity, Actual Value of GI
    This fields from PP Querris level how would i know from which table we're getting data is there any easy process to find out please drop your suggestions..
    Next doubt is when generate querry e.g. PM Module we don't know exatly what're the available tables & fields technical names but in my currently project using SAP Delivered Infocubes & Querries at the moment  & generating querries but when we test in the Portal it's shows some fields '0', X. I've to check in source system weather it's having any values or not.
    Can anybody drops your valuable words
    Cheers
    Suresh

    Hi all,
    I'm a colleague of Maarten, and I think maybe we didn't explain well enough what we want. So let me try to elaborate:
    We want to obtain the reference (within the SOAP-Body of the XI-message) to the attachment which contains the main payload (at least, in XI itself). This reference seems to have gone missing, once our adapter module (after having gone through XI) is entered (and, by the way, before we enter the SOAP-receiver-adapter).
    The JAVA-representation of the XI-message seems to hide the fact that in XI itself, the main payload is an attachment, referenced from within the SOAP-Body.
    Nevertheless, we would like to obtain/retain(?) that reference, in order to put it in our own to-be-created-additional-attachment, which would go (via the PayloadSwapBean-module of SAP) into the SOAP-body of the final SOAP-call, and should then reference the 'new attachment' (which was (in XI itself) the main payload).
    So, I think both answers (up to now) don't help us much (however: thanks for your reaction anyway of course).
    So, maybe someone has another idea?
    Regards, Fred

  • Add new field in output of FBL1N

    Hi Experts,
    How can I and new field in output of FBL!N.
    Can you show me the steps.
    Pooja

    Hi Expert,
    Thanks, I have corrected u201CNameu201D mistake in structure. Now RFPOSXEXTEND is run successfully.
    Still not getting field which is added in structure.
    Below describing what I have done.
    Create copy of SAMPLE_INTERFACE_00001650 to Z_FI_INTERFACE_00001650.
    Register product from Settings->products->..of a customer
    Product : ZFI
    Text : BTE Products for FI Exit
    Activation Checked.
    Register Event from Settings->p/s module->..of acustomer
         Event : 00001650
         Product : ZFI
         Function Module :  Z_FI_INTERFACE_00001650
    (Function is created in new function group Z_FUN_GRP.)
    Add new Structure ZMyStruct(KUNNR,NAMEJ,LIFNR,NAMEK) in RFPOS.
    Add new Structure ZMyStruct1(KUNNR,NAMEJ,LIFNR,NAMEK) in RFPOSX.
    Below Mentioned Code is written in Z_FI_INTERFACE_00001650
    FUNCTION Z_FI_INTERFACE_00001650.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS
    *"  EXPORTING
    *"     VALUE(E_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS
    Initialize Output by using the following line -
    E_POSTAB = I_POSTAB.
    TABLES : bseg, kna1, lfa1.
    IF sy-tcode = 'FBL1N'.
      CLEAR : bseg.
      SELECT SINGLE *
        FROM bseg
        WHERE bukrs = i_postab-bukrs
        AND belnr = i_postab-belnr
        AND gjahr = i_postab-gjahr
        AND koart = 'K'.
      IF sy-subrc EQ 0.
        e_postab-lifnr = bseg-lifnr.
        CLEAR: lfa1.
        SELECT SINGLE *
          FROM lfa1
          WHERE lifnr = bseg-lifnr.
        IF sy-subrc EQ 0.
          e_postab-namek = lfa1-name1.
        ENDIF.
      ENDIF.
      CLEAR : bseg.
      SELECT SINGLE *
        FROM bseg
        WHERE bukrs = i_postab-bukrs
        AND belnr = i_postab-belnr
        AND gjahr = i_postab-gjahr
        AND koart = 'D'.
      IF sy-subrc EQ 0.
        e_postab-kunnr = bseg-kunnr.
        CLEAR: kna1.
        SELECT SINGLE *
          FROM kna1
          WHERE kunnr = bseg-kunnr.
        IF sy-subrc EQ 0.
          e_postab-namej = kna1-name1.
        ENDIF.
      ENDIF.
    ENDIF.
    ENDFUNCTION.
    Saved and Activated.
    Start report RFPOSXEXTEND. And run it successfully.
    Still not getting fields in report FBL1N which I have added in RFPOS and RFPOSX.
    Thanks and regards,
    Pooja

  • Add a custom field in output tab of po header SRM 7.0

    Hello All,
    Please let  me know How to add a custom field in output tab of po header SRM 7.0.
    Regards,
    Neelima

    Hello Neelima,
    Have you already check the note 458591, which help to custom fields creation? I think this note can be relevant for you.
    Best regards,
    Denise Zanuz

  • Field lengths in unicode system.

    Hi gurus,
    I am creating a dynamic internal table. To get the structure of DDIC table at run time i use the following code to create field catalog:
    DATA : idetails TYPE abap_compdescr_tab,
             xdetails TYPE abap_compdescr.
    DATA : xfc TYPE lvc_s_fcat,
             ifc TYPE lvc_t_fcat.
    ref_table_des ?=
            cl_abap_typedescr=>describe_by_name( p_ztab_name ).
        idetails[] = ref_table_des->components[].
        LOOP AT idetails INTO xdetails.
          CLEAR xfc.
          xfc-fieldname = xdetails-name .
          xfc-datatype = xdetails-type_kind.
          xfc-inttype = xdetails-type_kind.
          xfc-intlen = xdetails-length.
          xfc-decimals = xdetails-decimals.
          APPEND xfc TO ifc.
        ENDLOOP.
    The xdetails-length is doubled in a unicode system.
    However it is correct as field length of table in non-unicode system.
    I am then writing the data from internall table to file using
    OPEN DATASET ld_fullpath FOR OUTPUT IN TEXT MODE ENCODING UTF-8
    For ex. a numeric field in the file are written as 00 when its actual value in table is 0.
    Please suggest how to solve this problem?
    Should i build field catalog in some other way.
    Assured points for helpful answers.
    Regards,
    Abhishek

    Hi,
    use this function module to get the filed info.
    DATA:lta_dfies type dfies occurs 0 with header line.
    CALL FUNCTION 'DDIF_FIELDINFO_GET'
        EXPORTING
          TABNAME              = TABLE
        TABLES
          DFIES_TAB            = lta_dfies.
    loop at lta_dfies.
    if (condition to get required).
    perform build_fcat.
    endif.
    endloop.
    form build_fcat.
    CLEAR xfc.
    xfc-fieldname = lta_dfies-FIELDNAME .
    xfc-datatype = lta_dfies-DATATYPE.
    xfc-inttype = lta_dfies-inttype.
    xfc-intlen = lta_dfies-INTLEN.
    xfc-decimals = lta_dfies-decimals.
    APPEND xfc TO ifc.
    endform.
    rgds,
    bharat.
    Message was edited by:
            Bharat Kalagara

  • How to add additional field into output table for RFIDYYWT(Generic Withholding Tax Reporting)

    Hi Experts,
    How to add additional field into output table VENDORS/WH TAX TYPES AND CODES in RFIDYYWT(Generic Withholding Tax Reporting).
    I have no idea how to start with, please give some advice.
    Thanks!
    Ice

    Dear Ice,
    Use Append structure, see given link:
    https://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm
    Regards,
    Abbas.

  • How to remove the mandatory field setting in output control

    Hi everybody,
    While printing a Payment Voucher through F-58 and FBZ5(reprint), there are two output devices, the first one is - printer for forms and second is - payment advice printer.
    In our case we have configured the cheque printing and payment voucher printing seperately. The cheque goes to first printer(kept mandatory field) and the payment voucher goes to second printer. One of our plant does not print the cheque from SAP, they only print the payment voucher because the cheque is manually prepared. How do I avoid the cheque printing. Is there any way out to print only the payment voucher through F-58 and FBZ5
    Please guide me how to tackle it or how to remove the mandatory field setting in the output control screen?
    Regards
    Paul

    Hi
    As of my understanding, there is no relation ship between the Sales Organization and this mandatory partner function.
    Here are few suggestions.
    1. Since Partner functions are defualted and made mandatory in the Partner Determination Procedure so you have to remove this Mandatory option for PE from the Partner Determination Procedure that is AG if using standard one.
    2. If you are using a single partner function than , Copy and create a New partner procedure and a new account group . Where in one you can default PE as mandatory and in another one you make a optional where it can be choosen manually while creating the customer.
    Follow the path to check for entries :
    SPRO > sales & distribution > Basic Function > Partner Determination > set up partner determination > select for customer master > select the partner procedure you are using AG as standard > then partner function in procedure > here maintian the check as required like, Mandatory or No check for Non Mandatory .
    Thanks
    RB

  • How to autopopulate a text field with unique data from multiple data sets

    Hi,
    I'm a laboratory manager in charge of a hospital project which will be using pdf forms to send and receive data from our end users across the city. I need help with the last part of our pdf form, specifically with a js that will do a bit of text-field autopopulation magic. This, unfortunately, is a beyond what I have taught myself about pdf js functionality.a
    The problem:
    I need to provide my end users with a text field containing a set of data [A, B, C, D, E, F ...] and the total items in this set [tot#]. The end user needs this information as part of the implementation of this particular laboratory machine.
    The particulars
    When the end user asks for an experiment to be run, we must specify some pieces of data to help them interpret the results. These are constructed as panels which contain discrete data elements.
    For example - One experiment may use two panels, Panel#1 and Panel #2. Panel #1 includes the items A, B, D, E, Panel #2 includes the items A, B, C, F, G.
    Thus, the panels may share some of the same items, but, I only want the unique members to be displayed in the text field. If I make a drop down box or checkboxes with the panels, I want to  be able to select the panels that we ran and (in this example) have the text field display only the unique items among all the panels that were used:
    textfield outpute = A, B, C, D, E, F, G - 7 total.
    Any assistance from the pdf community would be very much appreciated.
    Thanks!

    Thanks for that help.
    I should have made it more apparent that I'm very new to scripting and I'm
    not a programmer by trade. I have a few questions before modifying the code
    you kindly provided.
    1) Where should I embed this script? Within the 'selection change' area of
    my listbox?
    2) Can I replace the term 'arr' with the names of the various items in my
    listbox or should I put 'arr#' as the output value for each term?
    3) Will this script find and display the unique values when a user selects
    multiple items in my listbox?
    4) How does the script know where to output the unique members of the
    combined set?
    I appreciate your patience with me.
    ck

  • How to get check box in alv output

    hi gurus
    can anyone explian me how to get check box in alv output
    it should not be a pop up window
    i want to get in output itself
    tahnk you
    regards
    kals.

    Hi
    by using rs_selfield
    ty to call dynamic subroutine..
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield. "#EC CALLED
    read table rs-selfield with key cond = 'X'
    endform.
    see the below example
    REPORT Z_GET_REFRESH no standard page heading.
    type-pools : slis.
    tables : makt,
    mara.
    data : i_fieldcat type slis_t_fieldcat_alv.
    CONSTANTS :
    gc_refresh TYPE syucomm VALUE '&REFRESH'.
    data : begin of i_makt occurs 0,
    matnr like makt-matnr,
    maktx like makt-maktx,
    end of i_makt.
    data : v_repid like sy-repid,
    g_user_command type slis_formname value 'USER_COMMAND',
    g_status_set type slis_formname value 'SET_PF_STATUS',
    lt_event_exit TYPE slis_t_event_exit,
    ls_event_exit TYPE slis_event_exit.
    DATA:LC_GLAY TYPE LVC_S_GLAY.
    select-options s_matnr for mara-matnr .
    start-of-selection.
    select matnr maktx from makt into table i_makt
    where matnr in s_matnr.
    end-of-selection.
    Fill the fieldcatlog
    perform fill_field.
    Call the FM
    perform call_fm.
    *& Form fill_field
    text
    --> p1 text
    <-- p2 text
    FORM fill_field.
    data wa_fieldcat type slis_fieldcat_alv.
    clear : wa_fieldcat.
    wa_fieldcat-tabname = 'I_MAKT'.
    wa_fieldcat-fieldname = 'MATNR'.
    wa_fieldcat-outputlen = '18'.
    wa_fieldcat-seltext_l = 'Material #'.
    wa_fieldcat-col_pos = '1'.
    append wa_fieldcat to i_fieldcat.
    clear : wa_fieldcat.
    wa_fieldcat-tabname = 'I_MAKT'.
    wa_fieldcat-fieldname = 'MAKTX'.
    wa_fieldcat-outputlen = '40'.
    wa_fieldcat-seltext_l = 'Material Desc'.
    wa_fieldcat-col_pos = '2'.
    append wa_fieldcat to i_fieldcat.
    ENDFORM. " fill_field
    *& Form call_fm
    text
    --> p1 text
    <-- p2 text
    FORM call_fm.
    v_repid = sy-repid.
    LC_GLAY-EDT_CLL_CB = 'X'.
    CLEAR ls_event_exit.
    ls_event_exit-ucomm = gc_refresh. " Refresh
    ls_event_exit-after = 'X'.
    APPEND ls_event_exit TO lt_event_exit.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = v_repid
    I_CALLBACK_PF_STATUS_SET = g_status_set
    I_CALLBACK_USER_COMMAND = g_user_command
    I_CALLBACK_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_END_OF_LIST = ' '
    I_STRUCTURE_NAME =
    I_BACKGROUND_ID = ' '
    I_GRID_TITLE =
    I_GRID_SETTINGS = LC_GLAY
    IS_LAYOUT =
    IT_FIELDCAT = i_fieldcat
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
    IT_EVENTS =
    IT_EVENT_EXIT = lt_event_exit
    IS_PRINT =
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    IT_ALV_GRAPHICS =
    IT_ADD_FIELDCAT =
    IT_HYPERLINK =
    I_HTML_HEIGHT_TOP =
    I_HTML_HEIGHT_END =
    IT_EXCEPT_QINFO =
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    T_OUTTAB = i_makt
    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_fm
    FORM USER_COMMAND *
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield. "#EC CALLED
    data i_RSPARAMS like RSPARAMS occurs 0.
    CASE R_UCOMM.
    WHEN '&IC1'.
    read table i_makt index rs_selfield-tabindex.
    SET PARAMETER ID 'MAT' FIELD i_makt-matnr.
    if not i_makt-matnr is initial.
    call transaction 'MM02' and skip first screen.
    endif.
    when '&REFRESH'.
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
    EXPORTING
    CURR_REPORT = v_repid
    IMPORTING
    SP =
    TABLES
    SELECTION_TABLE = i_RSPARAMS
    EXCEPTIONS
    NOT_FOUND = 1
    NO_REPORT = 2
    OTHERS = 3
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    submit z_get_refresh with selection-table i_RSPARAMS.
    rs_selfield-refresh = 'X'.
    ENDCASE.
    MOVE '&REFRESH' TO r_ucomm.
    ENDFORM.
    FORM set_pf_status *
    FORM SET_PF_STATUS USING rt_extab TYPE slis_t_extab.
    DELETE Rt_extab WHERE fcode = gc_refresh.
    SET PF-STATUS 'STANDARD_FULLSCREEN' OF PROGRAM 'SAPLKKBL'
    EXCLUDING Rt_extab.
    *SET PF-STATUS 'STANDARD' EXCLUDING rt_extab.
    SET TITLEBAR sy-tcode.
    ENDFORM.

  • How to limit the number of rows in a smart form , sap script.

    Can anyone tell me how to limit the number of rows in the output of a sap script/smart form. I have tried "protect/endprotect" in sap script but have no idea of how to do in smart form. In sap script the only way it has happened is by reducing the size of the main window.

    Hi,
    In Smartform also, why dont you try reducing the size of the window if you want to limit the rows in it. Also if you are printing Line Items in a LOOP, you can write
    LOOP AT T_ITAB FROM 1 TO N in the LOOP Node if you know how many records exactly you want to display in 1 Page processing.
    regards,
    Mahesh

  • How to make valuation type field not changeable  in delivery tab of PO

    Hai friends,
                    I am new to badis..please guide me to solve the issue...
    how to make valuation type field not changeable  in delivery tab of PO...
    The field shd be in display mode only ...actually...there  a badi has been used before
    to get valuation type from a ztable depending on material and plant...
    Now ..my requirement is that the user shd not change the default value brought from the ztable...

    Hi SRINIVAS,
    You can achieve this from BADI only if BADI is allows you to do this. You cannot achieve everything from a BADI. Check if there is any expoting field in the methods that can be ticked for making the field in display mode. If not then you cannot achieve this from BADI.
    The field you want to default to display is a standard or zfield. If z, then you can changethe attribute of the screen field to Output only.
    Regards,
    Manish

  • How to insert the new field to standard scheduling agreement script form.

    Hi Gurus,
    how to insert the new fields to standad sheduling agreement script form. its a need for me, i want to display the AEDAT field in scheduling agreement form ,
    The below one is my requirement,
    ex:-   Itu2019s requested the change of Scheduling Agreement printout. Itu2019s requested for this type of   document, the insertion, into the field u201CData Emissionu201D into the print, of the document last modify date instead of the document creation date. (This change will be done only for position change into the Scheduling Agreement). No change into the PO.
    Change SAPSCRIPT printout. Introduction, into the Scheduling Agreement, of last modified  
          document date (field EKPO-AEDAT).
    Thanks & Regards
    chinnu

    open TNAPR table and give the output type you need to modify.... get the print program name and check if some structure already have the date you wanted... if you have it already... then open the form in SE71 tr. and provide the strcuture name - feild in the position you want to have the date...
    se71--->
    &<str. name>-AEDAT&

Maybe you are looking for