Field label of a CUF in SC item basic detail screen

Hello all
We're on SRM 5.0 with SRM Server 4.0 SP08.
I added a customer field (CUF) in SC item by adding and activating an append structure in INCL_EEW_PD_ITEM_CSF_SC and in INCL_EEW_PD_ITEM_CSF. I also implemented BAdI BBP_CUF_BADI_2 in order to set this CUF to visible / read only.
When adding an item to my SC and navigating to the item basic details screen, the CUF is showing up properly EXCEPT that its label on the left hand side corresponds to the technical field name in my append structure... and it shows up in capital letters as well.
Is there any possibility to influence the labeling of CUF's ? I mean without the need of a modification?
Any useful hints appreciated!
Renaud

Hi
As Disha told, <u>Using <b>SE11</b> transaction, you need to make changes to Custom Data Element (Short/Medium/Lon Description) you are using in the Append Structure of the INCL (Includes) and make the changes there to reflect on the Shopping cart screen.</u>
Let me know incase you need any other details.
Regards
- Atul

Similar Messages

  • What is Field Label ? and  where do we use it .

    What is Field Label ? and  where do we use it .

    Hi,
    You can assign text information to a data element with the field labels.
    The field labels are used to display a screen field. You can copy structure components and table fields from the ABAP Dictionary to the input template when you define a screen in the Screen Painter (Get from Dict. function). You can also assign a field a field label that is derived from the data element of the field.
    The text of the field label can be translated centrally with the translation tools. The text is then displayed in the input template in the user’s logon language.
    Short, Medium and Long Field Labels
    Keywords of different lengths for identifying screen fields. Since the space available for such texts depends on the input template, you can define the text information in three different lengths.
    A maximum length must be assigned for each field label. It is the upper limit for the lengths of all translations of the given text. The maximum length of the field label therefore should be somewhat longer than the given text in the original language.
    Headers
    This text is used as a column header when you output the contents of fields as a list in the Data Browser. It can also be assigned to a field in the Screen Painter.
    A maximum length must also be assigned for the header. It is the upper limit for the lengths of all translations of the header. Choose the maximum length of the header to be somewhat longer than the given text in the original language. Also note that the header is often displayed above the corresponding column when preparing list output. The length of the header therefore should not exceed the length of the data element.
    Short Field Label
    Definition
    One of the following:
    - Short field label
    - Medium field label
    - Long field label
    Can be assigned as prefixed text to a screen field referring to the ABAP Dictonary. The text is displayed on the screen in the logon language of the user (if the text was translated into this language).
    A heading can be defined to output the field values in lists. This heading is automatically included in the list header row, in the logon language.
    Medium Field Label
    Definition
    One of the following:
    - Short field label
    - Medium field label
    - Long field label
    Can be assigned as prefixed text to a screen field referring to the ABAP Dictonary. The text is displayed on the screen in the logon language of the user (if the text was translated into this language).
    A heading can be defined to output the field values in lists. This heading is automatically included in the list header row, in the logon language.
    Long Field Label
    Definition
    One of the following:
    - Short field label
    - Medium field label
    - Long field label
    Can be assigned as prefixed text to a screen field referring to the ABAP Dictonary. The text is displayed on the screen in the logon language of the user (if the text was translated into this language).
    A heading can be defined to output the field values in lists. This heading is automatically included in the list header row, in the logon language.
    Heading
    Definition
    One of the following:
    - Short field label
    - Medium field label
    - Long field label
    Can be assigned as prefixed text to a screen field referring to the ABAP Dictonary. The text is displayed on the screen in the logon language of the user (if the text was translated into this language).
    A heading can be defined to output the field values in lists. This heading is automatically included in the list header row, in the logon language.
    Thanks,
    Reward If Helpful.

  • What does Field Label tab does in Data element properties

    Hi,
    Please explain What does Field Label tab does in Data element properties. It has following interface:
                     Length              Field Label
    Short       
    Medium
    Long
    Heading
    Thanks!
    ~Sid
    Max Points for precise answers

    Hi
    <b>Short Field Label</b>
    Definition
    One of the following:
    - Short field label
    - Medium field label
    - Long field label
    Can be assigned as prefixed text to a screen field referring to the ABAP Dictonary. The text is displayed on the screen in the logon language of the user (if the text was translated into this language).
    A heading can be defined to output the field values in lists. This heading is automatically included in the list header row, in the logon language.
    <b>Medium Field Label</b>
    Definition
    One of the following:
    - Short field label
    - Medium field label
    - Long field label
    Can be assigned as prefixed text to a screen field referring to the ABAP Dictonary. The text is displayed on the screen in the logon language of the user (if the text was translated into this language).
    A heading can be defined to output the field values in lists. This heading is automatically included in the list header row, in the logon language.
    <b>Long Field Label</b>
    Definition
    One of the following:
    - Short field label
    - Medium field label
    - Long field label
    Can be assigned as prefixed text to a screen field referring to the ABAP Dictonary. The text is displayed on the screen in the logon language of the user (if the text was translated into this language).
    A heading can be defined to output the field values in lists. This heading is automatically included in the list header row, in the logon language.
    <b>Heading</b>
    Definition
    One of the following:
    - Short field label
    - Medium field label
    - Long field label
    Can be assigned as prefixed text to a screen field referring to the ABAP Dictonary. The text is displayed on the screen in the logon language of the user (if the text was translated into this language).
    A heading can be defined to output the field values in lists. This heading is automatically included in the list header row, in the logon language.
    <b>Reward If Usefull</b>

  • XML Output - Issue with multiple field labels.

    Dear Users,
    I am trying to create an XML sheet as output for my program, and am struck at a point where I don't need field labels appearing on the XML output.
    The code looks as below:
          l_element_order = l_document->create_simple_element(
                name = 'Order'
                parent = l_element_ordertype ).
          l_value = it_order-aufnr.
          l_rc = l_element_order->set_attribute( name = 'AUFNR' value = l_value ).
    On my output though, both the field labels 'Order' and 'AUFNR' appear side by side. I would ideally only want the 'Order' label to appear.
    Is there a method through which I can suppress the labels?!
    I am using the following classes as a part of the code:
    DATA: l_ostream         TYPE REF TO if_ixml_ostream,
          l_ixml            TYPE REF TO if_ixml,
          l_streamfactory   TYPE REF TO if_ixml_stream_factory,
          l_renderer        TYPE REF TO if_ixml_renderer,
          l_document        TYPE REF TO if_ixml_document,
          l_value           TYPE string.
    Would be much appreciated if someone could help me with this please. Thanks!
    Vijay

    Hi,
    recipent list is filled once,there are no loops in the program, and the SOST shows two same items with some have same time stamp and some have difference of a second.
    Regards
    Govind

  • How to left aligned fields label of panel form

    hi am in jdeveloper 11.1.1.6.0, how can i left aligned fields label of panel form

    this is my form,where must i put this af|panelFormLayout::label-cell {text-align: left;}
    <af:panelFormLayout id="pfl6">
        <af:inputText value="#{bindings.Username.inputValue}"
                      label="     Username"
                      required="#{bindings.Username.hints.mandatory}"
                      columns="#{bindings.Username.hints.displayWidth}"
                      maximumLength="#{bindings.Username.hints.precision}"
                      shortDesc="#{bindings.Username.hints.tooltip}" id="it26">
          <f:validator binding="#{bindings.Username.validator}"/>
        </af:inputText>
        <af:inputText value="#{bindings.Firstname.inputValue}"
                      label="    Firstname"
                      required="#{bindings.Firstname.hints.mandatory}"
                      columns="#{bindings.Firstname.hints.displayWidth}"
                      maximumLength="#{bindings.Firstname.hints.precision}"
                      shortDesc="#{bindings.Firstname.hints.tooltip}" id="it21">
          <f:validator binding="#{bindings.Firstname.validator}"/>
        </af:inputText>
        <af:inputText value="#{bindings.Surname.inputValue}"
                      label="     Surname"
                      required="#{bindings.Surname.hints.mandatory}"
                      columns="#{bindings.Surname.hints.displayWidth}"
                      maximumLength="#{bindings.Surname.hints.precision}"
                      shortDesc="#{bindings.Surname.hints.tooltip}" id="it28">
          <f:validator binding="#{bindings.Surname.validator}"/>
        </af:inputText>
        <af:inputText value="#{bindings.Initials.inputValue}"
                      label="    Initials"
                      required="#{bindings.Initials.hints.mandatory}"
                      columns="#{bindings.Initials.hints.displayWidth}"
                      maximumLength="#{bindings.Initials.hints.precision}"
                      shortDesc="#{bindings.Initials.hints.tooltip}" id="it20">
          <f:validator binding="#{bindings.Initials.validator}"/>
        </af:inputText>
        <af:selectOneChoice value="#{bindings.Titlecode.inputValue}"
                            label="    Title"
                            required="#{bindings.Titlecode.hints.mandatory}"
                            shortDesc="#{bindings.Titlecode.hints.tooltip}"
                            id="soc6">
          <f:selectItems value="#{bindings.Titlecode.items}" id="si12"/>
        </af:selectOneChoice>
        <af:selectOneRadio value="#{bindings.Gender1.inputValue}"
                           label="     Gender"
                           required="#{bindings.Gender1.hints.mandatory}"
                           shortDesc="#{bindings.Gender1.hints.tooltip}" id="sor6">
          <f:selectItems value="#{bindings.Gender1.items}" id="si17"/>
        </af:selectOneRadio>
        <af:inputText value="#{bindings.Identitynumber.inputValue}"
                      label="    Identitynumber"
                      required="#{bindings.Identitynumber.hints.mandatory}"
                      columns="#{bindings.Identitynumber.hints.displayWidth}"
                      maximumLength="#{bindings.Identitynumber.hints.precision}"
                      shortDesc="#{bindings.Identitynumber.hints.tooltip}"
                      id="it25">
          <f:validator binding="#{bindings.Identitynumber.validator}"/>
        </af:inputText>
        <af:inputDate value="#{bindings.Dateofbirth.inputValue}"
                      label="    Dateofbirth"
                      required="#{bindings.Dateofbirth.hints.mandatory}"
                      shortDesc="#{bindings.Dateofbirth.hints.tooltip}" id="id3">
          <f:validator binding="#{bindings.Dateofbirth.validator}"/>
          <af:convertDateTime pattern="#{bindings.Dateofbirth.format}"/>
        </af:inputDate>
        <af:selectOneRadio value="#{bindings.Statuscode.inputValue}"
                           label="#{bindings.Statuscode.label}"
                           required="#{bindings.Statuscode.hints.mandatory}"
                           shortDesc="#{bindings.Statuscode.hints.tooltip}"
                           id="sor5">
          <f:selectItems value="#{bindings.Statuscode.items}" id="si7"/>
        </af:selectOneRadio>
        <af:inputText value="#{bindings.Emailaddress.inputValue}"
                      label="#{bindings.Emailaddress.hints.label}"
                      required="#{bindings.Emailaddress.hints.mandatory}"
                      columns="#{bindings.Emailaddress.hints.displayWidth}"
                      maximumLength="#{bindings.Emailaddress.hints.precision}"
                      shortDesc="#{bindings.Emailaddress.hints.tooltip}" id="it22">
          <f:validator binding="#{bindings.Emailaddress.validator}"/>
        </af:inputText>
        <af:inputText value="#{bindings.Termsandconditions.inputValue}"
                      label="#{bindings.Termsandconditions.hints.label}"
                      required="#{bindings.Termsandconditions.hints.mandatory}"
                      columns="#{bindings.Termsandconditions.hints.displayWidth}"
                      maximumLength="#{bindings.Termsandconditions.hints.precision}"
                      shortDesc="#{bindings.Termsandconditions.hints.tooltip}"
                      id="it24">
          <f:validator binding="#{bindings.Termsandconditions.validator}"/>
        </af:inputText>
        <af:selectOneChoice value="#{bindings.Branch.inputValue}"
                            label="#{bindings.Branch.label}"
                            required="#{bindings.Branch.hints.mandatory}"
                            shortDesc="#{bindings.Branch.hints.tooltip}" id="soc5">
          <f:selectItems value="#{bindings.Branch.items}" id="si11"/>
        </af:selectOneChoice>
        <af:inputComboboxListOfValues id="office1Id"
                                      popupTitle="Search and Select: #{bindings.Office1.hints.label}"
                                      value="#{bindings.Office1.inputValue}"
                                      label="#{bindings.Office1.hints.label}"
                                      model="#{bindings.Office1.listOfValuesModel}"
                                      required="#{bindings.Office1.hints.mandatory}"
                                      columns="#{bindings.Office1.hints.displayWidth}"
                                      shortDesc="#{bindings.Office1.hints.tooltip}">
          <f:validator binding="#{bindings.Office1.validator}"/>
        </af:inputComboboxListOfValues>
        <af:inputText value="#{bindings.Ausername.inputValue}"
                      label="#{bindings.Ausername.hints.label}"
                      required="#{bindings.Ausername.hints.mandatory}"
                      columns="#{bindings.Ausername.hints.displayWidth}"
                      maximumLength="#{bindings.Ausername.hints.precision}"
                      shortDesc="#{bindings.Ausername.hints.tooltip}" id="it23">
          <f:validator binding="#{bindings.Ausername.validator}"/>
        </af:inputText>
        <af:inputText value="#{bindings.PractitionerNumber.inputValue}"
                      label="#{bindings.PractitionerNumber.hints.label}"
                      required="#{bindings.PractitionerNumber.hints.mandatory}"
                      columns="#{bindings.PractitionerNumber.hints.displayWidth}"
                      maximumLength="#{bindings.PractitionerNumber.hints.precision}"
                      shortDesc="#{bindings.PractitionerNumber.hints.tooltip}"
                      id="it27">
          <f:validator binding="#{bindings.PractitionerNumber.validator}"/>
        </af:inputText>
      </af:panelFormLayout>

  • Field Label Change

    Hi,
    I want to change the Field Labels
    How to do this, If any body knows plz tell the steps
    I Look forward to your reply
    Thanks
    SEK

    Hi Raja,
        WA_FIELDCAT-FIELDNAME = 'EBELP'.
        WA_FIELDCAT-COL_POS = '2'.
        WA_FIELDCAT-JUST = 'C'.
    <b>    WA_FIELDCAT-SELTEXT_L = 'Item Number'.</b> ( Here you can change the field lables )
        WA_FIELDCAT-LOWERCASE = 'X'.
        WA_FIELDCAT-EDIT = 'X'.
        APPEND WA_FIELDCAT TO IT_FIELDCAT.
    Thanks
    Vikranth Khimavath

  • Merge field label of two fields in ALV report

    Hi,
    Greetings of the day !!
    I have a requirement to create a ALV report and the alv report has three fields(say F1, F2, F3). Where F1 and F2 fall under same category and i need to have single field label for both these fields.
    How can I merge the field label of the fields F1 and F2?
    Pl. share your knowledge regarding this.
    Thanking you.
    Regards,
    Raghu

    Hi Jodeswara Rao,
    I need to display a ALV report with fields F1, F2 and F3. But F1 and F2 should have same field Label.
    Header 1
    Header 3
    F1
    F2
    F3

  • Field Label in ALV Header

    Hello
    Is there a way to use the field label in the header of a ALV grid?
    I am currently using a hard coded solution, and i know it's not good.
    form buildfieldcat .
      clear wa_fcat.
      refresh it_fcat.
      wa_fcat-col_pos = '1'.
      wa_fcat-tabname = 'KNA1'.
      wa_fcat-fieldname = 'KUNNR'. " I want to use the field label of this field in the header...
      wa_fcat-seltext_l = 'Customer Number'. " ...To not use this line.
      wa_fcat-outputlen = 15.
      wa_fcat-key = 'X'.
      wa_fcat-no_zero = 'X'.
    I hope my query was clear. Thanks a lot!

    Hi,
    If you want header columns from Dictionary field labels, instead of hardcoding, you can follow what fellow SDNs mentioned.
    Here is the solution.
    <li>define internal table like this.
    TYPES:
          BEGIN OF t_mard,
           werks TYPE mard-werks,
           lgort TYPE mard-lgort,
           matnr TYPE mard-matnr,
           insme TYPE mard-insme,
           einme TYPE mard-einme,
           speme TYPE mard-speme,
          END OF t_mard.
    DATA:
          w_mard TYPE t_mard.
    DATA:
          i_mard TYPE STANDARD TABLE OF t_mard.
    <li>Buidl fieldcatalog internal table like below . It works
      PERFORM build_fcat USING:
            "Field   Int Tab  ref field ref table
            'WERKS' 'I_MARD' 'WERKS'    'MARD',
            'LGORT' 'I_MARD' 'LGORT'    'MARD',
            'MATNR' 'I_MARD' 'MATNR'    'MARD',
            'INSME' 'I_MARD' 'INSME'    'MARD',
            'EINME' 'I_MARD' 'EINME'    'MARD',
            'SPEME' 'I_MARD' 'SPEME'    'MARD'.
    *&      Form  BUILD_FCAT
    FORM build_fcat  USING  l_field l_tab ref_field ref_tab.
      w_fieldcat-fieldname     = l_field.
      w_fieldcat-tabname       = l_tab.
      w_fieldcat-ref_fieldname = ref_field.
      w_fieldcat-ref_tabname   = ref_tab.
    *  w_fieldcat-seltext_m    = l_text.
      APPEND w_fieldcat TO i_fieldcat.
      CLEAR w_fieldcat.
    ENDFORM.                    " BUILD_FCAT
    <li> You can check program [here|http://hr-abap-freeeducation.blogspot.com/2008/04/alv-list-display_17.html]
    I hope that it solves your problem.
    Thanks
    Venkat.O

  • Order value fields by field label in the profitability analysis document

    Hello,
    I am displaying a profitability analysis document and I want to order the value fields by their technical name (VV001, VV002, VV003...) instead of in alphabetical order (the system orders them by the field label).
    Is it possible?
    Thank you very much
    Bea

    Hello,
    Check in KE4M whether sd condition type FKLMG  is mapped corresponding value field in COPA.As you are getting the value for other company codes, this setting should be there.
    You can also try checking simulation of billing document transfer through KE4ST. Check the details analysis
    thanks
    Hari

  • How do I create visible field labels in a pdf form that can be overwritten by text? I have tried add

    I am creating a very straight forward fillable form and want to add a description of each field that can be visible to the user, but goes away when the person enters the appropriate data in the field. I have tried to suggested custom scripts. The script command were: if (!event.value) event.value = event.target.name; and
    if (!event.value) {event.value = event.target.name; event.target.display = display.noPrint;} else {event.target.display = display.visible;}. Both allow the lables to be visible but neither allow the user to either replace the label with the relevant information and if it does, then the replacing data does not print/remain viewable.
    I am confident this is doable as I have seen forms that say something like "add your name here" and when you enter the data that field label is replaced with the information I enter.

    Hi George,
    I have tried this. What I get is a field label, and I can type into the field, but the label does not go away and the page prints blank. Should I try: if (!event.value) {event.value = event.target.name; event.target.display = display.Print;} else {event.target.display = display.visible;}, removing the .noPrint?
    You have no idea how frustrating it is to try this and have such a simple function not work. Is there anothe script I can try?

  • How to pass the text from a table to the field label on the selection scre

    hi guru's
      i have requirement were in i have to pass the text from a table as field label for
       a input field on the selection screen.
      EX:    selection screen  
                (xxxxxxx )  __________   
                field label    
      please help 
    regards,
    vara

    hi all,
    can you please check the code, and suggest am i doing wrong any were.
    types: xtab(200).
    data : ttab type table of xtab,
    w_so type xtab.
    data: routine(32) value 'TEMP_ROUTINE',
    program(8),
    message(128),
    line type i.
    AT SELECTION-SCREEN OUTPUT.
    select field text DATA_ELEMENT from zauthgrptxt into table t_fieldlabel where STARALLOWED EQ c_asteriks.
    DESCRIBE TABLE t_fieldlabel LINES N.
    w_so = 'REPORT ZTEMP_PROGRAM.'.
    append w_so to ttab.
    w_so = 'FORM TEMP_ROUTINE.'.
    append w_so to ttab.
    loop at t_fieldlabel.
    w_field = t_fieldlabel-field.
    CONCATENATE 'SELECT-OPTIONS: ' ' P_' w_field zspace ' FOR ' ' T_FIELDLABEL-' w_field ' NO INTERVALS NO-EXTENTION.' INTO w_so.
    append w_so to ttab.
    endloop.
    w_so = 'ENDFORM.'.
    append w_so to ttab.
    generate subroutine pool ttab name program
    message message
    line line.
    if sy-subrc = 0.
    perform (routine) in program (program).
    else.
    write:/ Message.
    endif.
    The sy-subrc = 4. nothing is coming into 'program' at generate subroutine pool
    very urgent requirement please help
    thanks,
    vara

  • Add ECC Custom Fields in CRM Web UI ERP Order item

    hi all,
    i have to Add ECC Custom Fields in CRM Web UI ERP Order item .
    I have :
    -  add the field on Web UI Screen.
    -  add the field on structure  TDS_item_COMV  and  TDS_item_COMC in ecc
    -  insert record for field on LORD_MAPPING table
    -  implemented badi BADI_LORD_DO_PA BADI_LORD_GET_INPUT_MODE.
    -  implemented method GET_I_S_STRUCT on crm with  :
    CASE COMPONENT.
        WHEN 'ZZSPOND'.
          RV_DISABLED = ABAP_False.
    endcase.
    - on method  do_prepare_output i have change value of fields with code :
    lr_loop = typed_context->erpadmini->collection_wrapper->get_first( ).
    WHILE lr_loop IS BOUND.
    posnr = lr_loop->get_property_as_string( iv_attr_name = 'POSNR' ).
    Does the current item has to be set for "Sponda Idraulica"?
    READ TABLE Z5CL_GSA_TOOL0001=>GT_ITEMS_SPOND INTO ls_spond
                                  WITH KEY posnr = posnr.
    IF sy-subrc = 0.
    lr_loop->set_property_as_string( iv_attr_name = 'ZZSPOND' iv_value = 'X' ).
    DATA : V_X TYPE STRING.
    V_X = lr_loop->get_property_as_string( iv_attr_name = 'ZZSPOND' ).
    ENDIF.
    lr_loop = typed_context->erpadmini->collection_wrapper->get_next( ).
    ENDWHILE.
    I can't change the field  value  because it is "not changeble"  .
    Can you help me ?
    Thanks in advance.

    Hi Celi,
    I have created some fields at header level of ERP Order, and the user is available to change them, replicating the information to SAP ECC (using interface LORD II). 
    All sales item information is treated using RFC ERP_LORD_GET_ITEM_MULTI, available in SAP ECC. 
    Please check the following point:
    If those structures below were expanded with your custom fields:
    SAP CRM:
    CRMST_L2_ITEM_COMV
    CRMST_L2_ITEM_COMC
    CRMTT_ADMINI_ERPIL
    CRMTT_ADMINI_I_ERPIL
    SAP ECC:
    TDS_RFC_ITEM_COMV
    TDS_RFC_ITEM_COMC
    Please check if for your scenario is necessary to implement the enhancement BADI_LORD_DO_PAI method ADD_SUPPLY_LIST. The code below works for header level.
      DATA: ls_supply TYPE tds_field_supply.
      IF iv_object_id EQ 'HEAD'.
        IF iv_module EQ 'VBAK_BEARBEITEN'.
          ls_supply-field = 'ZZCCINS'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZCCNUM'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZCCNAME'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZAUNUM'.
          APPEND ls_supply TO ct_supply.
        ENDIF.
      ENDIF.
    I hope it helps!
    Kind Regards!

  • Adding new fields in Item details screen in VA01 tcode

    Hi all,
    My requirement is to add custom fields in 'Additional Data B' tab of VA01 transaction.
    That is, after entering the material and quantity, if i double click tat material, it goes to item details screen. In taht, 'Additional data B' tab is there with no fields.
    Now i want to add fields in that.. Is it possible?
    Is there any exit for adding custom fields under that tab?
    Pls tell me the procedure..
    Regards,
    Shanthi

    The process for Additional Data B, whether header or item level, is simple... 
    First, add the data elements to VBAK (header) or VBAP (item), in a customizing append.  The accepted practice is to name your fields beginning ZZ, with the appropriate or custom data element/domain.
    Then on Additional Data B screens, already named in this thread, create whatever is needed.  For instance, you might want to add a subscreen that contains a group of fields with the DDIC-specific captions.
    If you simply need a field, you can place the field (like VBAK-ZZMYFIELD).   SAP will then manage updates to the database for you....no need to do anything to see that the data gets copied into the tables.
    In one instance, I saw a pushbutton added that resulted in calls to screens with table controls, etc., essentially an entire subsystem called by pressing that button....

  • Include Field Labels in GUI_Download

    How do I include field labels in GUI_DOWNLOAD (I am using it to download an Excel file from an internal table)?  I see a table called fieldnames but when I add fields to that table they system only shows the first field.  How can I show a label for each row, in Excel?
    See the code below:
    wa_fade_fields-posid = 'Project#'.
      wa_fade_fields-poski = 'Phase Code'.
      wa_fade_fields-usr02 = 'WBS Element'.
      wa_fade_fields-txt04 = 'Status'.
      wa_fade_fields-sakto = 'Cost Elem'.
      wa_fade_fields-vrsen = 'Vsn'.
      wa_fade_fields-wrttp = 'VT'.
      wa_fade_fields-planned_hours = 'Planned Hours'.
      wa_fade_fields-arbei = 'Current Hours'.
      wa_fade_fields-ismnw = 'JTD Hours'.
      wa_fade_fields-etc = 'Estimate to Complete'.
      wa_fade_fields-variance = 'Variance'.
      wa_fade_fields-percent = 'Percent'.
      INSERT wa_fade_fields INTO TABLE it_fade_fields.
    *Fade table
      CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                    =
        filename                        = d_fullpath
    *   FILETYPE                        = 'ASC'
    *   APPEND                          = ' '
        write_field_separator           = 'X'
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
        dat_mode                        = 'X'
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    *   WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
    *   SHOW_TRANSFER_STATUS            = ABAP_TRUE
    * IMPORTING
    *   FILELENGTH                      =
      TABLES
        data_tab                        = it_fade
       fieldnames                      = it_fade_fields
    * EXCEPTIONS
    *   FILE_WRITE_ERROR                = 1
    *   NO_BATCH                        = 2
    *   GUI_REFUSE_FILETRANSFER         = 3
    *   INVALID_TYPE                    = 4
    *   NO_AUTHORITY                    = 5
    *   UNKNOWN_ERROR                   = 6
    *   HEADER_NOT_ALLOWED              = 7
    *   SEPARATOR_NOT_ALLOWED           = 8
    *   FILESIZE_NOT_ALLOWED            = 9
    *   HEADER_TOO_LONG                 = 10
    *   DP_ERROR_CREATE                 = 11
    *   DP_ERROR_SEND                   = 12
    *   DP_ERROR_WRITE                  = 13
    *   UNKNOWN_DP_ERROR                = 14
    *   ACCESS_DENIED                   = 15
    *   DP_OUT_OF_MEMORY                = 16
    *   DISK_FULL                       = 17
    *   DP_TIMEOUT                      = 18
    *   FILE_NOT_FOUND                  = 19
    *   DATAPROVIDER_EXCEPTION          = 20
    *   CONTROL_FLUSH_ERROR             = 21
    *   OTHERS                          = 22
    Regards,
    Davis

    I think the problem might be with the WORK AREA structure, the work area which contains the description should be atleast 50 characters long so that it can accomodate all the characters...
    Declare it something like this
    DATA: BEGIN OF excel_schedule OCCURS 0,
            refno(50),
            ebelp(50),
            etenr(50),
            eindt(50),
            menge(50),
            ameng(50),
          END OF excel_schedule.
    Ok there is another simple way of doing this
    Use GUI_DOWNLOAD twice and the second time you just append it to the existing first file...
    SAmple code
    DATA: BEGIN OF excel_schedule OCCURS 0,
            refno(50),
            ebelp(50),
            etenr(50),
            eindt(50),
            menge(50),
            ameng(50),
          END OF excel_schedule.
    * Download to Workstation the Description Fields of error schedule file
      CALL FUNCTION 'GUI_DOWNLOAD'"
        EXPORTING
         filename                        = w_lstring
         filetype                        = 'ASC'
         write_field_separator           = 'X'
        TABLES
          data_tab                        = excel_schedule
       EXCEPTIONS
         file_write_error                = 1
         no_batch                        = 2
         gui_refuse_filetransfer         = 3
         invalid_type                    = 4
         no_authority                    = 5
         unknown_error                   = 6
         header_not_allowed              = 7
         separator_not_allowed           = 8
         filesize_not_allowed            = 9
         header_too_long                 = 10
         dp_error_create                 = 11
         dp_error_send                   = 12
         dp_error_write                  = 13
         unknown_dp_error                = 14
         access_denied                   = 15
         dp_out_of_memory                = 16
         disk_full                       = 17
         dp_timeout                      = 18
         file_not_found                  = 19
         dataprovider_exception          = 20
         control_flush_error             = 21
         OTHERS                          = 22
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    * Download to Workstation the error schedule file
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = w_lstring
          filetype                = 'ASC'
         append                  = 'X'
          write_field_separator   = 'X'
        TABLES
          data_tab                = t1_eschedule
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    use the append property of GUI_DOWNLOAD the second time

  • Rename the Field Label  in the sales order application.

    Hi,
              Please suggest me how to rename one of the field name in the sales order application.
            I have add a new field called YOUR_REF_SHIP and simultaneously have to  rename it from your reference to Carrier Account No. this field  is available in the filed group SLO_DETAILS_GENERAL1.
             This field is located in the General data tab of the sales order application.
    I have created the Text Key in the Define Interface Texts and used the same text key in the Rename Field Label, but it is not working.
    and i dont want to change it with the CMOD transaction.
    Please suggest me where i have went wrong.
    Thanks.
    Anilkumar

    Hello Anil,
    The field groups are to be regenerated.
    However, I have done a similar thing and in the past, the layout generation helped me. In the recent example, the name is not reflected as per the interface text.
    Let me know if you find anything on this.
    Regards
    Priyanka

Maybe you are looking for