Checkbox field in REUSE_ALV_GRID_DISPLAY without creating additional field

Hi Experts,
I want to show checkboxes in ALV without adding an additional checkbox field in my structure. OO-ALV will also do.......
Plz Help........

hi check this...
REPORT Z_TEST7 .
*Table declaration
tables: vbak,vbap.
*internal table
data: begin of i_sales occurs 0,
vbeln like vbak-vbeln,
erdat like vbak-erdat,
audat like vbak-audat,
kunnr like vbak-kunnr,
vkorg like vbak-vkorg,
matnr like vbap-matnr,
netpr like vbap-netpr,
check type c, "checkbox
end of i_sales.
type-pools: slis.
data: v_fieldcat type slis_fieldcat_alv,
gt_fieldcat type slis_t_fieldcat_alv,
gt_layout type slis_layout_alv,
gt_sort type slis_sortinfo_alv,
fieldcat like line of gt_fieldcat.
*Selection screen
parameters: p_vkorg like vbak-vkorg.
select-options: s_vbeln for vbak-vbeln.
*start of selection.
start-of-selection.
perform get_data.
perform fill_fieldcatalog.
perform write_data.
FORM get_data .
select avbeln aerdat aaudat akunnr avkorg bmatnr b~netpr into
corresponding fields of table i_sales from vbak
as a inner join vbap as b on avbeln = bvbeln
where a~vkorg = p_vkorg and
a~vbeln in s_vbeln.
ENDFORM. " get_data
FORM write_data .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = sy-repid
IS_LAYOUT = gt_layout
IT_FIELDCAT = gt_fieldcat
TABLES
T_OUTTAB = i_sales .
ENDFORM. " write_data
FORM fill_fieldcatalog .
sort i_sales by vbeln.
clear v_fieldcat.
"for check box
v_fieldcat-col_pos = 1.
v_fieldcat-fieldname = 'CHECK'.
v_fieldcat-seltext_m = 'chek'.
v_fieldcat-checkbox = 'X'.
v_fieldcat-input = 'X'.
v_fieldcat-edit = 'X'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 2.
v_fieldcat-fieldname = 'VBELN'.
v_fieldcat-seltext_m = 'Sales Document'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 3.
v_fieldcat-fieldname = 'ERDAT'.
v_fieldcat-seltext_m = 'Creation Date'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 4.
v_fieldcat-fieldname = 'AUDAT'.
v_fieldcat-seltext_m = 'Document Date'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 5.
v_fieldcat-fieldname = 'KUNNR'.
v_fieldcat-seltext_m = 'Customer'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 6.
v_fieldcat-fieldname = 'VKORG'.
v_fieldcat-seltext_m = 'Sales Organization'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 7.
v_fieldcat-fieldname = 'MATNR'.
v_fieldcat-seltext_m = 'Material'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
v_fieldcat-col_pos = 8.
v_fieldcat-fieldname = 'NETPR'.
v_fieldcat-seltext_m = 'Net Value'.
append v_fieldcat to gt_fieldcat.
clear v_fieldcat.
endform.

Similar Messages

  • HELP CREATING ADDITIONAL FIELDS  WITH  DROPDOWN IN STANDARD INFOTYPE

    HI ALL,
    I AM IN ABAP-HR.
    I HAVE 2 THINGS 2 ASK MY FRIENDZ..
    1). I WANT TO ENHANCE STANDARD INFOTYPE...
    I  WANT TO PUT ADDITINAL FIELD WITH DROPDOWN...
    I CAN PUT ADDITIONAL FIELD BUT I DONT KNOW HOW CAN I DO WITH DROPDOWN...
    2).
    OTHERTHING I WANT TO CHANGE THE TEXTFIELD OF STANDARD INFOTYPE..
    I MEAN 2 SAY CHANGE TEXT 'BIRTHDATE' TO 'DATE'..
    CAN U PLZ HELP ME OUT 4 THIS....
    WAITING 4 FAVOURABLE REPLY..
    BBYE..

    Hello Bhumit,
    1) to check how to bring values to a dropdown please refer the standard demo report programs in se38
    a)DEMO_DROPDOWN_LIST_BOX
    b)demo_dynpro_dropdown_listbox.
    2)We need to understand that if the field label 'BIRTHDATE' is from a standard screen then the approach is to go to that particular screen ...delete the text and put our own text there as 'DATE' ..otherwise if the field is a custom field we can change the name in the field level or domain level
    Pls check,revert and reward if helpful
    Regards
    Byju

  • While adding custom field in urgent change-Create new field button in AET is not coming

    Dear All,
    we have requirement to add some custom fields in urgent change document. while adding custom fields using AET, create new field button is not coming.
    Thanks in advance. points will be awarded.
    Rahul

    Hi Jignesh,
    Thanks for your valueble inputs, it really helped me to understand the process.
    I checked in Web UI configuration for urgent change document as you mentioned but still that button is not coming.
    In transaction BSP_WD_CMPWB, i have created enh. set: Z_ENHANCEMENT_SET.
    Can you tell what to selelect in application and page popup which comes after selecting Enhance component button. Actually i tried but i am not able to add new record in conf.
    Thanks in advance.

  • Create additional field in sales order item and copy to purchase order item

    Dear SAP Gurus,
    I am hoping that someone could help me by providing me with how to implement the following 2 requirements in the SD order and in the purchase order.
    1. I am wanting to add a custom field to the SD sales order item copying a value from the vendor customer master.
    2. I then want to add a custom field to the purchase order item and copy the value from my custom field in 1. to this new custom field..
    Can you please advise how I would go about implementing the above requirements?  I am assuming that there are exits to allow me to implement these 2 requirements.
    Many thanks
    Henry

    Hi,
    For the first requirement you can use the USEREXIT_MOVE_FIELD_TO_VBAP in report MV45AFZZ.
    For the second, as I think that you will create a RFQ you can try to use the enhancement MEREQ001.
    Regards,
    Eduardo

  • "Modified By" Field Value is same "Created By" field value after the workflow completion.Sp 2010 workflows

    Hi All,
    I have a work flow A attached to List List1
    I have Added an item(now created by and modified by are same)
    Next Person B modified
    Ideally created by value and modified by value should be different, but they are same after the workflow completion
    This is very strange as i am not modifying  modified by field any where
           Please let me know any one has faced similar problem
    Thanks
    Ravi
    Ravi

    The workflow will run as the person who initiated it. As such if the workflow starts when an item is created then it'll be running as the user who created the item.
    When the workflow changes anything the 'modified by' field will be updated to show the identity the workflow is running under. I think that explains your behaviour?
    To change it you could use an impersonation step but that would simply replace one name with another. I don't think you've got access to the 'SystemUpdate()' method in workflows which would allow you to avoid updating the modfiied by and modified date fields.

  • INFOSET - Checkbox to enable field text in  additional field

    Hi,
    as in the title I've created a custom infoset based on a logical DB (HR).
    I use to do that with SQ02 transaction.
    The problem take place when I mantain/create additional fields, I assign the correct field reference but I see always the checkbox of ID Text not editable. For the help I'm in report SAPMS38O dynpro 0180.
    I don't know if that is enough for a clear explanation.
    Sincerely I don't know why.
    Thanks for suggestions.

    Hello,
    in SAP standard program it is not possible to add field 'Text' in S_ALR_87012340 .
    Sorry
    Best Regards,
    Richard Pillinger

  • Additional field in SAP Infoset - internal table

    Hi Gurus,
    I have invoices like:
    VBELN    Matnr     mtart
    1234           Ek21    MCFE
    1234           Ek33    MCFE
    1234            Ek29    MCFE
    1234           321       MRM1
    1235          EK11      MCFE
    1235           EK17      MCFE
    3212           EK23      MCFE
    3212           EK33       MCFE
    How can create additional field in SAP infoset, what show in every line in invoice, that invoice have line with  mtart = u2018MRM1u2019 or mtart <> u2018MRM1u2019. Aim is to filter invoices with line mtart = MRM1
    VBELN    Matnr     mtart         result
    1234           Ek21    MCFE        1
    1234           Ek33    MCFE         1
    1234            Ek29    MCFE        1
    1234           321       MRM1        1
    1235          EK11      MCFE        0
    1235           EK17      MCFE       0
    3212           EK23      MCFE        0
    3212           EK33       MCFE       0
    How can create additional field in SAP Infoset?

    Hi Have you had any luck on this?

  • Additional field in infotype 0009 issue ( PBO and PAI )

    Hi Guru,
    I need your help please.
    I have a additional field in IT0009 and when I want created a new infotype 0009, I fill all field but after ENTER or SAVE all field are save in the layout but not the additional field.
    To save the additional field in the layout, I must fill it again and after the ENTER or SAVE the field is save in the layout.
    I have checked in the debbugger, when I create a new infotype 0009 it goes to the PBO but after ENTER or SAVE it doesn't go to the PAI so I must do it again ( fill the additional field and ENTER or SAVE ) and then it goes to the PAI.
    Thus I would like to know how I can make so that after the ENTER or SAVE the screen goes in PAI before the PBO and at the first time.
    Thanks very much in advance.
    Regards.

    Hi Srini Vas, hi Pedro Guarita and thanks for your reply,
    After more investigation, the probleme come from a check over country bank.
    In fact, the screen of the infotype 0009 must be adpated following the country bank but to do this, the standard module pool (mp000900) check if the country bank have changed.
    call method cl_hrpad00_iban=>process_iban_pai
          changing
            cs_bankdata = ls_bank_data_current
          exceptions
            error_iban  = 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.
        call method cl_hrpad00_iban=>get_bank_data_old
          importing
            bank_data_old = ls_bank_data_old.
        if ls_bank_data_current-banks <> ls_bank_data_old-banks. "MELN1357200
    bank country changed -> leave screen needs to be done
          leave_screen = 'X'.
        endif.
    But when you create a new infotype 0009, the ls_bank_data_old-banks is always initial. So when module pool compared the ls_bank_data_old-banks with the ls_bank_data_current-banks, those are always different.
    In conclusion, when you create a new infotype 0009 it is always mandatory to push ENTER before to fill any additional field because at each first time that the standard module pool go in the PAI, it make a leave screen.
    Thanks in advance for all yours reply.

  • Additional field in the sales order screen

    I need some additional field in the sales order screen. There is
      also no screen exit available for VA01. Can I use this
      additional data B tab in header details by creating additional
      field in it. Please tell me how to use this tab or how to get
      different field in the sales order (header or item level).

    Hi,
       Yes. You can use this screen. For this either can modify the table VBAP with additional fields and put them on this screen.
      You have to code your logic to save these values in the include MV45AFZZ. The subscreens you have to use for this are 4462 or 8459.
    refer Screen exits - Urgent.
    with regards,
    Vamsi

  • Sap query and additional fields.

    Hello guys.
    ABAP it's not my strong skill, but i need to develop some report.
    What i need:
    input: material, SLED, plant
    output: material, SLED, plant, values from characteristic field.
    I have created sap query with additional field type c.
    Below my code:
    TYPES: BEGIN OF charast,
            ATNAM(50)    TYPE c,
            ATWTB(8)     TYPE n,
            X(50)        TYPE n,
            C(50)        TYPE n,
            ATINN(50)    TYPE n,
            END OF charast.
    DATA: char TYPE TABLE OF charast WITH HEADER LINE.
    CALL FUNCTION 'VB_BATCH_GET_DETAIL'
       EXPORTING
         MATNR              = MCH1-MATNR
         CHARG              = MCH1-CHARG
         GET_CLASSIFICATION = 'X'
       TABLES
         CHAR_OF_BATCH      = char.
    LOOP AT char into TEST (This is an additional field type C.
       ENDLOOP.
    Questions:
    1. How i can return internal table into standard abap type, because i can create additional field only with standart types.
    2. Need i fetch exporting parameters before calling FM? Or sap query do it automatically, based on given values on selection screen of the report?
    3. How i can return only needed field from FM output? Now, when i'm executing FM via SE37 it's show desired result, but when i'm getting it from code i see strange values.
    4. If i don't know exactly return by an FM values, how i can fill structure dynamically?
    5. How i can return result of a program not only to additional field but to layout?
    Sorry for noob questions and thank you in advance guys!

    Well, seems like it work fine for me.
    Below my crappy, but working code:
    DATA: material TYPE MCHB-MATNR,
           batch    TYPE MCHB-CHARG,
           plant    TYPE MCHB-WERKS,
           sloc     TYPE MCHB-LGORT,
           gtdt     TYPE STANDARD TABLE OF clbatch,
           gtdit    TYPE clbatch.
    SELECT MATNR INTO material FROM MCHB
       WHERE MATNR = MCHB-MATNR.
    ENDSELECT.
    SELECT CHARG INTO batch FROM MCHB
       WHERE CHARG = MCHB-CHARG.
    ENDSELECT.
    SELECT WERKS INTO plant FROM MCHB
       WHERE WERKS = MCHB-WERKS.
    ENDSELECT.
    SELECT LGORT INTO sloc FROM MCHB
       WHERE LGORT = MCHB-LGORT.
    ENDSELECT.
    CALL FUNCTION 'VB_BATCH_GET_DETAIL'
       EXPORTING
         MATNR = material
         CHARG = batch
         WERKS = plant
         GET_CLASSIFICATION = 'X'
        TABLES
          CHAR_OF_BATCH = gtdt.
    READ TABLE gtdt INTO gtdit
       WITH KEY atnam = 'BATCH_SHELF_LIFE_EXPIRY_DATE'.
    GTD = gtdit-ATWTB.

  • Multiple Value in additional fields using SAP Query

    HI All,
    I have a question related additional field in SAP Query. I tried to create report about PR and PO using SAP Query. Since one PR can be converted to multiple PO, I decided to create additional field
    po_1
    to display the value of PO that related to the PR. But I meet problem when I want to show several PO number in additional field
    po_1
    , I couldn't look the way to solve this problem. Can anybody help me? Just for info, I assign value to additional field
    po_1
    in record processing part.
    Thanks....

    HI,
    IN SQ02, IF table is already in JOIN, just click on the PLUS sign to expand the strcture.
    All the field showing Plus sign in the strcture are selected in your query and with MINUS sing are no selected.
    So you have to just click on the MINUS sign for the field you want to use through table field.
    Generate the query and execute thriugh SQ01.
    If you want to add some other field which is not a part of JOIN,
    then click on EXTRAS Button shown in the MENU option.
    Click on Create button and system will ask abt the additional field.
    Regds,
    Anil

  • BW - additional field in infoset

    Hi all ,
    I used data source with infoset and I added additional field into infoset . But additional fields did not come to the data source selection screen ( Field list screen ).  Is there a way to do this ?
    Can anyone help me ?
    Thnks a lot ..

    Thnks for answers ,
    I have just do that but there is no hided field . I haven't see the additional field  there already.
    I think it 'll more clear if  I tell about what am I doing step by step ;
    First , I created infoset in SQ01 with joinig tables LIKP -  LIPS .Then I added some additional field ; I collect different value from another table . Then I create field group called " ADD" in infoset and assigned additional fields that I created to "ADD " . Finally generate and saved infoset .
    Second , in RSO2 I create data source and joined with infoset . Then comes to selection filed screen .  Here was my problem ; there were no field that I added to infoset ,additional fields didn't appear
    Can I  explain it ?
    Thnks for help ..

  • SQ02 - Ad Hoc Query - Custom additional fields

    HI experts
    I am working additional fields in SQ02 .
    I added a new additional field for an info type in SQ02.
    Issue is when I right click on my additional field I can see options 'Only value' but for other fields I can see ' only value ' , 'only text' and ' value and text' .
    When creating the new field in SQ02, the check box "Determine LIKE reference using text field" is disabled.
    Is there is configuration somewhere or any other way, where I can also get the text for the custom additional field?
    I can see that this question has been asked earlier, but there are no responses.
    Also on SAP documentation, this field is shown as enabled.
    But I cant get the text for a additional field working. Please coyu post your suggestions?
    Thanks,
    Vaishali

    Hello Srini,
    Thank you for your time.
    Consider the additional field SYHR_A_P0001_AF_PL_CTRY (country) in Infotype 0001 in the infoset.
    This field does not populate any country code or text for us, so I need to create a custom additional field that will have the same functionality.
    I have created two new additional fields - Z_Country_Code and Z_country_text in additional fields section of IT0001.
    One field fetches country code and other fetches the text corresponding to this code.
    What I want to achieve is the standard functionality that is available for standard fields - P0001-WERKS for example.
    In the query output, you could select to display text/code/ text and code.
    For the additional field "Country", I have to select two separate fields - Z_Country_Code and Z_country_text  to achieve the same  functionality.
    How can I achieve this?
    When we define a custom additional field, in the field definition section, there is a check-box "Determine LIKE reference using TEXT FIELD" , but this is disabled when I create the additional fields. Perhaps, if this is enabled, then I can define the text table.
    Any ideas how to enable this text box?
    Vaishali

  • Connection MESG and INOB with additional field

    Hi friends,
    i'm beginner in ABAP and for this reason i create reports in ABAP query.
    So i create query between tables MSEG and INOB (then INOB with AUSP).
    In INOB-OBJEK - value is matnr and charg,
    but value in this field is: for example 
    matnr                    charg
    EK759064BK (8 free spaces) 0000000066
    EK759064BK (8 free spaces) 0000000067
    EK759064BK (8 free spaces)  0000000068
    EK759064BK (8 free spaces)  0000000069
    EK759064BK (8 free spaces) 0000000070
    My idea is to create additional field with MSEG-MATNR and MSEG-CHARG and relate with INOB-OBJEK
    (concatenate mseg-matnr mseg-charg into refkey.) 
    result is:
    EK759064BK0000000066
    EK759064BK0000000067
    EK759064BK0000000068
    EK759064BK0000000069
    EK759064BK0000000070
    Now my question is how to change code and create additional field like INOB-OBJEK, how to change my code so i have 8 free spaces between MATNR and CHARG?
    Edited by: Marin Lyubomirov on Dec 13, 2009 9:39 AM

    the ABAP keyword CONCATENATE has a parameter RESPECTING BLANKS
    So if you use this this parameter, then you would get the missing 8 spaces, because the material number field is 18 long and your material only 10 long.
    Alternative, just use an own field that is 8 long and do the concatenation like this :
    concatenate mseg-matnr myfield mseg-charg into refkey

  • Additional field required in CIN  master data

    Dear All,
    In Vendor Master CIN details - Service Tax Registration Number field exist. we require one additional field for catogary of
    service of vendor for capturing thro' category.Please let us know how to provide one additional field to capture vendor Service Tax catagory.
    The requirement has come up to capture the nature of Services rendered by the Vendor as per Service Tax law for providing details to Govt.
    Presently, in J1ID we are capturing the CIN details of Service Tax Registration Number. If it is not possible to capture in CIN details do we have any blank field which we can utilise for this purpose in the Vendor Master. Please suggest
    Do revert
    Regards

    Hi
    hope you are maintaining the CIN data in J1ID transaction and same tab is available in vendor master record.  if you are maintaining this or not.
    if you not displaying this data in vendor master.  then maintain user id in transaction "OMT3E"  in user screen reference.
    then check your CIN details button in vendor master record. 
    please let me know if any information you want recording this.
    Regards
    Ram

Maybe you are looking for