Check Box in LSMW

Hi all,
I want to use LSMW for uploading the master data.
I am using recording mode ( MM01) ,recorded for Basic View, basic view2, purchasing view, acounting view.
While recording waht sre the diferent fields that system records, also how does the checkboxes are hadled by the system.
Means while preparing the upload file do we need to maintain the checkbox, also we specify the organization elment such as Plant prior to creation of material, how this is handled in recording mode.
Also what care we should yake while recording and uploading data in to the system?
Thanks and Regards,
Deepika.

Table Name     Transaction Code     Vendor Account Number     Material Number     Purchasing Organization     Plant     Indicator: Standard info record     Country of Issue of Certificate of Origin     Purchase Order Unit of Measure     Numerator for Conversion of Order Unit to Base Unit     Denominator for Conversion of Order Unit to Base Unit     Planned Delivery Time in Days     Purchasing Group     Standard Purchase Order Quantity     Indicator: GR-Based Invoice Verification     Period Indicator for Shelf Life Expiration Date     Valuation Type     Net Price in Purchasing Info Record     Currency Key     Price Unit     Order Price Unit (Purchasing)     Numerator for Conversion of Order Price Unit into Order Unit     Denominator for Conv. of Order Price Unit into Order Unit
X     ME11     11     ZCON-6000001     PORG     LMLA     X                         4          1000     X               14     INR     1               
X     ME11     11     ZCON-6000001     PORG     NICD     X                         4          1000     X               14     INR     1               
X     ME11     11     ZCON-6000001     PORG     SLZC     X                         4          1000     X               14     INR     1               
X     ME11     11     ZCON-6000001     PORG     VRLA     X                         4          1000     X               14     INR     1               
X     ME11     11     ZCON-6000002     PORG     LMLA     X                         4          1000     X               42     INR     1               
X     ME11     11     ZCON-6000002     PORG     NICD     X                         4          1000     X               42     INR     1               
X     ME11     11     ZCON-6000002     PORG     SLZC     X                         4          1000     X               42     INR     1               
X     ME11     11     ZCON-6000002     PORG     VRLA     X                         4          1000     X               42     INR     1               
X     ME11     11     ZCON-6000003     PORG     LMLA     X                         4          1000     X               270     INR     1               
X     ME11     11     ZCON-6000003     PORG     NICD     X                         4          1000     X               270     INR     1               
X     ME11     11     ZCON-6000003     PORG     SLZC     X                         4          1000     X               270     INR     1               
X     ME11     11     ZCON-6000003     PORG     VRLA     X                         4          1000     X               270     INR     1               
X     ME11     11     ZCON-6000004     PORG     LMLA     X                         4          1000     X               270     INR     1               
X     ME11     11     ZCON-6000004     PORG     NICD     X                         4          1000     X               270     INR     1               
X     ME11     11     ZCON-6000004     PORG     SLZC     X                         4          1000     X               270     INR     1               
X     ME11     11     ZCON-6000004     PORG     VRLA     X                         4          1000     X               270     INR     1
X     ME11     11     ZCON-6000005     PORG     LMLA     X                         4          1000     X               10     INR     1
X     ME11     11     ZCON-6000005     PORG     NICD     X                         4          1000     X               10     INR     1
X     ME11     11     ZCON-6000005     PORG     SLZC     X                         4          1000     X               10     INR     1
X     ME11     11     ZCON-6000005     PORG     VRLA     X                         4          1000     X               10     INR     1
X     ME11     11     ZPAC-5000000     PORG     LMLA     X                         4          1000     X               250     INR     1
X     ME11     11     ZPAC-5000000     PORG     NICD     X                         4          1000     X               250     INR     1
X     ME11     11     ZPAC-5000000     PORG     SLZC     X                         4          1000     X               250     INR     1
X     ME11     11     ZPAC-5000000     PORG     VRLA     X                         4          1000     X               250     INR     1
X     ME11     7     ZPAC-5000005     PORG     LMLA     X                         4          1000     X               12     INR     1
X     ME11     7     ZPAC-5000005     PORG     NICD     X                         4          1000     X               12     INR     1
X     ME11     7     ZPAC-5000005     PORG     SLZC     X                         4          1000     X               12     INR     1
X     ME11     7     ZPAC-5000005     PORG     VRLA     X                         4          1000     X               12     INR     1
X     ME11     11     ZPAC-5000009     PORG     LMLA     X                         4          1000     X               95     INR     1
X     ME11     11     ZPAC-5000009     PORG     NICD     X                         4          1000     X               95     INR     1
X     ME11     11     ZPAC-5000009     PORG     SLZC     X                         4          1000     X               95     INR     1
X     ME11     11     ZPAC-5000009     PORG     VRLA     X                         4          1000     X               95     INR     1
X     ME11     13     ZPIP-7000000     PORG     LMLA     X                         4          1000     X               35     INR     1
X     ME11     13     ZPIP-7000000     PORG     NICD     X                         4          1000     X               35     INR     1
X     ME11     13     ZPIP-7000000     PORG     SLZC     X                         4          1000     X               35     INR     1
X     ME11     13     ZPIP-7000000     PORG     VRLA     X                         4          1000     X               35     INR     1
X     ME11     3     ZRAW-1000001     PORG     NICD     X                         4          1000     X               955     INR     1
X     ME11     9     ZRAW-1000005     PORG     SLZC     X                         4          1000     X               240     INR     1
X     ME11     1     ZRAW-1000006     PORG     SLZC     X                         4          1000     X               24,000     INR     1
X     ME11     10     ZRAW-1000007     PORG     SLZC     X                         4          1000     X               890     INR     1
X     ME11     9     ZRAW-1000008     PORG     VRLA     X                         4          1000     X               400     INR     1
X     ME11     14     ZRAW-1000009     PORG     NICD     X                         4          1000     X               350     INR     1
X     ME11     14     ZRAW-1000009     PORG     SLZC     X                         4          1000     X               350     INR     1
X     ME11     14     ZRAW-1000009     PORG     VRLA     X                         4          1000     X               350     INR     1
X     ME11     7     ZRAW-1000010     PORG     LMLA     X                         4          1000     X               560     INR     1
X     ME11     7     ZRAW-1000010     PORG     VRLA     X                         4          1000     X               560     INR     1
X     ME11     103     ZRAW-1000011     PREF     NICD     X                         7          1000     X               35     INR     1
X     ME11     103     ZRAW-1000011     PREF     SLZC     X                         7          1000     X               35     INR     1               
X     ME11     17     ZRAW-1000012     PORG     LMLA     X                         4          1000     X               180     INR     1               
X     ME11     17     ZRAW-1000012     PORG     VRLA     X                         4          1000     X               180     INR     1               
X     ME11     5     ZRAW-1000013     PORG     NICD     X                         4          1000     X               185,000     INR     1               
X     ME11     5     ZRAW-1000013     PORG     SLZC     X                         4          1000     X               185,000     INR     1               
X     ME11     17     ZRAW-1000014     PORG     LMLA     X                         4          1000     X               180     INR     1               
X     ME11     17     ZRAW-1000014     PORG     VRLA     X                         4          1000     X               180     INR     1               
X     ME11     10     ZRAW-1000015     PORG     NICD     X                         4          1000     X               285     INR     1               
X     ME11     10     ZRAW-1000015     PORG     SLZC     X                         4          1000     X               285     INR     1               
X     ME11     10     ZRAW-1000015     PORG     VRLA     X                         4          1000     X               285     INR     1               
X     ME11     11     ZRAW-1000016     PORG     LMLA     X                         4          1000     X               430     INR     1               
X     ME11     11     ZRAW-1000017     PORG     VRLA     X                         4          1000     X               38     INR     1               
X     ME11     104     ZRAW-1000020     PREF     SLZC     X                         7          1000     X          GN_IMP     20,000     INR     1               
X     ME11     3     ZRAW-1000020     PORG     SLZC     X                         4          1000     X          GN_IND     20,000     INR     1               
X     ME11     103     ZRAW-1000021     PREF     SLZC     X                         7          1000     X          GN_IMP     192     INR     1               
X     ME11     1     ZRAW-1000021     PORG     SLZC     X                         4          1000     X          GN_IND     192     INR     1               
X     ME11     103     ZRAW-1000022     PREF     NICD     X                         7          1000     X          GN_IMP     112     INR     1               
X     ME11     1     ZRAW-1000022     PORG     NICD     X                         4          1000     X          GN_IND     112     INR     1               
X     ME11     102     ZRAW-1000023     PREF     LMLA     X                         7          1000     X          GN_IMP     175     INR     1               
X     ME11     1     ZRAW-1000023     PORG     LMLA     X                         4          1000     X          GN_IND     175     INR     1               
X     ME11     102     ZRAW-1000023     PREF     VRLA     X                         7          1000     X          GN_IMP     175     INR     1               
X     ME11     1     ZRAW-1000023     PORG     VRLA     X                         4          1000     X          GN_IND     175     INR     1               
X     ME11     104     ZRAW-1000024     PREF     NICD     X                         7          1000     X          GN_IMP     1,350     INR     1               
X     ME11     9     ZRAW-1000024     PORG     NICD     X                         4          1000     X          GN_IND     1,350     INR     1               
X     ME11     103     ZRAW-1000026     PREF     NICD     X                         7          1000     X          GN_IMP     850     INR     1               
X     ME11     1     ZRAW-1000026     PORG     NICD     X                         4          1000     X          GN_IND     850     INR     1               
X     ME11     101     ZRAW-1000027     PREF     LMLA     X                         7          1000     X          GN_IMP     10     INR     1               
X     ME11     7     ZRAW-1000027     PORG     LMLA     X                         4          1000     X          GN_IND     10     INR     1               
X     ME11     101     ZRAW-1000027     PREF     NICD     X                         7          1000     X          GN_IMP     10     INR     1               
X     ME11     7     ZRAW-1000027     PORG     NICD     X                         4          1000     X          GN_IND     10     INR     1               
X     ME11     101     ZRAW-1000027     PREF     SLZC     X                         7          1000     X          GN_IMP     10     INR     1               
X     ME11     7     ZRAW-1000027     PORG     SLZC     X                         4          1000     X          GN_IND     10     INR     1               
X     ME11     101     ZRAW-1000027     PREF     VRLA     X                         7          1000     X          GN_IMP     10     INR     1               
X     ME11     7     ZRAW-1000027     PORG     VRLA     X                         4          1000     X          GN_IND     10     INR     1               
X     ME11     9     ZRAW-1000109     PORG     LMLA     X                         4          1000     X               450     INR     1               
X     ME11     1     ZSEM-4000002     PORG     NICD     X                         4          1000     X               1,000     INR     1               
X     ME11     1     ZSEM-4000045     PORG     VRLA     X                         4          1000     X               1,000     INR     1

Similar Messages

  • Lsmw - How to mark a check-box

    Hi,
    I am creating a very simply LSMW using transaction MBST.
    I need to select a specific item to be cancel.
    In order to do that, at some point of the recording I need to mark a check-box.
    When I execute the BI session the action of "click" the check-box fail.
    Any advise?
    Thanks in advance

    >
    Alex Santana Almeida wrote:
    > Hi,
    >
    > I am creating a very simply LSMW using transaction MBST.
    >
    > I need to select a specific item to be cancel.
    >
    > In order to do that, at some point of the recording I need to mark a check-box.
    >
    > When I execute the BI session the action of "click" the check-box fail.
    >
    > Any advise?
    >
    > Thanks in advance
    This description is a bit short.
    when you execute MBST, then all items are checked by default.
    so you probably remove all and then want to set it for one item.
    Can you post your coding (just this one line) where you moved the X to the box?

  • How to print Check Box in smartform

    HI,
      How to print check box in smartforms. I am using Include Sap Symbol but in the print it is coming as #. Do we need to do any setting like we do for barcode?
    Thanks
    Raghavendra

    hi,
    u can print a check box in different ways.. by inserting symbols and making window as check box..
    once go through the thread u will get to k now differnt ways
    putting checkboxes in smartform?
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • How to select One Check Box at a time

    Dear All
    I have 10 records in details blok and also I have 10 check boxes .
    I want user can only check one check box at a time .
    For example If first record I have checked and i am trying to check the last record then the first record UNCHECKED and the last record will checked .
    Like how redio buttons work ..
    How can i do that ..?
    I have done like this :-
    1st I have declare a global variable in PRE_FORM :GLOBAL.CNT := 'N';
    Then
    WHEN-CHECKBOX-CHANGED trigger
    IF CHECKBOX_CHECKED(EMP.CHK') THEN
        IF :GLOBAL.CNT != N THEN
            :EMP.CHK := Null
       HERE what to write ???
            RAISE FORM_TRIGGER_FAILURE;
        ELSE
            :GLOBAL.CNT := Y;
        END IF;
    ELSE
        :GLOBAL.CNT := N;
    END IF;Edited by: LuKKa on Aug 29, 2012 1:12 PM
    Edited by: LuKKa on Aug 29, 2012 1:13 PM

    LuKKa,
    An easier method would be to use a Calculated Field to summarize the value of your CHECKBOX Item. For example, add a non-table item (call it SUM_CHECKED) to your detail block and do not assign it to canvas - so it will not be displayed. Then set the following properties of the SIM_CHECKED item:
    Database Item = No
    Calculation Mode = Summary
    Summary Function = Sum
    Summarized Block = <YOUR DETAIL BLOCK>
    Summarized Item = <YOUR CHECKBOX ITEM>
    Next, you will need to change your Detail Block property Query All Records to YES (this is required for the Calulated Item).
    Now, make sure your checkbox is data type NUMBER and has the following minimum properties set:
    Data Type = Number
    Maximum Length = 1
    Initial Value = 0
    Value when Checked = 1
    Value when Unchecked = 0
    Check Box Mapping of Other Values = Not Allowed or Unchecked
    Now, in your Checkbox Item's When-Checkbox-Changed trigger add code similar to this:
    IF ( CHECKBOX_CHECKED('YOUR_DETAIL_BLOCK.YOUR_CHECKBOX_ITEM') ) THEN
       IF ( :YOUR_DETAIL_BLOCK.SUM_CHECKED > 1 ) THEN
       --Reset the checkbox
       :YOUR_DETAIL_BLOCK.YOUR_CHECKBOX_ITEM := NULL;
       MESSAGE('You can only check one item.');
       Message(' ');
       RAISE Form_Trigger_Failure;
       END IF;
    END IF;I have confirmed this method works and it is more efficient than looping through your records to see if other checkboxes are checked.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Preventing disabling of check box - item okay in MIGO

    Dear all,
    In the MIGO transaction - during goods receipt for subcontractor material, when the item (incoming) is checked as item okay - automatically the child material (Material sent to subcontractor) is also activated thereby to enable 543 movement.
    Unfortunately some of the users are disabling the check box (for the material sent to the subcontractor). This prevents depletion of stock from the subcontractor but inflates the stock of the incoming material.
    Is there any way - either by authorisation check to prevent users disabling the check box or other methods?
    Experts suggestion is required in this regard.
    Thanks in advance.
    Regards,
    M.M

    Hi Magesh,
    it is possible. use Badi enhancement
    MB_MIGO_BADI goto
    IF_EX_MB_MIGO_BADI~POST_DOCUMENT
    tell your abaper to put the logic like
    parent ID and subcomponent ID need to select
    if either of two is not selected
    then error message will prompt not to save the GR doc since subcomponent is unselected.
    reference field EKPO check PSTYP
    hope this help you.
    regards,
    Maia
    Edited by: Maia on Apr 18, 2008 3:07 PM

  • Free Goods check box in PO, for Services

    Hello,
    Is there any way to activate the Free goods checkbox for Services (item category 'D') in Purchase Order.
    This field seems not to be available in the screen layout.
    Your support is highly appreciated.
    Regards,
    Vijay.

    Hi,
    Per SAP Note 0000634395, activation of Free Goods Check box for services in not possible.
    Though there is an option to make the services unaccountable, by marking the service as contingency item in the service details from the services tab.
    The subitem total is the aggregate of the subitem net values. This subitem total excludes subitems marked as contingency or alternate lines.
    Please refer to the link provided;
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/8d/7638d98f3f11d2b47f006094b93006/frameset.htm
    Regards,
    Sekhar.

  • Return Item and Free goods check box in purchase order

    Hi Guru:
    I just got the question regarding the return item and free goods check box,my question is that if I check the free good check box,then the price of the matieral will be charged to zero,however,if I want to issue the return purchase order to the vendor,does I need to check the return box first and then issue the return order to the vendor? Then go to MIGO transaction to select the movement type 122 to return the goods,what's the whole precedure for returning the goods to the vendor,can anybody tell me,very appriated!

    Hi,
    Retun to vendor through have two types....
    One is you have Po created, vendor send the item in that few items have rejected so you need to return the item to vendor......
    here in MIGo chose returrn to vendor selce the PO numbere.... system automaticaly take the movent type 122....
    sencond type is Retun PO..... In Po while creting the PO tick the return indication..
    If you do the GR system will pick 161mopvent type.. ( GR returns)...
    REgards
    anand

  • Unable to see other writer's checked check boxes in comments of shared review

    I'm using Acrobat 3D Version 8 in a Windows XP environment.  We are using SharePoint for shared reviews.
    We are able to see developer's comments, and we can respond back to the comments with a reply.  However, when we use the checkbox to indicate that a comment has been addressed, each writer can only see the checkmarks that she makes.  We cannot see checkmarks made by other writers.
    We have tried selecting the check box, and we have also used the check box icon to select the check box.  We then publish and the the action is accepted as a comment and is published.  But we are unable to see each other's check boxes.
    Why?
    Thanks!

    Solved on my own.
    Simply close BEx Analyzer and restart it again. If still it doesn't work then restart your computer and then run BEx Analyzer again, it will definitely work.
    TR.

  • How to add unique id to check box in a table

    Hi Experts,
    I have a static table in which more than 500 records appears in the table, so vertical scroll is displaying in the table. In each row, check boxes and text boxes displays with the data. When the check box is selected, I will do the calculation based on the selected check box and displays the calculated value to text control of respected row. To achieve this, I am triggering the event iterating the loop over the context to find which check box is selected. When the page gets refreshed, cursor moves to first record.
    Since all the check boxes having the same id, I am not able to get from which check box this event has got triggered.
    Is there a way to assign unique id to each check box so that I can assign parameter to the control and get from which check box event got triggered. I have tried to generate the table dynamically, even there I couldn't assign id to each check box.
    Please through light on this request
    Thanks
    Murthy

    It is not specific to any platform but common in all whether is CE or 7.0 follow the given procedure
    1. Create a common onLeadSelect of table say it      selectedRow
    2. Assign the same event in onToggle     selectedRow  of checkbox.
    3. Now loop it in such a way that
         if (wdContext.nodeAppinvoiceData().getLeadSelection() >= 0)
                   wdContext.currentAppinvoiceDataElement().setIsPreviewSelected(true);
                   if (wdContext.currentAppinvoiceDataElement().getIsSelected())
                        wdContext.currentAppinvoiceDataElement().setIsSelected(false);
                        for (int i = 0; i < wdContext.nodeAppinvoiceData().size(); i++)
                             boolean flag = wdContext.nodeAppinvoiceData().getAppinvoiceDataElementAt(i).getIsSelected();
                             if (flag)
                                  break;
                             else
                   else
                        wdContext.currentAppinvoiceDataElement().setIsSelected(true);
              wdContext.currentAppinvoiceDataElement().setIsPreviewSelected(false);
              wdContext.nodeAppinvoiceData().clearSelection();
              wdContext.nodeAppinvoiceData().setLeadSelection(-1);
    BR
    Satish Kumar

  • Clearing Check box

    Hi,
    I have to create the credit memo based on user selected records. My program is doing it, but I am having two problems,
    1)After creating the credit memo it is not clearing those records, if I choose next set it is adding 2nd time selected records to the first time selected records and adding to previous credit memo number.
    2)If the credit memo number is already there to a record, it should not allow the same record to create another CM.
    Please help me to solve these.
    Thanks,
    Neelu.
    REPORT zsd_creditmemo  NO STANDARD PAGE HEADING.
    TABLES: zppprice, kna1.
    TYPES: BEGIN OF ty_zprice,
              mandt  TYPE mandt,
              vkorg  TYPE vkorg,
              vtweg  TYPE vtweg,
              spart  TYPE spart,
              kunnr  TYPE kunnr,
              matnr  TYPE matnr,
              crdate TYPE zcrdate,
              efdate TYPE zefdate,
              sprice TYPE zprice3,
              eprice TYPE zprice4,
              eohqty TYPE zquantity1,
              aohqty TYPE zquantity2,
              auart  TYPE auart,
              bstkd  TYPE bstkd,
              werks  TYPE werks_d,
              augru  TYPE augru,
              xblnr  TYPE xblnr,
              crmemo TYPE vbeln,
              index  TYPE sy-index,
         END OF ty_zprice.
    DATA: it_ztable TYPE TABLE OF zppprice WITH HEADER LINE,
          gt_zprice TYPE TABLE OF zppprice  WITH HEADER LINE,
          gt1_zprice TYPE TABLE OF zppprice,
          gt2_zprice TYPE TABLE OF ty_zprice,
          gt3_zprice TYPE TABLE OF ty_zprice,
          gt4_zprice TYPE TABLE OF ty_zprice,
          gs_zprice TYPE zppprice,
          gs_zprice1 TYPE ty_zprice,
          ls_zprice TYPE ty_zprice,
          wa LIKE zppprice.
    DATA: salesdocument      TYPE bapivbeln-vbeln.
    DATA: header             LIKE bapisdhd1.
    DATA: headerx            LIKE bapisdhd1x.
    DATA: item               LIKE bapisditm  OCCURS 0 WITH HEADER LINE.
    DATA: itemx              LIKE bapisditmx OCCURS 0 WITH HEADER LINE.
    DATA: partner            LIKE bapiparnr  OCCURS 0 WITH HEADER LINE.
    DATA: return1            LIKE bapiret2    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapischdl
                                  WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                                  WITH HEADER LINE.
    DATA: conditions1        LIKE bapicond OCCURS 0 WITH HEADER LINE.
    DATA: order_text         LIKE bapisdtext OCCURS 0 WITH HEADER LINE.
    DATA: lv_index TYPE sy-index,
          v_tabix TYPE sytabix,
          chbox(1)  TYPE c VALUE ' ',
          repid     TYPE sy-repid,
          lv_itemno TYPE i VALUE 10,
          lv_pprice TYPE zprice3,
          lv_lines  TYPE i,
          lv_flg     TYPE c,
          lv_cnt TYPE i.
    repid = sy-repid.
    PERFORM displaydata.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'CMEMO'.
          DESCRIBE TABLE gt_zprice LINES lv_cnt.
    *      lv_index = 1.
          DO lv_cnt TIMES.
            lv_index = sy-index + 1.
            READ LINE lv_index FIELD VALUE chbox.
            IF chbox = 'X'.
              READ TABLE gt_zprice INTO gs_zprice1 INDEX sy-index.
              IF sy-subrc EQ 0.
                gs_zprice1-index = sy-index.
                APPEND gs_zprice1 TO gt2_zprice.
                CLEAR gs_zprice1.
              ENDIF.
    *          ELSE.
    *          WRITE: /01(253) 'Please Select At least One Record'.
            ENDIF.
            clear chbox.
          ENDDO.
          gt4_zprice[] = gt2_zprice[].
          SORT gt2_zprice BY vkorg vtweg spart kunnr.
          DELETE ADJACENT DUPLICATES FROM gt2_zprice
                          COMPARING vkorg vtweg spart kunnr.
          DESCRIBE TABLE gt2_zprice LINES lv_lines.
          IF lv_lines = 1.
            LOOP AT gt4_zprice INTO gs_zprice1.
              AT NEW kunnr.
                MOVE 'Y' TO lv_flg.
              ENDAT.
              IF lv_flg EQ 'Y'.
                PERFORM headerdata.
                PERFORM texts.
                CLEAR lv_flg.
              ENDIF.
              PERFORM itemdata.
              APPEND gs_zprice1 TO gt3_zprice.
            ENDLOOP.
            PERFORM call_function.
            PERFORM update_pricetable.
            PERFORM errorcheckandcommit.
            PERFORM displaydata.
    *   WRITE: /01(253) 'Please Select Again To Create Another Credit Memo'.
            REFRESH gt2_zprice.
            CLEAR chbox.
            CLEAR lv_lines.
          ELSE.
    *          WRITE: /01(253) 'Please Select Same Customer'.
            REFRESH gt2_zprice.
            CLEAR chbox.
            EXIT.
          ENDIF.
      ENDCASE.
    *&      Form  headerdata
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM headerdata.
    * header data
    * Sales document type
      header-doc_type = gs_zprice1-auart.
      headerx-doc_type = 'X'.
    * Sales organization
      header-sales_org = gs_zprice1-vkorg.
      headerx-sales_org = 'X'.
    * Distribution channel
      header-distr_chan  = gs_zprice1-vtweg.
      headerx-distr_chan = 'X'.
    * Division
      header-division = gs_zprice1-spart.
      headerx-division = 'X'.
    * Customer PO Number
      header-purch_no_c = gs_zprice1-bstkd.
      headerx-purch_no_c = 'X'.
    * Order Reason
      header-ord_reason = gs_zprice1-augru.
      headerx-ord_reason = 'X'.
    * Ref Doc Number
      header-ref_doc_l = gs_zprice1-xblnr.
      headerx-ref_doc_l = 'X'.
      headerx-updateflag = 'I'.
    ENDFORM.                    " headerdata
    *&      Form  Texts
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM texts.
    *Texts
      order_text-itm_number  = '000000'.
      order_text-text_id = '0001'.
      order_text-langu = sy-langu.
      order_text-text_line = gs_zprice1-xblnr.
      APPEND order_text.
    ENDFORM.                    " Texts
    *&      Form  itemdata
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM itemdata.
    * Partner data
    * Sold to
      partner-partn_role = 'AG'.
      partner-partn_numb = gs_zprice1-kunnr.
      APPEND partner.
    * ITEM DATA
      itemx-updateflag = 'I'.
    * Line item number.
      item-itm_number = lv_itemno.
      itemx-itm_number = 'X'.
    * Material
      item-material = gs_zprice1-matnr.
      itemx-material = 'X'.
    * Plant
      item-plant    = gs_zprice1-werks.
      itemx-plant   = 'X'.
    * Quantity
      item-target_qty = gs_zprice1-eohqty.
      itemx-target_qty = 'X'.
      APPEND item.
      APPEND itemx.
    *Fill schedule lines
      lt_schedules_in-itm_number = lv_itemno.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = gs_zprice1-eohqty.
      APPEND lt_schedules_in.
    *Fill schedule line flags
      lt_schedules_inx-itm_number  = lv_itemno.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'I'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
    *Conditions
      lv_pprice = gs_zprice1-sprice - gs_zprice1-eprice.
      conditions1-itm_number  = lv_itemno.
      conditions1-cond_type   = 'ZCPP'.
      conditions1-cond_value  = lv_pprice.
      conditions1-currency    = 'USD'.
      conditions1-cond_unit   = 'EA'.
      conditions1-cond_p_unt = 1.
      APPEND conditions1.
      lv_itemno = lv_itemno + 10.
    ENDFORM.                    " itemdata
    *&      Form  call_function
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM call_function.
      CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
           EXPORTING
                sales_header_in     = header
                sales_header_inx    = headerx
           IMPORTING
                salesdocument_ex    = salesdocument
           TABLES
                return              = return1
                sales_items_in      = item
                sales_items_inx     = itemx
                sales_partners      = partner
                sales_schedules_in  = lt_schedules_in
                sales_schedules_inx = lt_schedules_inx
                sales_conditions_in = conditions1
                sales_text          = order_text.
    ENDFORM.                    " call_function
    *&      Form  errorcheck
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM errorcheckandcommit.
    * Check the return table.
      LOOP AT return1 WHERE type = 'E' OR type = 'A'.
        EXIT.
      ENDLOOP.
      break singireddyn.
      IF sy-subrc = 0.
        WRITE: / 'Error in creating document'.
      ELSE.
    *Commit the work.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
             EXPORTING
                  wait = 'X'.
      ENDIF.
    ENDFORM.                    " errorcheckandcommit
    *&      Form  update_pricetable
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM update_pricetable.
      LOOP AT gt3_zprice INTO ls_zprice.
        READ TABLE gt_zprice INTO gs_zprice INDEX ls_zprice-index.
        IF sy-subrc EQ 0.
          v_tabix = sy-tabix.
          gs_zprice-crmemo = salesdocument.
          MODIFY gt_zprice
          FROM gs_zprice INDEX v_tabix TRANSPORTING crmemo.
        ENDIF.
      ENDLOOP.
    *  REFRESH:gt3_zprice.
      LOOP AT gt_zprice.
        wa-vkorg = gt_zprice-vkorg.
        wa-vtweg = gt_zprice-vtweg.
        wa-spart = gt_zprice-spart.
        wa-kunnr = gt_zprice-kunnr.
        wa-matnr = gt_zprice-matnr.
        wa-crdate = gt_zprice-crdate.
        wa-efdate = gt_zprice-efdate.
        wa-sprice = gt_zprice-sprice.
        wa-eprice = gt_zprice-eprice.
        wa-eohqty = gt_zprice-eohqty.
        wa-aohqty = gt_zprice-aohqty.
        wa-auart = gt_zprice-auart.
        wa-bstkd = gt_zprice-bstkd.
        wa-werks = gt_zprice-werks.
        wa-augru = gt_zprice-augru.
        wa-xblnr = gt_zprice-xblnr.
        wa-crmemo = gt_zprice-crmemo.
        MODIFY zppprice FROM wa.
        CLEAR: wa, zppprice.
      ENDLOOP.
    ENDFORM.
    *&      Form  Displaydata
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM displaydata.
      SET PF-STATUS 'LIST'.
      NEW-PAGE LINE-SIZE 253.
      SELECT * FROM zppprice
               INTO TABLE gt_zprice.
      WRITE: /01(253) sy-uline.
      LOOP AT gt_zprice INTO gs_zprice.
        SELECT SINGLE name1 FROM kna1 INTO kna1-name1
                       WHERE kunnr = gs_zprice-kunnr.
        WRITE: /01 sy-vline,
                02 chbox AS CHECKBOX,
                04 sy-vline,
                05 gs_zprice-vkorg,
                10 sy-vline,
                11 gs_zprice-vtweg,
                14 sy-vline,
                15 gs_zprice-spart,
                18 sy-vline,
                19 gs_zprice-kunnr,
                30 sy-vline,
                31 kna1-name1,
                67 sy-vline,
                68 gs_zprice-matnr,
                87 sy-vline,
                88 gs_zprice-crdate,
                98 sy-vline,
                99 gs_zprice-efdate,
                110 sy-vline,
                111 gs_zprice-sprice,
                127 sy-vline,
                128 gs_zprice-eprice,
                145 sy-vline,
                146 gs_zprice-eohqty,
                157 sy-vline,
                158 gs_zprice-aohqty,
                169 sy-vline,
                170 gs_zprice-auart,
                175 sy-vline,
                176 gs_zprice-bstkd,
                212 sy-vline,
                213 gs_zprice-werks,
                218 sy-vline,
                219 gs_zprice-augru,
                223 sy-vline,
                224 gs_zprice-xblnr,
                241 sy-vline,
                242 gs_zprice-crmemo,
                253 sy-vline.
    *    CLEAR zppprice.
      ENDLOOP.
      WRITE: /01(253) sy-uline.
    *  CLEAR zppprice.
    *  CLEAR chbox.
    ENDFORM.                    " Displaydata

    Hello Neelu,
    once user select check box and it will create credit memo,so selected records it contains one value would be 'X'.,
    After BAPI FM use delete command where field = 'X'. so it will delete those records. so now you have remaining records.
    do not use exit or someother command,here you are just deleting the internal table data  and so no worries.
    <b>it any of the selected records have CM number can I come out of the loop and exit.</b>
    look at real time requirement ,some time user will select one check box and create credit memo ,again he will select other check boxes too. so use simple delete command.
    Thanks
    Seshu

  • Turkish Character and Check Box "?" Problem in XML Publisher

    In aplication and XML Publisher I must use Turkish Characters e.g. 'ş','ı','ğ','ç','ö' and check boxes. In html preview there is no problem, I can see all of them correctly. Hovewer in PDF preview in XML Publisher and also PDF output in Oracle Application all these Turkish Characters and Check Boxes looks like question mark (?). How can I solve this problem ?
    Thanks for helps....

    Hi Tim,
    Related to Special Italian characters, when I try with "Courier New" font with static data,the XML Preview display those characters.But when those chars come from XML source file,they get vanished.I tried two cases:
    Case1 ) IN EBS,I have attached courbi.ttf(font file) to the template manager(followed as per instructions in Font mapping section in User Guide).
    When I try running the report ,its getting completed with Warning.
    Case 2) I have also modified xdo.cfg ( as per Doc ID:400755.1 www.metalink.oracle.com)-
    In both cases ,I am not acheving the desired results.
    Please let me know where I am going wrong.
    Thanks and Regards,
    Kaveri

  • Urgent Help Required for Check Box in Table Column

    Hi all,
    Could any body help me to solve my problem?
    First of all I have created a table whose one column is check box. The column of the tables are Name,Phone,ID,Address and a checkBox columns.In one view
    the table will be found with data. I want to click on some of the rows(suppose there are 5 rows, but based on some condition I have selected the check box of 3 rows).
    Next there will be a button(Supose SEND Button).
    After selecting the check box I want to press that button and then a new window will come which will show two tables. one for  selected rows(with the same columns name except check box) and another for Unchecked rows with the same column name(Name,Phone,ID,Address).
    Could any body help me by sending the details and code?
    Thanks and Regards.
    Sudip

    Hi Sudip,
    1) create custom controller and appropriate context structure there (dataNode(Name,Phone,ID,Address,Check))
    2) create view StartView. Map data node from custom controller to node in view. Create table and bind context node attributes to appropriate table columns.
    3) create view ResultView. Map data node from custom controller to node in view. Create 2 nodes (CheckedData, UncheckedData) with supply methods. Create filtering implementation in supply methods (add checked and unchecked node elements to appropriate nodes).
    4) create new window with resultView as default view
    4) in startView in button action handler put something like
         IWDWindowInfo _windowInfo = wdComponentAPI.getComponentInfo().findInWindows("Popup");
         IWDWindowManager manager = wdComponentAPI.getWindowManager();
         IWDWindow _window = manager.createWindow(_windowInfo, true);
         _window.open();        
    So, just tried localy and it works.
    Best regards, Maksim Rashchynski.

  • BSP: How to create check box in a column of a Table View

    Hi All,
    I have a table view in Web IC scenario. my requirement is to display check box in one of the column of the table view.. so that i can select multiple lines from the table and do some calculations!.
    Anybody have any hint/clue
    Thanks in advance,
    sudeep v d.

    Hi,
    This can be achieved by using a Table iterator.
    Please check the standard examples for this.
    Thanks,
    Rashmi.

  • Passing check box values to WHERE clause

    Hi,
    I have created a Data block - 'CONTACTS' (Database data block)
    and has database item - 'Code', 'Descr'
    The number of records displayed is set to 5.
    Value When checked - 'Y'
    Value When Unchecked - 'N'
    Check box mapping of other values - 'unchecked'
    I am writing the code inside 'WHEN BUTTON PRESSED'. My main objective is to return the count of records based
    based on several conditions and one among them is CODE which is can be single or multiple based on the check box checked.
    The requirement is when i check one or multiple checkboxes, i should pass the 'Code' item values to the WHERE clause.
    Right now whenver i am trying to do so, only the current record value is copied to the WHERE clause.
    I have tried using basic loop but things havnt worked.
    Logic tried with basic LOOP
    BEGIN
    GO_BLOCK('CONTACT');
    IF :contact.cb = 'Y' THEN
    LOOP
    IF p_where is null then
    p_where := :contact.code;
    else
    p_where := p_where ||','||:contact.code;
    end if;
    exit when :system.last_record = 'TRUE';
    next_record;
    END LOOP;
    end if;
    MESSAGE ( 'p_where :'||p_where);
    MESSAGE (' ');
    END;
    And Even if i write the LOOP before the first IF, it return me the current record value and move to the last record.
    please guide me where am i wrong.
    Regards.
    Anoop.

    Try something like this:
    FIRST_RECORD;
    LOOP
      IF :contact.cb = 'Y' THEN
        IF p_where is null then
           p_where := :contact.code;
         else
           p_where := p_where ||','||:contact.code;
         end if;
       END IF;
      exit when :system.last_record = 'TRUE';
      next_record;
    END LOOP;
    -- END LOOP;
    MESSAGE ( 'p_where :'||p_where);
    MESSAGE (' ');
    END;

  • Disable Check box in tabular form

    Hi,
    I am working on apex4.1. I have created a tabular form.There is 2 columns Approve and Cancel. if I tick on cancel check box then Approve check box column should disable and vice versa.
    How can i do this ?
    Thanks & Regards
    Vedant

    hi,
    this thread maybe help you
    Tabular Form: Enable/Disable a field based on the status of a check box
    regards,

Maybe you are looking for

  • How to implement a java class in my form .

    Hi All , I'm trying to create a Button or a Bean Area Item and Implement a class to it on the ( IMPLEMENTATION CLASS ) property such as ( oracle.forms.demos.RoundedButton ) class . but it doesn't work ... please tell me how to implement such a class

  • Unauthorized songs stop play from Party Shuffle.

    I have a mac laptop that is authorized for two iTunes store accounts, and a computer authorized for only one. I get audio files from a shared source, a linux machine with a pair of harddrives in RAID, but after importing all of the songs into iTunes,

  • Types in Java

    Hi all, is there any online article/ paper explaining the type system in Java? How to check the type compatibility in Java? Thanks.

  • How to find whether a text is single bit or double bit?

    Hi All,   We have a requirement to restrict the user from entering any double bit characters in a text field. Words in English and numbers can be allowed. If anything apart from this, an error message needs to be given. Is anybody aware of how we can

  • BackUp iphone without encryption

    Hello, I have an iPhone 4S and I backed it up with a password (encrypted) in iTunes. Then, I restored my iPhone and since I didnt know the password of the Back Up, I used the icloud back up to restore it. Now I want to use iTunes do back it up but in