TableControl: Check of marked line?

Hi there,
I have a problem with programming a table control in a z-transaction.
I want to have a table control for selecting a transport request position... So it can only be selected one single line. I have defined a mark-column for this. The table is a global table in my program and I've generated the table control with the wizard from screen editor.
But now I have the problem that I have to validate that the user selects exactly one line (ok, more than one is not possible by TC). But how can I implement this? I've tried to implement a module in PAI that makes a READ on the global table with key MARK = 'X'.
If nothing is found, it shall bring an error-message.
But my problem is now that the dynpro isn't anymore editable after this error-message, so the user has no chance to really check one line after getting the error.
Here my coding:
PROCESS AFTER INPUT.
* Verlassen des Dynpros via Exit-Command
  MODULE exit_dynpro AT EXIT-COMMAND.
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TC_TB_POS'
  LOOP AT gt_tb_pos.
    CHAIN.
      FIELD gs_tb_pos-mark.
      MODULE modify_tc ON CHAIN-REQUEST.
    ENDCHAIN.
  ENDLOOP.
  MODULE tc_tb_pos_user_command.
*&SPWIZARD: MODULE TC_TB_POS_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE TC_TB_POS_CHANGE_COL_ATTR.
  MODULE check_mark.
MODULE modify_tc INPUT.
  MODIFY gt_tb_pos FROM gs_tb_pos INDEX tc_tb_pos-current_line.
ENDMODULE.             
MODULE check_mark INPUT.
  READ TABLE gt_tb_pos
    INTO gs_sel_pos
    WITH KEY mark = 'X'.
  IF sy-subrc NE 0.
    MESSAGE e002(zh).
  ENDIF.
ENDMODULE. 
Thanks a lot for hints
Regards
Markus
Edited by: Markus Glubka on Jul 18, 2008 10:38 AM

Hi,
you create one column for check boxs in table control. for examle
table control containing 5 line items . if will click on 2 line or anywhere ,u can read that line only . go through bellow code.
process ofter input.
module read_table_control2 input.
*&      Module  read_table_control2  INPUT
      text
module read_table_control2 input.
read table ivbrk into temp_ivbrk index tabc_102-current_line.
  if sy-subrc = 0 .
    modify ivbrk index tabc_102-current_line transporting  indic.
  else.
    append ivbrk.
  endif.
endmodule.                 " read_table_control2  INPUT
_other wise**_
creat index in table control.
module read_table_control input.
*&      Module  read_table_control  INPUT
      text
module read_table_control input.
  if index = 'X'.
    iexport-index = index.
    modify iexport index tabc_101-current_line  transporting  index.
  endif.
endmodule.                 " read_table_control  INPUT
this way u can read table conrtrol which line u want.
Regards,
Ramya

Similar Messages

  • Automatically checking the subject line (AppleScript?)

    Hi All
    My organisation has implemented protective marking of email - basically all email must have a standard classification phrase embedded in the subject line. I have writtten an applescript which will automatically create a clean new message window in Mail with the appropriate configuration - that's easy. I want to roll this out to other Mac users also, and I want to make it robust. The problem is that if users forget to mark their email it won't get out past the server.
    What I want to do is to automatically check all outgoing email (preferably sent in the usual way by hitting the Send button), to make sure the subject line is appropriately marked. If it isn't then the mail should be held up and the user should be prompted to add the required marking. I had hoped to be able to do this via a rule - check the subject line for the marking - and if absent run an applescript to add it.
    Is this possible? My attempts have failed - everything seems to be geared towards incomeing or received email. Are there better ways? I have no experience developing plugins for mail - are there any templates out there?
    Thanks in advance
    Dave Mitchell

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    See also http://kb.mozillazine.org/Find_bar_opens_when_typing_in_textbox

  • Correct the marked line items in F-03

    Hi Experts,
    While using Tcode F-03 clear GL account  we are getting Error as Clear the marked line itmes. There were 4 lines with blue color ie. Foreign exchange difference a/c with zero value and we were not able to post the entry.
    How to overcome this issue.
    Thanks in advance
    Narayanan

    Dear:
                This is not an error. This is standard system configuration. System pop ups a message whenever there is some amount left as balance or arises to due foreign exchange difference in clearing transaction. You jst have to double clikc each line item with blue color and fill in the some as narration in text field. System does so to keep to let you keep track of partial invoices or exchange rate changes arising from time to time. Hope this will clear now.
    Regards

  • Availability check on schedule lines of contract

    Hi,
    We have maintained 2 line items (L1 and L2) with same material (M1) in contract. Also these two line items have schedule lines maintained.
    e.g.
    L1  :  S1,S2
    L2 :   S3,S4
    Now we create a sales order in reference to line item L1 and do an availability check.  The ATP does not show schedule lines for S1,S2 in availability overview. only S3,S4 quantities is taken into consideration for ATP calculation.
    We have activated availability check at schedule line level.
    Any pointers as to why S1,S2 requirements are not shown in availability overview
    P.S.  If we create a sales order in reference to line item L2 ,then the ATP does not show schedule lines for S3,S4 in availability overview. only S1,S2 quantities is taken into consideration for ATP calculation.
    Any pointers will be highly welcome.
    Thanks.

    Hi,
    Sorry, for Sch. AV check is not activated but TR is activated.
    For material ATP is activated- check in MM03
    Chidambaram

  • Want to know how to check for new line character in text file

    Hi All,
    I`m trying to read data from text file. However I`m not sure whether the data is in 1st line or nth line. Now I`m trying to read the text from the readline. But if text is "" and not NULL then my code fails. So I want to know how to check for new line character and go to next line to find the data. Please help.
    Thanks
    static int readandwriteFile(Logger logger,String filepath){
              BufferedWriter out = null;
              BufferedReader in = null;
              File fr = null;
              int get_count = 0;
              try     {
              if(new File(filepath).exists())
              fr= new File(filepath);
                        System.out.println("FileName: "+fr);
                   if(fr != null){
    in = new BufferedReader(new FileReader(fr));
                             String text = in.readLine();
                             if(text != null){
                             get_count = Integer.parseInt(text);
                             in.close();
                             else{
                                  get_count = 0;
         else{                    
    out = new BufferedWriter(new FileWriter(filepath));
         out.write("0");
                out.close();
                   }          //Reading of the row count file ended.
              catch(Exception e) {
                   e.printStackTrace();
              finally {
                   try{               if (in != null) {
                             in.close();
              if (out != null) {
                             out.close();
              catch(Exception e) {
                        e.printStackTrace();
              return get_count;
         }

    You are calling the readline() only once which means you are reading only the first line from the file...
    Use a loop (Do-While preferably)
    do{
    //your code
    }while(text == "")

  • F-53, Simulate time getting message "Correct the marked line items"

    Hi All,
    While posting the outgoing payment (F-53),  at time of simulate I'm getting the message " correct the marked line items" & missing the vendor side line item but showing for enter amont( bank acccount line items) on screen.
    when I trying to do the second time, I observed that, process open item screen, amount entered & Assiged amount both showing minus(-)sign
    I guess the message getting because of the same sing(-) of vendor item & bank account,
    Can some one help me out to understanding the why it showing same sign and reslove the issue
    Thanks
    Ramakanth

    Hi Ravi,
    Yes, I have posted FB60 and in FBL1N showing credit balance of vendor but when clearing F-53 suprisingly showing wrong side amount I mean assigned amount( open item).
    Is there any configuration missing or any thing i missing is system.
    Thank you
    Ramakanth

  • "Always Use Selected Format" check box in line items report

    Hi Experts,
    I have an issue in ECC 6.0.
    From the transaction code FBL1N (Vendor Line Items) I am trying to export the report to spreadsheet by selecting the option  List> Export>Spreadsheet  then I have selected "Always Use Selected Format" check box.  But if I execute the same report again I am not getting this option "Always Use Selected Format". Please let me how can we retrieve that option. Is there any possibility to get that option again either functionally or technically. I would like to know all the possible ways to get this option again.
    Please do the needful.

    Hello,
    In one my thread Mr. Frank has replied as follows. I believe he has solved this.
    Hope this may be really helpful.
    The problem with the spreadsheet download is at one point, users have selected their default file type.
    That said, SAPGUI is working as it should. (gui710)
    Question though is how do we reset the values so they get the ?Select Spreadsheet Format? popup again.
    The following steps should be performed :
    - Call transaction SE38, enter program SALV_BS_ADMIN_MAINTAIN, and press F8.
    - Follow the parameters below :
    - Select ?DELETE? on the Actions Group
    - Select ?DETAILED SELECTION? on the General Data :
    - On Client - your number
    - User : <user name>
    -Hit EXECUTE.
    -Press ENTER on the POPUP
    - If there is an entry in the report that will need to be deleted. Also, make sure that the entry you will delete (for the user) has a value of GUI_ALV_XML_VER on field ?Parameter? .
    - Select the line and hit the DELETE icon .
    - Press ?Y? to continue delete. Press ENTER on the popup.
    - Then EXIT all the way out of the program.
    NOTE : When you run program SALV_BS_ADMIN_MAINTAIN, make sure they are out of any program that they are using for download.
    Re: "Always Use Selected Format" check box in line items report
    Regards,
    Ravi
    Edited by: Ravi Sankar Venna on May 15, 2009 2:31 PM

  • Correct the Marked Line Items

    Hi,
    When  I do F-54 (Clear Vendor Down Paments) after doing entering amount in Transfer posting and when I stimulate and try to save it gives me message saying "Correct the Marked Line Items"  So it shows me on of the line itesm in blue color and when I double click it takes me to Item level and then I entered the Text and save the document. Then in FBL1N its gets clear by one document and the cleared document show its been open.
    Can some one explaing me I am doing some thing wrong .
    Regards,
    Arvind.

    Hi,
    What you are doing is absolutely right.
    When you make a downpayment using special gl indicator, the vendor line time gets posted to SPECIAL RECONCILIATION ACCOUNT instead of normal reconciliation account assigned in vendor master.
    F-54 is used for bringing the vendor line item from special recon account to normal recon account.
    So the same vendor gets debited (spl recon-cleared) and credited (normal recon-Open)
    This new credit items will be cleared with payment.
    Assign Points if useful
    Regards
    Raghu Ram.

  • What indexes are created when we check dimension as line item.

    What indexes are created when we check dimension as line item.
    and also What indexes are created when we check dimension as high cardinality.
    Where can i see that information in the system.
    Answers are highly appreciated.
    Regards
    Kunal

    Hi,
    Line item means it does not have any dimension table.
    High Cardinality means that the dimension is to have a large number of instances (that is, a high cardinality). Also, it is very important to indentify the line item dimension properly. E.g. Sales Order number, this will have the exact number of entries as the fact table entries. Hence, this can be created as a line item dimension. If you are not sure of high cardinality never select that. Activate this function when the dimension has is at least 10%- 20% the size of the fact table (in terms of the number of records). <b>In this case, B tree indices are created instead of bitmap indices.</b>. By default it is BITMAP but with high cardinality it is B-Tree indexing.
    Hope this helps.
    PB

  • An you tell me how to add an advanced action to the TEB so you can check for multiple lines of input

    an you tell me how to add an advanced action to the TEB so you can check for multiple lines of input? How do you add the advanced action?

    Can you elaborate your requirement?
    If you want to have a text wrapped around and enable a scroller for the same, you can achieve it by TEB properties and check the scroll bar option,
    Is this what you are looking to achieve?
    Thanks,
    Anjaneai

  • Msg "Correct The Marked Line Items"

    FI Experts,
    I am trying to post an entry in GL when I try to save it tells me "Correct the Marked Line Items" I click on the blue items, it open up I do nothing but click save and I can post. This is fine when I have one entry to fix but not when I have multiple line items. The error does not tell me what exactly I have to correct.
    Anyone has any ideas?
    Edited by: Frank on Feb 4, 2009 2:26 PM

    Abdali,
    For some odd reason problam came back again, after I took Cost Center from required to Optional thru tcode OBC4.
    I then looked for another field that was requried this time an MM field I took it from reuired to Optional, and teh problem went away again. This has nothing to do with the message I am getting. I do see that the message always tells me to Correct The marked Line Item related to taxes"
    But here is teh info you requested
    SAP_APPL     600     0012     SAPKH60012     Logistics and Accounting
    Thank You for your help

  • I need the BADI or the way for WBS budget check at SC line item

    Hi SRM folks,
    Do you have any BADI or the good way to do the WBS budget check at SC line item level.
    Donot suggest me the BBP_BUDGET_CHECK.ie for SC level only.
    Is there any way to do at line item level.
    Thanks in advance.
    srini.

    Hi
    Either use BBP_ITEM_CHECK_BADI or BBP_DOC_CHECK_BADI.
    Note -> Please read the relevant standard SAP documentation provided in this case for using SE18 Transaction.
    <b>Please go through the following pointers, which will definitely help -></b>
    Re: Reg the budget check in Shopping cart
    Re: Budget analysis
    How to implement the badi BBP_DOC_CHECK_BADI??
    Budget check for service PO
    Budget Check error for Fixed Assets ? :-(
    <u>Other related links -></u>
    Budget Check
    http://help.sap.com/saphelp_srm50/helpdata/en/4f/b3e739e62b714be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/de/237440116fd279e10000000a114b1d/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/4e/1d74eff196d64e880fd28d41d4502b/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/5a/af5eff85d011d2b42d006094b92d37/frameset.htm
    Do let me know as well.
    Regards
    - Atul

  • Check already marked as "cashed" in check register -- no posting is made

    hi everyone,
    i am getting the following message as "check already marked as "cashed" in check register -->no posting will be made".
    we are getting this message when we received the paid file dated 07/26/2007 for the work of 07/25/2007 successfully.  However, when the paid file was processed , several items for different company codes were not posted.  A paid error report was not created in SAP, but all checks are marked as cashed.
    Can anyone please provide me a solution for this.
    Thanks in advance.

    Hi Srinivas,
    Its seems that the file which you have run have already been run before, please check
    1) if bank have send you old or duplicate file.
    or
    2) check correctly if you are running the latest file.
    Above mentioned error is displayed if the same file is run twice or same data is been processed before.
    Hope this helps.
    Please assign points as way to say thanks

  • On the 652X, is there a way to know which port/line caused the change detection w/o checking each individual line?

    On the 652X, is there a way to know which port/line caused the change detection w/o checking each individual line? This question relates to creating an interrupt handler when there are many events that cause an interrupt.

    No. Read the User Manual, CH4, Change Notification.

  • POWL Easy - Getting the marked lines

    Hi,
    I have a surrounding WD component which embeds a POWL Easy.
    Now I want to get the marked lines in the POWL when triggering a POWL action.
    I implemented WD-Component Interface POWL_DETAIL_COMP_IF where method UPDATE_DETAIL_DATA is triggered
    when a POWL line is marked. Unfortunately this method only imports one single line.
    I tried also to implement an event handler for event POWL_FOLLOW_UP. But this event handler is never called,
    although I triggred a event (in debugging) in feeder class method IF_POWL_FEEDER~HANDLE_ACTION.
    Does anyone know, how the event handler method POWL_FOLLOW_UP can be called?
    Thank you and best regards, Edgar

    Hi Madhu,
    in my case the described solution is not working.
    I am using a Easy POWL which means that I am using the WD Component POWL_EASY in my main component
    and not POWL_UI_COMP (see also example WD component POWL_EASY_DEMO in your system).
    When I raise a portal event in IF_POWL_FEEDER~HANDLE_ACTION as decribed
    the method POWL_FOLLOW_UP  is not called, although I registered for this event in my main component.
    Best regads, Edgar

Maybe you are looking for

  • Mail No Longer Working On WiFi

    Just discovered a very strange issue. My e-mail accounts no longer send or receive on WiFi. This happens at both at home, and at work. Mail still works fine on Edge and 3G, but not WiFi. I can still access the internet via WiFi, so I'm really confuse

  • Invalid column name in query string - using Format function

    In my post just before this one the problem was solved for writing a query string using a date range. The rest of the query string includes the same date field (Call_Date) but formatted as 'MMM-YY'. I get an invalid column name error when I add this

  • ITunes and Quicktime error...

    Hiya... I've read all the threads and still can't find an answer to my problem, I hope someone can help me... when i try to open iTunes the following message pops up: "QuickTime failed to initialize (error -2093). QuickTime is required to run iTunes.

  • Video sharing on ipod

    hi so i have the ipod touch 4g and i have videos from my computer(home) that i put on my ipod and then today at school i put a video on my ipod from my computer at school and then i get this on my ipod how do i get rid of 100032's library?

  • OAMCM upgrade to 10.1.4.2.0

    Hi all, Can any one please tell me the patch number for Oracle Access Manager Configuration Manager to upgrade from 10.1.4.0.1 to 10.1.4.2.0. I coundn't found any where in metalink also. Thanks in advance. Siva Pokuri.