Multi Line Item Check

This seems like a simple problem but I can't find a good answer.
If I have an item that contains infinite empty records for the
user to fill in. I want to be able to check the entire item to
see if any of the instances of the item are not null. Do I have
to create a function for this or is there something is Developer
that can handle this?
null

Hi Fan,
You can try do it in 2 ways: statically & dynamically.
I will explain both of the ways to you. Suppose you have bound your table to a context node by name SFLIGHT. It contains CARRID, CONNID, FLDATE, PRICE & an attribute by name CHECK of type  WDY_BOOLEAN.
Static Method:
When you right click on your table & say "Create Binding" you select the context node as SFLIGHT & then you get the option to specify the Cell editor of the various table columns. Now go to your column CHECK and select the cell editor as "Checkbox" & name of property to be bound as "Checked". Now this would result in the column CHECK being displayed as a checkbox to you. Also the checked/unchecked values go and get stored in the boolean attribute CHECK that you had created at context level.
Dynamic Method:
Whenever you are working with dynamic ui modification you need to put your coding inside the WDDOMODIFYVIEW method. You need to basically perform the below steps to realise your functionality:
1) You need to first get the reference of the table element.
2) You then use this reference to get the reference of the desired column by specifying the column index. 3) 3) You then create an object of type checkbox & then embed it within the cell editor of the table column
Below is the coding from the method:
method WDDOMODIFYVIEW .
  data: lr_table type ref to cl_wd_table,
        lr_column type ref to cl_wd_table_column,
        lr_check  type ref to cl_wd_checkbox.
  check first_time = abap_true.
  lr_table ?= view->get_element( id = 'TABLE' ).
  lr_column ?= lr_table->get_grouped_column( id = 'TABLE_CHECK' ).
  lr_check = cl_wd_checkbox=>new_checkbox( bind_checked = 'SFLIGHT.CHECK' ).
  lr_column->SET_TABLE_CELL_EDITOR( THE_TABLE_CELL_EDITOR = lr_check ).
endmethod.
Regards,
Uday

Similar Messages

  • Multi line items in mail

    Hi All,
    In my scenario sales order created in R3 side and send mail from XI side.
    Every thing is working fine. But the issue is in case multi line items in the sales order, the mail showing only one line item.
    Please help me on this scenario, and send me some documents for go through and try.
    Thanks.
    Senthil kumar V.

    1 We can send an e-mail with multi-line content using E-Mail Adapter.
    2. We can set Dynamic Data as the e-mail content.
    3. The Dynamic Content has to be formatted either in Mapping or in Module and then sent to E-mail Adapter. E-Mail Adapter cannot do the formatting.
    4. Content can be of any number of lines.
    5. The consolidation should be done in Mapping or in a Module program and the consolidated data should be given to the adapter.
    6. Yes Content can also be set in HTML format
    Edited by: Dharamveer Gaur on Sep 18, 2008 7:15 AM

  • Cost Center Error in Shopping cart Multi Line items

    Hi,
    We are working on SRM 4.0. when the user is trying to create a shopping cart from catalog he gets the error message as
    "you don't have the acces to the cost object xyz12.please return to the cost assignment section and correct".
    We have given the access to that cost center in SRM even also he is getting the same error. 
    He does not have any problem with single line item against the same cost center. problem gets only when he is going to create with multiple line items in shopping cart against the same cost center.
    Request all  please advise me where i need to check to overcome the issue.
    Regards,
    Sri

    Hi,
    Thanks for your kind response. can you please elaborate bit more  step by step.
    Awaiting for your feedback.
    Regards,
    sri

  • Sales order line item check based on material status

    Hi
    I have the following requirement
    There are Distribution chain specific material status maintained in the material master ( Sales Org1 View). Now for some of these statuses we need to reject these items in the sales order @ line item level. A reason for rejection needs to be assigned for these line items.
    Is there any standard setting or a user exit is required. I believe user exit save_document_prepare could be used to carry out these checks & assign a reason for rejection. Pls suggest asap
    Thanks
    Ramesh

    Dear Ankit,
    The difference between reason for rejection and delivery block is,
    Reason for rejection you can find this field at header level and line item level, the use of this is once you mention any reason for rejection the TOR or Schedule line not been confirmed for that material,so that the material can be confirmed to another customer.
    If you set delivery block the material for sale order in case if the material not available it will rise TOR or if available it will confirm the schedule line and block the material for that customer or sale order.
    This is the major difference between two.
    Regards
    Ram

  • BADI or Exit for MB1B at Line Item Checking

    Hi Friends,
    In MB1B tcode , in second screen after giving the line item details , it is checking for the batch , storage location and all.
    Requirement is to validate the storage location line item wise, if it is not so , an error message should come stating 'Wrong Storage Location'. This should be done line item wise and before saving (i.e. on pressing enter ).
    I checked with BADI's and User Exits but not able to do the same. I also searched in forum also, but not getting the exact Exit or BADI to use.
    Plz. do reply with any suitable result.
    Thanks in advance.
    Points will definately be rewarded.
    Regards.

    hi,
    use MBCF0009 user exit.....EXIT_SAPMM07M_009
    inthis ...get the i_mseg-lgort and check ...and pop-up...error meaasge.

  • Generating unbound multi-line items of type long?

    I'm trying to generate a form containing an unbound item with datatype long which I'd like to have multi-line. Is this possible using Headstart without adding an entry to the Headstart Object library?
    I tried to use CGSO$LONG, but that won't make it multiline. It also means I have to add "Ofgstnd1.olb" to my list of object-libraries to use in the preferences which seems to override the headstart obj.library on many items.... Does anybody have any suggestions??
    Greetz,
    Tim

    You could create a custom object library which contains only the 'long' item. Then in qms65_recommended, edit the STOOLB preference and add your custom library, using the ';' as a separator.
    Regards,
    Lauri

  • VA01 - Need to display an error popup message on line item check

    Hi All,
    I'm working on a user exit (report MV45AFZZ, form routine USEREXIT_FIELD_MODIFICATION).
    I already have all the logic necessary - the one final piece that is left is to display an error pop-up message if the line item quantity is less than a certain number.
    The pop-up should display when the enter key is pressed in the quantity field. Also, the pop-up should display if the SAVE button is pressed.
    I tried using
    MESSAGE 'Please increase quantity' TYPE 'E'.
    This worked, but unfortunately it caused VA01 to terminate when I click off the pop-up. This is strange, since type 'E', unlike type 'A', should not do that.
    I also tried POPUP_TO_INFORM, but that's just an informational message which does not prevent saving.
    Any ideas ?
    Regards,
    Roman D.

    You can try this fm
                    CALL FUNCTION 'DD_POPUP_TO_CONFIRM_CANCEL'
                         EXPORTING
                              textline1    = text-902
                              textline2    = text-903
                              title        = text-901
                              start_column = 25
                              start_row    = 6
                              defaultpos   = 'C'
                         IMPORTING
                              answer       = cancel_rc.
                    CASE cancel_rc.
                      WHEN 'A'.
                      WHEN 'C'.
                        LEAVE PROGRAM.
                      WHEN OTHERS.
                    ENDCASE.
    Based upon user inputs you can handle conditions (CANCEL_RC) accordingly.

  • Lsmw........(multi-line items)

    hi,
       how to insert several line items in a sales order. whether this can be performed using recording or any other method can be used . If so please let me know.
                         thank you.
    regards
    prem

    Hi Prem,
    Follow these steps for processing multiple records in lsmw.
    I presume that you have one header line and multiple line items in the file and has a unique identifier. Let us say you have two nodes in lsmw called VBAK and VBAP.
    Normally lsmw process one line of the file at a time. When lsmw reads the header line, process the VBAK node and use the 'transfer_record' command (this must be already there). When the second record is processed and if the unique identifier is same as the header then write a command called 'skip_record' in the '__BEGIN_OF_RECORD__' session of VBAK. If you do like this we will have one header and multiple line items.
    Thanks
    Vinod

  • Problem with Multi line items in Order

    When a customer sends an order, generally the line items will be maintained individually.But here the problem is customer wants all kg deposits under separate item u2018AAAu2019.
    Example:
    Item Code     Quantity     Item Price        Net Price Net Amount
    abc     2 kgs     $15/kg        $15/kg      $30.0
    xyz     3 kgs     $10/kg        $10/kg      $30.0
    AAA     5 kgs     $15/kg        $15/kg      $75.0
    There will be no item in SAP with code u2018AAAu2019, so before placing the order in SAP, someone has to distribute the kg deposits in the ratio of quantity to all items with kgs. Also when we send back the invoice, take out all kg deposits from different items , add up total and put it under new item u2018AAAu2019 and send it.
    Can you suggest how we can resolve this problem ?

    create a new program in which
    --> get all the line items into table
    --> sort all line items
    --> loop at itab and put sum of all similier line items in anoter itab with priscribed name
    --> finally use call transaction va03 or some thing by passing new internal table
    shiva

  • How To Add Line Items to Workflow Document Template

    Hi Gurus,
    ive made a Workflow which has few containers referencing VBKPF, VBSEGS, and constructed two methods which one of them gets the table VBKPF data into MyStructure and the second the data into MyStructure2.
    Inside of the workflow i made two container operations and assigned those two methods to VBKPF and VBSEGS containers.
    The Problem is that VBSEGS is a (multi) line item table and it doesnt show me the data inside of the document template.
    What could be the solution for this scenario
    Thanks, Points for Reward

    Hi,
    i checked the swo1 methods and it looks good. I didnt change the binding that ive implemented, and some values are getting showed, but still they do not correspond to the BO element (concerning Acct.Doc.Nr)
    My binding is:
    Display Document Task:
    #######Workflow -> Step Display Parked Doc
    **************BO FIPP -> &_WI_OBJECT_ID&
    #######Workflow <- Step Display Parked Doc
    **************Empty
    Document Template:
    #######Workflow -> Step Create Doc From Template
    **************&_WORKITEM& -> &FLOWITEM&
    **************DC8BA2ADFCEA4EF18D2F00145EDCE7A4 -> &TEMPLATE&
    #######Workflow <- Step Create Doc From Template
    **************&WF_DOCUMENT_0001& <- &_WI_OBJECT_ID&
    **************&_WF_INITIATOR& <- &_WI_ACTUAL_AGENT&
    As ive explained earlier i have a Container VBSEGS with abap table vbsegs, which is filled using method ReturnMe2 with MyStruct2 structure.
    Regards
    Laurynas Prikockis

  • How to display a line item in the billing calculation ?

    Hi Experts,
    My client requirement is to just display a line item in billing without affecting the total invoice amount. ( line item should just show up, no calculation should be included).
    Regards,
    Farooq

    i agree on the rate step fr the calculation you would like to see the line item check the variant control, it usually has the option to write a line item.  depending on the variant.
    bobby r.

  • Smartforms: no page break between last line item and footer in table?

    Hello All,
    my smartform has FIRST and NEXT pages. I would like to avoid a page break between last item line of a table in MAIN window and the footer of the same table.
    Here is how it looks currently.
    Output of FIRST page, MAIN window, table ITEMS:
    1.line item
    2.line item
    3.line item
    4.line item
    page break
    output of NEXT page, MAIN window, table ITEMS:
    1.footer line
    2.footer line
    I would like that if a footer does not fit on FIRST page, it would be displayed on NEXT page with last item line.
    It should be like this:
    output of FIRST page, MAIN window, table ITEMS
    1.line item
    2.line item
    3.line item
    page break
    output of NEXT page, MAIN window, table ITEMS
    4.line item
    1.footer line
    2.footer line
    Any ideas?
    Thanks and best regards,
    Mindaugas

    Do you mean line item text or your want to print footer text?
    If your trying yo display some footer text, then you either place a footer window or you can create a table inside your main window and place text under the footer of the table, then it will display the text without any page break.
    If it is item tem.
    Then you need to build additional logic. As we cannot guess, the total number of item text upfront.
    Example: if page1 can hold 15 line items, check whether your header and item can fit in page one else call a new page by placing a condition FLAG = "X".
    I hope it will help you to solve your problem.
    Regards,
    SaiRam

  • Line items missing in RFC table when they are more than one!!!

    Hi All,
    I am doing a scenario where i map a proxy from SCM to a RFC in R/3.
    The problem i am facing is my proxy has more than 1 line item for a purchase order but in R/3 the RFC table contains only the first line item.
    Is there any special mapping that i need to do to capture multiple line items in a PO.
    Regards,
    Jayaram.M

    Hi,
    When you do the mapping, test it with the payload and see whether you are able to generate multiple line items in the target.
    Next check how you are passing it to the RFC, whether as a single line item or as a table.
    If in the mapping you were not able to see the multiple line items, check your context changes accordingly.
    Accordingly you can check.
    Regards
    Krish

  • Strike Through between last line Item and footer

    Hi Experts,
    I have a requirement like this,
    I have dynamic table which displays items of invoice and Footer in the Master page.
    There will be dynamic space between Table and Footer when the lines items are not completely filled till the footer area. My requirement is to draw a cross line which begins at the end of the line( left most corner) and ends above the footer(right most corner)
    As if the diagonal line is drawn.
    Please let me know how to achieve the above functionality.
    Regards,
    Narayan

    Do you mean line item text or your want to print footer text?
    If your trying yo display some footer text, then you either place a footer window or you can create a table inside your main window and place text under the footer of the table, then it will display the text without any page break.
    If it is item tem.
    Then you need to build additional logic. As we cannot guess, the total number of item text upfront.
    Example: if page1 can hold 15 line items, check whether your header and item can fit in page one else call a new page by placing a condition FLAG = "X".
    I hope it will help you to solve your problem.
    Regards,
    SaiRam

  • Line item Settlement and KOB5 for automatically created AUCs to PM orders

    Hello Experts,
    I am trying to set up line item settlement for automatically created AUCs. We would like to use line item settlement because we want to see the costs split up by either percentage or amount when settled to the AUC.  If I can't settle by percentage or amount to the AUC then i'd like to be able to temporarily block some of the costs from settling.  This is for billing not capitalization purposes since all costs will eventually settle to one final asset. The settlement is done using transaction KO88 or KO8G and automatic processing type.  I’ve configured a PM Order type as an investment order and set up the related investment profile and investment asset class.  Some of the things I've determined from my testing:
    Using transaction KOB5, costs can be split up by creating other distribution rules, but only to another object (i.e. another
    asset, order, cost center etc. by using the Preliminary) not to the automatically created AUC linked to the order
    The default settlement rule is account assignment category FXA, percentage rate 100%, settlement type AUC to the AUC
    and therefore cannot be updated/altered when using KOB5 or any other transaction.
    Once the costs are settled to another object other than the AUC, those costs cannot be settled to the final asset. Creating Preliminary
    settlement rules to a receiver IO and changing the period or fiscal year will not “block” costs from settling whether the processing type is automatic, by period, partial capitalization or full settlement.
    I’ve been testing this out in our development client and need verification that this is the way that transaction KOB5 works with line item settlement or did I do something incorrect . 
    Your feedback is greatly appreciated.  Thank you in advance.

    Hi Zaid,
    Thank you for your response.  Assets are not my area so I’m not sure if I missed a transaction or step in the process.   I tested this out by doing the following steps:
    Created AUC Asset class with line item checked
    Assigned PM Order type as non-investment with no investment profile and created order number
    Created a main asset number 
    Created an AUC sub asset number to step 3
    Created settlement rule to sub asset number on order
    Posted costs to order
    Settled from order to AUC with transaction KO88
    Created distribution rules for asset with transaction AIAB
    Settled from sub asset to main asset number with transaction AIBU
    When I settled from the sub to the main asset number in step 9, I found I lost the line item detail.  Is there another configuration setting I need to make to allow me to see the line item detail when I use AIBU?
    Thank you,

Maybe you are looking for