Displaying variable no. of fields for different records

Hi,
I have the requirement of displaying variable no of fields for different type of record in the business object.How can this be done in VC. For example i have to show an extra field for country "IN"
Thanks in advance,
Regards,
Anupam

Hi Anupam,
Please explain ur requirement more clearly.
If understanding is right ,you are creating a Table/Form with the information of a particular company ,and u r interested to add another column to this table and this column should not be visible when to select another company. Am I right?
What is the data source is it a BAPI or Query or Query View?
1)Drag and drop a table from the Query(if suppose).Or form if u want to include in the form.
2)And if u want another field(if it is to be calculated) in ur table u can have include an expression box by clicking a "+" sign in the table and specify the formula for it in the Expression field uder the Data source field in the General Tab.
3)And if u want to hide this field when u select another country then u can set a visibility condition.
4)Go to control properties window of the new field.U can get this by selecting the new added field and by clicking on configure or by left clicking the new field and then selecting the properties.
5)Inside the General Tab, u have UI Control,below that u have Hidden which is a check box, just check it.And click on condition. Then type the condition for it to be hidden.Then it is hidden.
Please try doing the above.
Reward me with points if its helpful.
Thanks,Regards,
Sripriya Srinivasan.

Similar Messages

  • How to display the selection screen fields for selected checkboxes

    Hi all,
             I have 7 checkboxes, for each check box we have some seletion screen fields.if i select first check box,i want to display first slection screen fields only.
    and if we select more than one check box how to display the selection screen fields for selected check boxes,please help me this
    Thanks
    sriman.

    hi,
    Try this code
    report z_13317_sdn2.
    tables : mara, marc, dd03l.
    parameters : p_chk1 as checkbox user-command ABC,
                 p_chk2 as checkbox user-command PQR,
                 p_chk3 as checkbox user-command XYZ.
    select-options : s_matnr for mara-matnr modif id A,
                     s_ersda for mara-ersda modif id A,
                     s_werks for marc-werks modif id B,
                     s_lvorm for marc-lvorm modif id B,
                     s_tab for dd03l-tabname modif id C.
    data: v_chk1,
          v_chk2,
          v_chk3.
    at selection-screen output.
      loop at screen.
        if screen-group1 = 'A' or
           screen-group1 = 'B' or
           screen-group1 = 'C'.
            screen-input = 0.
           modify screen.
        endif.
      endloop.
      loop at screen.
        if v_chk1 = 'X'.
          if screen-group1 = 'A'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
        if v_chk2 = 'X'.
          if screen-group1 = 'B'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
        if v_chk3 = 'X'.
          if screen-group1 = 'C'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
      endloop.
    at selection-screen.
      if sy-ucomm = 'ABC'.
        if v_chk1 = ' '.
          v_chk1 = 'X'.
        else.
          v_chk1 = ' '.
        endif.
      endif.
      if sy-ucomm = 'PQR'.
        if v_chk2 = ' '.
          v_chk2 = 'X'.
        else.
          v_chk2 = ' '.
        endif.
      endif.
      if sy-ucomm = 'XYZ'.
        if v_chk3 = ' '.
          v_chk3 = 'X'.
        else.
          v_chk3 = ' '.
        endif.
      endif.
    Regards,
    Sailaja.

  • Additional Field for Condition Record ..............

    Hi Gurus
    Plz read the Question Properly
    I know that for adding a new field as key field for condition record , one needs to append the structure( main ) KOMPAZ so that the field appears in KOMP structure .
    Say want Shiiping Point as one of fields in Condition Records. ....VSTEL field
    Now when the field appears in KOMP , then we can CREATE CONDITION RECORD FOR THE SAME
    FOR EG: *SALES ORG - DISTRIBUTION CHANNEL-CUSTOMER-SHIPPING POINT-MATERIAL..... BASED MATERIAL PRICING
    WHAT I FAIL TO UNDERSTAND
    1.WHY WE PASS SHIPPING POINT ( VSTEL) FIELD FROM LIKP -VSTEL TABLE TO NEW FIELD DEFINED.
    2.LIKE SALES ORG/ DISTRIBUTION CHANNEL ALSO ARE DEFINED IN ENTERPRISE STRUCTURE AND VALUE IN CONDITION RECORD IS PICKED FROM THERE ONLY, WHY NOT SHIPPING POINT.
    WHY THIS ??????....
    Supply the new field you defined by including the following source code line in
    USEREXIT_PRICING_PREPARE_TKOMP:
    MOVE xxxx-VSTEL TO TKOMP-ZZVSTEL.
    In order processing you find the user exit in Include MV45AFZZ, and in billing document processing you find it in Include RV60AFZZ.
    Regards
    Rohit

    > Plz read the Question Properly
    I read the question properly ;-).
    > WHAT I FAIL TO UNDERSTAND
    >
    > 1.WHY WE PASS SHIPPING POINT ( VSTEL) FIELD FROM LIKP -VSTEL TABLE TO NEW FIELD DEFINED.
    The first thing you need to understand is that the condition records value is not based upon the the enterprise structure which you have defined. Rather it will pick value from the sales documents which we have created. The reason behind including this LIKP-VSTEL is that only, Just imagine, where you are using condition records??? in Sales order, in delivery, in billing..... and based on the data passed in these documents your condition records will be populated.
    Again for example : you have maintained record for Sales org 1000, DC 10, division 00 shipping point 1000 then the record will come into the document provided the document should fulfill these all.
    I hope this will make you understand this.
    > 2.LIKE SALES ORG/ DISTRIBUTION CHANNEL ALSO ARE DEFINED IN ENTERPRISE STRUCTURE AND VALUE IN CONDITION RECORD IS PICKED FROM THERE ONLY, WHY NOT SHIPPING POINT.
    No the records are only coming from the Sales documents. only.
    Thanks,
    Raja

  • Change the content of a field for a record in table

    Dear guru ,
    i know that there is chance to change the content of a field for a record in table using SE16 for the table involved and debugging.
    Can you explain me the flow to run this ?
    Thanks.

    >
    CONS  SAP wrote:
    > Dear guru ,
    > i know that there is chance to change the content of a field for a record in table using SE16 for the table involved and debugging.
    > Can you explain me the flow to run this ?
    > Thanks.
    Hi CONS SAP,
    You can use se16n transaction. This is very user friendly trnasaction. You may use it like this:
    1) Start transaction SE16n.
    2) Type the table name and press ENTER.
    3) Type the string "&sap_edit" into the command line and press Enter.
    4) Enter your selection criteria and press F8.
    Now you can easily change/delete/add the lines you want and then save.
    All Changes are recorded in the tables SE16N_CD_DATA and SE16N_CD_KEY.
    But I would request you to keep in mind the suggestions from Vijay Babu Dudla
    >
    Vijay Babu Dudla wrote:
    > if you are trying on some test table then it is ok. but don't update any transactional data like that. it is not good practice.
    >
    Many regards,
    Ravi.

  • Forms personilization - show different color in a field for all records

    Hi All,
    In forms personilization am trying to achieve the below one.
    Example:
    When querying for a person name with 'A%' and then say find, new form opens with the result.
    Say it has 10 records where person names starts with 'A'. If salary >5000, show different color to that person names field.
    As per the condition say 4 record satisfies. The requirement is when showing the result in new form with 10 records, need that 4 person nameso achieve (4 records) to be in different color. But I am able to achieve for 1st record, there after only if we navigate to other records and condition satisfies color is appearing.
    Let me know is there any possibility to achieve this.
    Thanks,
    Vinoth

    Hello,
    If it is tabular block and you want to fill only one item's color. Then then post query trigger should work. And you will have need to set through SET_ITEM_INSTANCE_PROPERTY built-in like this...
    Trigger = POST-QUERY (BLOCK-LEVEL)
    IF Your_Condition THEN
      SET_ITEM_INSTANCE_PROPERTY('BLOCK_NAME.ITEM_NAME',CURRENT_RECORD,VISUAL_ATTRIBUTE,'VISUAL_ATTRIBUTE_NAME');
    ELSE
      SET_ITEM_INSTANCE_PROPERTY('BLOCK_NAME.ITEM_NAME',CURRENT_RECORD,VISUAL_ATTRIBUTE,'VISUAL_ATTRIBUTE_NAME');
    END IF;-Ammad

  • Show different key fields for different caracteristics in the column.

    Hi, experts
    I am creating a query where there are 4 colomns reprensenting 4 different dates. But I would like to display diffferent key fields for them. For example, under DAY 1, i would like to diplay KeyField 1, for DAY2, DAY3 and DAY4, KeyField 2 et 3 will be added under them.
    To do that, i made these key fields "Constant selection" and made some definition in the cells-------
    On the line of DAY1 in the colomn KeyField 2 and KeyField 3, I made them "Always Hide".
    But I didn't get what i wanted as the two columns (KF2 et KF3) still appear in the report, even if there are no data in these two columns.
    Is it possible to realise this requirement:
    DAY1   DAY2          DAY3
    KF1     KF2    KF3   KF2     KF3
    Thanks in advance!!!!

    There is no need to define a cell for this, use a restricted key figure:
    KF1 needs to be restricted by Day1
    KF2 restrict it by Day2 and so on,
    and use those restricted figure in the key figure section, but to make the column more descriptive use a text variable for the name of the columns.
    this should be easier than cell definition.
    thanks.
    Wond

  • Select query on key field for different time format

    Hello Experts,
    I am working in Sender ABAP proxy <===> SAP PI 7.31 JAVA <===> Oracle database.
    Oracle Database stores all records of material sold where the date is maintained in 01/15/2010 01:48:20 which has date and time format.
    In ECC , I will be sending a proxy request with system date as the only field and this would be key field to select all the material records sold for 01/15/2010 in Oracle Database i.e. Select statement.As we can observe that the system data of ECC does not have time stamp.
    I am clueless how to get this done in Message Mapping or in some way? If I maintain just the date stamp of ECC as the key field, would I be
    able to fetch all the records from Database?
    Regards
    Rebecca

    Dear Hareesh and Harish,
    Ooopps the names are confusing. but very close..
    Yes I changed my receiver structure and added <compareOperation> under the key field Material Number. In the Message Mapping , I assigned a constant EQ to <compareOperation>.
    Now tested the proxy will value of Material with no 100 , expecting a response from database for Material 100. But getting error as below.
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SAP:Category>XIProtocol</SAP:Category>  
    <SAP:Code area="PARSING">GENERAL</SAP:Code>  
    <SAP:P1 />  
    <SAP:P2 />  
    <SAP:P3 />  
    <SAP:P4 />  
    <SAP:AdditionalText />  
    <SAP:Stack>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Message 53cc7fab-e712-0b20-e100-8000ac10134c(OUTBOUND) expired. at com.sap.aii.adapter.soap.web.SOAPHandler.processSOAPtoXMB(SOAPHandler.java:746) at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:505) at  
    I am not sure whether there was any response from database.
    I am close to end of this thread..
    Please guide.
    Regards
    Rebecca

  • How do you create a form that has user permissions per form field for different user?

    I need to create a form that is used by multi people but each user needs to fill out different fields within the form. I need the first user to make selections from a list and save it to send to another (the selection fields then need to be locked). Then the other user checks one of the selections made by the first user and saves the document to send back to the first user. Not sure if this is possible. I would like the first form field selections not to even show as a highlighted field to the other user (like just be more like a text field). I want the document to be able to be used more than once. The list selections will change and need to be sent to the other user at least once a month or more. Has anyone done this?

    There's no built-in way to do that, but it's probably doable using a custom-made script to hide and/or lock the fields.

  • Why does iTunes display the same album art for different songs, but from the same artist?

    Hi,
    a couple of days ago I decided I wanted all of my songs to have an album art. Before I didn't actually care, but since I discovered the view mode with the album arts at the top (the fourth one) I began searching for the right arts, since I like it this way.
    I've stumbled upon a problem though. When I add two or more songs from the same artist, iTunes chooses to assign the same album art to the songs. It chooses the album art of the song I added first to my music library. How do I get it to show the proper album art?
    I use a program called 'Mp3Tag' to change all the information of my songs. When it's just a single, I end up having an 'artist', 'title', 'genre' and 'cover'. The rest of the information doesn't bother me. With albums I add more information though.
    Here's an example:
    I added two songs, one being 'Usher - Climax (Kaskade Remix)' and the other one being 'Usher - Scream'. The one added first was 'Scream'. As you can see below, iTunes somehow assigns the same album art to both songs, while clicking on 'get info' clearly shows the songs have different album arts.
    I discovered something else though:
    When adding an 'album name' to the songs, they will show properly, as seen below. The thing is though, I don't want to add an album name. When I sync the songs to my iPod, my 'albums' list will show all of the songs as well, which I don't want.
    Is there any way to solve this another way where iTunes won't sort by album, but by song title?
    Thanks in advance.

    Can anyone please answer my question?

  • How to display Attachments on OAF page for different entities

    Hi,
    I have a requirement where I have to create an attachment page to display the attachments dynamically at run time depending upon the values passed such as Entity Name, Primary Key values, Category Id values.
    I have a query to give me the attachments related data from the tables like fnd_documents_vl, fnd_attached_documents, fnd_document_entities, fnd_document_categories_tl.
    Now, as I read on the forum, I can make use of Oracle's seeded functionality on attachments and display attachments but in my requirement I don't have one specific entity. I have below query which gives data directly with respect to all entities from fnd tables. The name of entity and primary keys will come at run time. So, how can I make use of below query and display attachments in such a case?
    I am very new to OAf and any help will be really appreciated.
    Thanks in Advance,
    Shalini
    SELECT DISTINCT ad.attached_document_id
    ,ad.document_id AS document_id
    ,ad.last_update_date
    ,ad.last_updated_by
    ,u.user_name last_updated_by_name
    ,ad.entity_name
    ,ad.pk1_value
    ,ad.pk2_value
    ,ad.pk3_value
    ,ad.pk4_value
    ,ad.pk5_value
    ,decode(d.dm_node,
    NULL,
    (SELECT short_name
    FROM fnd_dm_nodes
    WHERE node_id = 0),
    0,
    (SELECT short_name
    FROM fnd_dm_nodes
    WHERE node_id = 0),
    node.short_name) location
    ,d.document_id document_id1
    ,d.datatype_id
    ,d.datatype_name
    ,d.description
    ,decode(d.file_name,
    NULL,
    (SELECT message_text
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code = userenv('LANG')),
    d.file_name) file_name
    ,d.media_id
    ,d.dm_type
    ,d.dm_node
    ,d.dm_folder_path
    ,e.data_object_code
    ,e.document_entity_id
    ,'ALLOW_ATTACH_UPDATE' allow_attach_update
    ,'ALLOW_ATTACH_DELETE' allow_attach_delete
    ,ad.category_id category_id
    ,cl.user_name attachment_category_name
    ,ad.status
    ,ad.creation_date
    ,(SELECT u1.user_name
    FROM fnd_user u1
    WHERE u1.user_id = ad.created_by) attached_by_name
    ,decode(d.datatype_id,
    5,
    nvl(d.title,
    d.description) || '(' ||
    substr(d.url,
    1,
    least(length(d.url),
    15)) || '...)',
    decode(d.datatype_id,
    6,
    nvl(d.title,
    d.file_name),
    decode(d.title,
    NULL,
    (SELECT message_text
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code =
    userenv('LANG')),
    d.title))) file_name_sort
    ,d.usage_type
    ,d.security_id
    ,d.security_type
    ,d.publish_flag
    ,cl.category_id category_id_query
    ,ad.seq_num
    ,d.url
    ,d.title
    FROM fnd_documents_vl d
    ,fnd_attached_documents ad
    ,fnd_document_entities e
    ,fnd_user u
    ,fnd_document_categories_tl cl
    ,fnd_dm_nodes node
    WHERE ad.document_id = d.document_id
    AND ad.entity_name = e.data_object_code(+)
    AND ad.last_updated_by = u.user_id(+)
    AND cl.LANGUAGE = userenv('LANG')
    AND cl.category_id = nvl(ad.category_id,
    d.category_id)
    AND d.dm_node = node.node_id(+)

    Hi Peddy,
    Thanks a lot for your guidance. I tried implementing the code in PR but I am stuck at one error. I am not able to programmatically add a new Entity ID and its attributes at run time. To make it more clear: In Jdev I created an Entity and its mappings at design time. Now, I am able to use getEntitymappings() and setEntityMappings() to modify the attributes of exiting Enity but I am not able to add/append new Entity ID to the existing one. It throws - java.lang.ArrayIndexOutOfBoundsException: 1 error.
    Please any one review the below code snippet and let me know whether I am missing something to make it work.
    Below is the Code that I have written so far:
    ====================================================
    OAAttachmentTableBean attBean = (OAAttachmentTableBean)webBean.findChildRecursive("attachTable");
    Dictionary[] entityMaps = attBean.getEntityMappings();
    entityMaps[0].remove("entityId");
    entityMaps[0].put("entityId","OE_ORDER_HEADERS");
    entityMaps[0].remove("insertAllowed");
    entityMaps[0].remove("updateAllowed");
    entityMaps[0].remove("deleteAllowed");
    entityMaps[0].put("insertAllowed", false);
    entityMaps[0].put("updateAllowed", false);
    entityMaps[0].put("deleteAllowed", false);
    // Adding Second Entity
    // Getting ArrayIndexOutOfBoundsException at below line. As i saw that getEntityMappings() returns only array of size :1 and that is teh reason I am getting error, so How can I increase the size dynamically to add new Entity or is there any other way?
    entityMaps[1].put("entityId", "XX_LINK_ENTITY"); // entity id
    entityMaps[1].put("showAll", false); // show all property
    entityMaps[1].put("insertAllowed", false);
    entityMaps[1].put("deleteAllowed", false);
    entityMaps[1].put("updateAllowed", false);
    // Adding Primary Key to Second Entity
    String[] pkAttrNames = new String[1];
    pkAttrNames[0] = "Pk1Value"; // pk view attribute name
    entityMaps[1].put("pkColumns", pkAttrNames);
    // Setting Category Values for first Entity
    Integer CatValue = 1000486;
    Integer[] categories = new Integer[2]; // categories
    categories[0] = new Integer(1);
    categories[1] = CatValue;
    // Setting Category Values for Second Entity
    Integer[] categories2 = new Integer[1]; // categories
    categories2[0] = new Integer(1); //MISC
    attBean.setEntityMappings(entityMaps);
    attBean.setDynamicCategoriesMap("OE_ORDER_HEADERS",categories);
    attBean.setDynamicCategoriesMap("XX_LINK_ENTITY",categories2);
    Thanks & Best Regards,
    Shalini

  • Multiple display formats for several records coming from the same table

    Hello all,
    I want to create one Crystal Reports XI report to display several records coming from one table, but I need different display format for different records from that one table.
    There is a field RecordType and based on that value, the record will be displayed differently on the report page.
    Can I have several sections in the report and to define different SQL query in each of them?
    Example of the report I need to see on paper:
    ================================================
    Summary of 216 vehicles:  (the value 216 comes from record with RecordType=1)
    Vehicle Category    Number of Vehicles
              A                   5          (this value 5 comes from record with RecordType=2)
              B                   7          (this value 7 comes from record with RecordType=3)
              D                   4          (this value 4 comes from record with RecordType=4)
    Category A vehicle numbers:
    2345   6789   8765   5543   3452    (these five values come from records with RecordType=5)
    Category B vehicle numbers:
    9876   8876   9987   4321   6754   5215   4543    (these values come from records with RecordType=6)
    Category D vehicle numbers:
    2343   2344    2348   2377    (these values come from records with RecordType=8)
    ==============================================================
    Text is fixed (labels), number values are coming from table records.
    What would be a good way to do this in Crystal Reports XI ? In Cognos ReportNet, I would just create several Queries (SQL sentences) and place their outputs on a page, one after the other.
    I use Crystal Reports XI R2 and Oracle 10g database through and ODBC connection.
    Thank you,
    Milan

    Obaid and Debi,
    Thank you for your replies.
    I can create multiple sections in the report, but I don't know how to split the 20 records that I get back from the database to be displayed in 5 different report sections.
    How can I define different SQL statement for each of 5 report sections?
    How can I use cross-tabs to display what I need? Can I define SQL statement for each cross-tab and then I could place only RecordType=1 records into cross-tab-1 and all RecordType=2 records into cross-tab-2 ?
    In Cognos ReportNet, I defined 2 Queries (SQL statements) and I just placed them in the report one below the other. Query_1 returns 1 record where RecordType value =1. Query_2 returns 5 records where RecordType value =2 and etc. So each record "section" displays record in the way I want it.
    ================================
    Summary of 216 vehicles:  (the value 216 comes from record where RecordType=1)
    Category A vehicle numbers:
    2345   6789   8765   5543   3452    (these values come from records where RecordType=2)
    ================================
    How can I do that in Crystal Reports XI ?
    How can I run several SQL statements from one report?
    Thank you,
    Milan

  • Displaying Single Datablock field in Multiple Record Data Block

    Hi all
    I have a master detail block for cash transaction recording.
    Master Table name CahMaster and datablock contains columns Cash Bill No, Date, Customer ID, Misc Freight Charges.
    Detail Table name is CashDetail and datablock includes product id, product name, unit price, quantity, return, discount and Disc Overall. Number of records to be displayed in this block are 10.
    Now I want to Display Disc Overall field for one time only which is also a database field.
    I have used to set its properties to be displayed for one time only. It apprantlelly solved the problem.
    But when I used to execute query to see the previous records,
    Disc Overall field does not show the records till I move or Mouse click the last record of any cashdetail record.
    Any solution, thanks in advance!!!
    With Best Regards
    Thunder2777

    The layout of my cash detail is as follow to give you better undrstanding
    Prod_ID Prod_Name Qty Unit Price Return Disc Total per Record
    Total Qty --- Total Return ---- Sub Total ----
    Disc Overall ----- Grand Total ----
    I calculate cash Detail as following
    Total per Record = ((Qty - Return) X Unit Price) - Disc (Discount)
    Disc (Discount) is further calculated through When Validate trigger at item level which is (totalPrice * Disc)/100
    Total Per Record is a display field just to display the total.
    There are 4 other Displays fields e.g Total Qty, Total Return, Sub Total and Grand Total
    Totoal Qty, Total Return and Sub Total uses the sum fuction of block to calculate the sum of these three columns. Sub Total sum the Total Per Record field /column.
    Grand total again uses the when validate trigger at item level to calculate the grand total which is Grand Total = Sub Total - Disc Overall.
    Disc Overall = Subtotal - (subtotal * Disc Overall ) / 100
    That' s why I have asked to display the Discont Overall field for ONE TIME only as it is the discount which is applied to overall total.
    With Thanks
    Thunder2777

  • Read-only report for two records

    I have a table that has two records per one parent record.
    I want to display these two records on a page containing read-only fields (items) of the parent record.
    I was thinking of just having two regions each of which would perform a SELECT to pull it's respective record.
    Would I have to create fields for each record to load the fields into and then make each field be read-only?
    I did this to load one of the records into a form:
    select field1, field2 into px_field1, px_field2 where...
    I just wondered if there was an easier way other than creating two sets of fields to hold each record.
    I tried some of the canned reports using the wizard. Easy enough to pull the two records but the formatting goes a mile to the right and this page is to be used for printing.
    Thanks,

    semaphore,
    Have you considered using a Master Detail form. The forms have record navigation and the detail columns of the form can be altered to Display As Standard Report Column making them read only. As well, the Master part of the form can also be configured to be read or display only.
    Jeff

  • Please add fields for IMs in Ovi Contacts!

    I know the user can add whatever in notes. still, fields for different IMs will be so helpful!!  Now the contacts in ovi looks like a temp incompleted backup...
    Please! 

    yes!
    especially considering the fields DO exist on the handset (N97) they are just not synced or not displayed in Ovi-Suite.
    Pathetic. But, alas, no less pathetic than the rest of OVi-Suite.
    Ever seen a black lemon? They turn black when they rot. My N97 is black. 'nuff said

  • Table cntrol field to be display/Change only For each record

    Hi all,
    How to set a particular Field in table control either as display only or
    change only for <b>each row</b> based on certain condition.I need to set this property for each record in table control not for the entire coloumn?.I know the procedure for setting up an entire coloumn in table control either as diplay or change only using <b>Loop at screen</b> statement.
    Conditions:
    If Material is batch managed:
    itab-batch field has to be <b>Display only</b> mode.
    if material is not batch managed:
    itab-batch field has to be <b>change mode</b>.
    <b>O/p of Table Control :</b>
    Material     Batch
    1000         Display only
    2000        Change only
    8000        Change only
    3500        Display only
    3600        Display only

    Hi Ravi,
              Thanks for your reply.I have put the code as u said. It is modifying the whole coloumn insted of  modifying Current row of the coloumn.
    I have tried to modify the screen property using  Table control attributes (TC-COLS).The following commented code is that logic.Even that also doing the same thing.Can yoy please tell me how to do it.
    MODULE tc_get_lines OUTPUT.
    LOOP AT SCREEN.
        IF screen-name = 'X_ZPINV-CHARG'.
          IF fg_batch = ' '.
            screen-input = 0.
          ELSE.
            screen-input = 1.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    LOOP AT tc-cols INTO tc_wa
      WHERE screen-name = 'X_ZPINV-CHARG'.
       IF x_zpinv-matnr IS NOT INITIAL.
         CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
           EXPORTING
             input  = x_zpinv-matnr
           IMPORTING
             output = v_matnr.
         SELECT SINGLE * FROM marc WHERE matnr = v_matnr
         AND werks = w_plant.
         IF marc-xchar IS INITIAL.
           tc_wa-screen-input = 0.
         ELSE.
           tc_wa-screen-input = 1.
         ENDIF.
         MODIFY tc-cols FROM tc_wa INDEX sy-tabix."    transporting screen-input
       ENDIF.
    ENDLOOP.
    ENDMODULE.                    "TC_GET_LINES OUTPUT

Maybe you are looking for

  • Macbook Pro mid 2012 2.9GHz i7 RAM and Hard drive upgrade

    Hi, I was thinking about getting a new Macbook Pro but thought it would be cheaper to just upgrade it myself. 1) I wanted to remove the optical drive as I rarely use it. Then add a second hard drive in there to give myself more memory. 2) Remove the

  • No audio on my DVD slideshow

    I have iDVD 3. I followed all steps, and included audio with my slideshow from iPHOTO. In preview the song plays, but after burning, I only have the slideshow. I tried on my computer and a DVD player. New to all of this and I have a brain injury, so

  • How to get change log for z-fields in VBAk(Sales order)

    Hi All, Please help me in this. My requirement is get the change log for z-fields in sales order. In the sales order header level we have one tab Additioanl data. In this we have z-fields, if we change any of the field value, it is accepting the same

  • HT1329 Can i transfer my ipod to my itunes library?

    I have cd's on my ipod that I would like to copy to my library in Itunes.  Is this a simple task?

  • Set-up Dynamic time series

    Hi, I have just tried to activate dynamic time series members in the outline. In the outline I can now see "Active time series members: Y-T-D behind the dimension name "Periode". I was in the assumption that new Y-T-D members would be created. But th