Medruck script Item line changes

Hi
how to track changes in item line when ever changes are made in item level in which strucutre or special fields it stores tht value.

Hi,
  The item changes can be tracked using the CDHDR (for header changes) and CDPOS (item changes)tables.
The object class OBJECTCLAS has to be passed as 'EINKBELEG' for Purchase orders. And the object id OBJECTID has to be the purchase order number.The TABNAME field has to contain the table name (EKKO in the case of purchase orders).
Check the below FM also:
CHANGEDOCUMENT_READ_HEADERS
CHANGEDOCUMENT_READ_POSITIONS
Thanks.

Similar Messages

  • Line Item Value change in MIRO Transaction

    I have one  requirement i.e as follows.
    <b>Line Item Value change in MIRO Transaction</b>
    After getting the items in table control of  the miro screen of a particular order.
    I have to clicked on edit own condition of selected item.
    then it will show another screen ( create invoice document item - conditions)which have the all condtions details like
    Fra1 , frb1 , sd%  ,  Penalty % , gross price , frieght charges etc.
    In this screen first time it is showing line item as
    in the miro intial screen i.e. if u click po item
    10 it will show 10 only.
    after  updating fra1  value , i came back to the main screen at that time it is asking that select the any one of three.
    after selecting manual selection its fra1 was changed.
    once again if i go to the same line item by clicking
    the edit own condition(13 column if u select all information in textbox whixh is above tablecontrol right corner) it is showing line item as 1 in screen ( create invoice document item - conditions) which  should be line item as 10. ( here i took line item as 10)
    Please clarify this, why it is showing
    first time as  a original line item and
    after updating it is showing like
    for line item 10 -
    1
                   20 -
    2
                  100 -
    10
                  110 -
    11.

    "...it does not work..." is probably the worst description of a problem you can imagine. As an application developer you should know that. Do you use firebug to see what happens once it "does not work"? Any better hints?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Last line item gets changed to first line item for cs01

    HI experts,
               I have writen a BDC for Tcode cs01.
    I am facing a problem in that.If sucppose there are 4 line items,
    the first three line itmes are getting uploaded correctly but the kast line item gets changed to first line item.
    below is part of my code.
    DELETE ADJACENT DUPLICATES FROM T_MAT COMPARING MATNR.
    SORT T_MAT BY MATNR. "HEADER DATA
    SORT T_BOM BY MATNR1. "ITEM DATA
    *CLEAR : COUNTER, ITEM_NO.
    LOOP AT T_MAT INTO W_MAT.
      REFRESH GT_BDCDATA.
      CLEAR   GW_BDCDATA.
    perform bdc_dynpro      using 'SAPLCSDI' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29N-STLAN'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RC29N-MATNR' W_MAT-MATNR.
                                 'lejn44001'.
    perform bdc_field       using 'RC29N-WERKS' W_MAT-PLANT.
                                 '4600'.
    perform bdc_field       using 'RC29N-STLAN' W_MAT-BOM_USAGE.
                                 '1'.
    *perform bdc_field       using 'RC29N-DATUV'
                                 '22.06.2010'.
    perform bdc_dynpro      using 'SAPLCSDI' '0110'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RC29K-BMENG'
                                  '1'.
    perform bdc_field       using 'RC29K-STLST'
                                  '1'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29K-EXSTL'.
    perform bdc_dynpro      using 'SAPLCSDI' '0111'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29K-LABOR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    LOOP AT T_BOM INTO W_BOM WHERE MATNR1 = W_MAT-MATNR.
      cnt = cnt + 1.
      CONCATENATE  '0' CNT INTO VAR.
       ADD 1 TO COUNTER.
       ITEM_NO = 10 * COUNTER.
       OVERLAY ITEM_NO WITH '0000'.
       W_BOM-ITM_NO = ITEM_NO.
    perform bdc_dynpro      using 'SAPLCSDI' '0140'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POSTP(03)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    CONCATENATE 'RC29P-IDNRK(' var ')' INTO new_mark.
    PERFORM bdc_field USING new_mark W_BOM-BOM_COMP.
    clear new_mark.
    CONCATENATE 'RC29P-MENGE(' var ')' INTO new_mark.
    PERFORM bdc_field USING new_mark W_BOM-QTY.
    clear new_mark.
    CONCATENATE 'RC29P-POSTP(' VAR ')' INTO NEW_MARK.
    perform bdc_field USING new_mark W_BOM-ITM_CAT.
    clear new_mark.
    clear VAR.
      ENDLOOP.
    loop at T_BOM INTO W_BOM WHERE MATNR1 = W_MAT-MATNR.
    perform bdc_dynpro      using 'SAPLCSDI' '0130'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POSNR'.
    perform bdc_field       using 'RC29P-POSNR' V_CNT.
                                 '0010'.
    perform bdc_field       using 'RC29P-IDNRK' W_BOM-BOM_COMP.
                                 'PURCHASECOST'.
    perform bdc_field       using 'RC29P-MENGE' W_BOM-QTY.
                                 '20'.
    perform bdc_field       using 'RC29P-MEINS'
                                  'M'.
    perform bdc_dynpro      using 'SAPLCSDI' '0131'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POTX1'.
    perform bdc_field       using 'RC29P-SANKA'
                                  'X'.
    V_CNT = V_CNT + 10.
    ENDLOOP.
    CLEAR V_CNT.
      perform screen_data. " IS ALL ABOUT CALLING TRANSACTION......
      ENDLOOP.
    following is The input file format m providing.
    Material     Plant     BOM usage     Item No     Item Cat     BOM component     QUANTITY
    WRJN46106     4600     1     10     z     PURCHASECOST     10
    WRJN46106     4600     1     20     z     SOURCINGCOST     15
    WRJN46106     4600     1     30     z     INVRESERVE     12
    WRJN46106     4600     1     40     Z     INVRESERVE1     20
    in this the first 3 line items are coming correctly but the 4th one gets changed to
    first line item.
    e.g INVRESERVE1 changes to purchasecost.
    plz help.
    Thanks n regards,
    Ashmita singh.

    Hi Suneel,
    I hardly can't believe that. There must be an mistake by your own in the smartform itself. Would you please share some screens or better, the smartform-XML itself. You can pass out everything else and just share the table and a dataset to try this.
    I'm pretty sure that there is something wrong with the settings or even the loop itself. I never faced a problem like that or even heared about such things.
    I would love to have a look inside.
    Before you share it, create a new one with just the table inside and try it with the same data. Perhaps it is just of to much folders or something like that, so the generating comes in trouble.
    Regards
    Florian

  • Unable to change document through FI_DOCUMENT_CHANGE for second item line

    Hi All,
             I am unable to change document through FM FI_DOCUMENT_CHANGE for second line item (buzei 002).
             I want to change assignment field(ZUNOR) for second item line.( Please be noted that bseg-koart for this document is maintained as 'S' (G/L account).
             Please give some inputs on the same,it will be grate for me.
    Rgds,
    Raghav

    First some tests, try to change the value with transacions FB02 or FB09, if you cannot that may come from the Field Status Group associated with the account and posting keys.
    - FS03 to find Field Status Group of the account
    - SPRO then Financial Accounting, General Ledger Accounting, Business Transactions, Carry Out and Check Document Settings, Maintain Field Status Variants to find Field Status Group definition  (or SM34 on view cluster V_T004V)
    Regards,
    Raymond

  • Change profit center for accounting document on item line

    HI
    I need to change profit center for accounting document on item line, for that purpose I have used user-exit EXIT_SAPLV60B_004, but my new profit center gets latly overwritten in FM CO_DOCUMENT_CHECK (which is called from FM AC_DOCUMENT_CREATE). It gets overwritten from COBL. Is there any way to solve this?

    HI,
    possible reasons are :
    In GR document profit center pulled from PO Material :
    If you have ordered with material code, must check profit center assigned into material by mm03/Plant Data2
    If you have ordered without material code, than check cost center assigned Profit center by 1KE4

  • Line item number change

    i am creating delivery w/r to order, where once of my line item (line item-100 in order) is missing in delivery. and the item (line item-110 in order has taken the place of line item 100). i want to copy the same line item number from order to delivery, so if some item is missing then i can find it out line,, in this case line item 100 is missing in delivery but due to the fact that line item 110 as taken the place as 100 in delivery i am not able to find.
    plz guide as how to maintain, the same line item number from order to delivery to billing

    Hi,
    You can maintain these settings in Copy Controls from Delivery to Order (VTLA), IN header Details, you have a Tab Control Data, in which you can check "Copy Item Number", this will copy the item number from the preceding document to the next document.
    Try to replicate the same in your QAS and do update the same if it is helpful
    Regards
    Vamsi Javaji.

  • [solved]script fails when changing profile through powerdevil.

    i use ondemand governor and i want to change up_threshold value.
    Whenever i change profile through powerdevil up_threshold gets its default vaule of 80.
    what i did was to create a script named threshold containing the lines:
    #!/bin/bash
    sudo sh -c 'echo 50 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold'
    i have also set through /etc/sudoers that this script is passwordless for my user.
    if i run the script, it successfully changes the value. It also runs successfully if i put it in startup.
    My problem is that it fails to run when i choose it to run when a profile loads through powerdevil. I am refering to the feature shown below :
    at first i thought that this function has a problem. so i chose to run kate, and when i changed profile, kate started immediately. So i guess that there is a problem with my script.
    Any ideas?
    Last edited by mechmg93 (2009-10-20 20:14:30)

    I hope someone reads this thread also its already marked as solved...
    Anyway, i would like to use CPU frequency scaling, but in the powermanagement settings,
    i cant shoose anything for frequency scaling.
    What do i have to do to be able to set "ondemand" or "always lowest frequency"?
    Wich daemons and/or modules do i have to activate to change the frequency policy?
    Would be very nice if someone could help me.

  • How to customize the Product Item lines numbers incrementation in Orders?

    Hello everyone,
    We are using structured products in CRM 7.0 that are replicated from ECC SD. These products consist of a high level product to which are attached sub-level products (BOM in ECC SD).
    When we select a high-level product in a CRM sales transaction (order, quotation...), the system automatically does the BOM explosion, with the 2 levels structure, but it assigns an item line number of 10 to the first line and then increments by 1, which gives :
    10 "item line 01"
    11 "item line 02"
    12 "Item line 03";...etc
    This is not correct for us, because the user might have to insert manually new items in-between the items automatically added by SAP, so, we need the system to change this automatic numbers assignment : we would like tthat the numbers be 10, 20, 30...
    so that the user can insert items with numbers like 11, 12....21, 22.
    Where can the number incrementation be customized or is there a BADI for that?
    thanks
    Ludovic

    This is set in transaction type customazing. go to spro>crm>transactions>basic settings>define transaction types. Open your transaction type and underitem number section set desired values for:
    - Increment Item  for main items
    - IncrementSubItm  for subitems

  • Archiving - removal of deletion indicator on p.o. item line

    Hi all,
    we've run into some problems in 4.7 with old p.o.'s which have been delete marked of the archiving program (step 1 - residence time one), where the user now want's to remove the deletion mark again, - but this is not possible, as the purch. req. has already been archived :o(
    Example:
    Purchase orders have a residence time as follows:      
    Residence time 1:       30 days
    Residence time 2:       395 days
    Purchase requisitions have a residence time as follows:
    Residence time 1:       30 days (we're having a one step archiving procedure for MM_EBAN)
    Now the p.o. has got a delete mark on item line according to residence time 1 = 30 days (MM_EKKO) and afterwards the purch. req. has been archived (according to residence time 1 = 30 days (MM_EKKO). The user can't manually remove the deletion mark from the p.o. item line again, because of an error saying "purchase requisition xxx, item xxx does not exist"
    What can we do, to remove the delete mark from the p.o. item line again - can the link between the p.o. and the archived purch. req. be removed ?
    Thanks in advance for your reply :o)
    Best regards/Med venlig hilsen
    Ulla Köhler Hansen
    Application Consultant, SAP R/3 - SRM/PLM Solutions
    The Danfoss Group
    Danfoss Information Technology
    Loc. 1.0.53
    Ellegaardvej 25 A
    DK-6400 Sønderborg
    Denmark
    Tel.: + 45 7488 3913
    Fax: + 45 7488 4715
    e-mail: [email protected]
    http://www.danfoss.com/
    This message and any files transmitted with it may be confidential and are intended only for
    the individual named. If you are not the named addressee you should not disseminate, distribute
    or copy this e-mail. Please notify the sender immediately by e-mail if you have received
    this e-mail by mistake and delete this e-mail from your system.

    Hi
    I have made the change in your code , try this code .
    it_bapimepoitem-po_item = '00100'.
    *it_bapimepoitemx-po_item = 'X'.*
    it_bapimepoitem-DELETE_IND = ' '.
    it_bapimepoitemx-DELETE_IND = 'X'.
    APPEND it_bapimepoitem.
    APPEND it_bapimepoitemx.
    Hope it will help you .
    Regards
    Rahul

  • Item line heading

    Hi,
    i need to print item line heading for each new page.
    I have only one window, main in the page and i have line items in the same window. I'm trigerring different sections using text elements. when the line item doesn't fit in the page its getting printed in the next page, which is the desired funct.
    however, when it goes to the next page , i need to print item header for every new page. can someone let me know how i can do this with out making any changes to the layout.
    Thanks,
    kumar.

    this can be done in different ways...
    If you can modify the layout create a window and place the headings in this new window and call this window in all form pages.
    If you can modify the driver program, it can be done by using text elements.
    if you don't want to modify layout and program, try this below code...
    place your item hedings in main window...
    apply the follow ing logic...
    Example..
    if &temp& NE &nextpage&
    flag = 'Y'.
    endif.
    If flag = 'Y'.     " note set flag = 'y' for first time
    temp = page.
    Headings goes here
    flag = 'N'.
    endif.
    ***line items goes here.....
    try the rough example given above. close the thread once your question is answered.
    Regards,
    SaiRam

  • Header condition with acess sequence, don't want to distribute to item line

    We have defined a condition type as a header condition. We need to use access sequence to automatically determine a invoice fee when creating invoices. We have defined the condition type as a group routine with condition routine 1 (we only want it to show on the invoice). We have marked the "Changes which can be made" as both Header and Item condition. The problem is that when creating the invoice, the header condition distributes on the item lines, our client don't want that cause it will be a problem on the booking side (reporting).
    Is there any way of handling this so that the invoice fee ONLY shows on the header, and don't distribute on lines?
    Link to definition of the condition type:
    <a href="http://img222.imageshack.us/img222/2787/zgebinvoicefeerx4.jpg">Invoice Fee</a>
    Best regards
    Simen.

    Hi Simen,
                   we have a similar requirement. Did you get it resolved. We are currently looking at 2 aproaches
    1.) To leave it as item condition and de-activate it for all but one line and while printing remove from the item and print as seperate line.
    2.) Try and add it as a service item to the invoice.
    In both cases the condition will be mapped to a seperate GL a/c.
    Thanks
    Deep

  • BAPI_SALESORDER_CHANGE insert sales order item lines ERRORS

    Hello experts,
    i have to insert new item lines for a given sales order document number.
    i use bapi_salesorder_change but it does not work.
    these are the messages in the return table:
    Error 1.
    Message: ORDER_HEADER_IN has been processed succesfully
    Message: No item category available
    Message: Error in ITEM_IN
    Message: Condition cc_cond is not allowed as header condition
    Message: Sales document was not changed
    Error 2.
    Message: ORDER_HEADER_IN has been processed succesfully
    Message:Material is not defined for sales org., distribution chan, language DE {but i checked the table mvke with the matnr and sales org and distribution chanel and the material exists}
    Message: Error in ITEM_IN
    Message: Condition cc_cond is not allowed as header condition
    Message: Sales document was not changed
    here is the code:
      i_t_item-itm_number    = p_posnr.
      i_t_item-material      = p_matnr.
      i_t_item-target_qty    = p_qty.
      i_t_item-plant         = p_plant.
      i_t_item-hg_lv_item = p_uepos.
      i_t_item-price_date   = p_preisdat.
       i_t_item-prc_group2   = cc_prc_group.
      APPEND i_t_item.
    *setting conditions
      i_t_bapicond-itm_number  = p_posnr.
      i_t_bapicond-cond_type   = cc_condition_type.
      i_t_bapicond-cond_value  = l_netwr.
      i_t_bapicond-conpricdat  = gc_datum.
      i_t_bapicond-currency    = cc_eur.
      APPEND i_t_bapicond.
      i_t_itemx-updateflag = cc_i. {= 'I'}
      i_t_itemx-itm_number = p_posnr.
      i_t_itemx-material      = cc_x.
      i_t_itemx-target_qty    = cc_x.
      i_t_itemx-plant         = cc_x.
      i_t_itemx-hg_lv_item    = cc_x.
      i_t_itemx-price_date    = cc_x.
      i_t_itemx-prc_group2    = cc_x.
      APPEND i_t_itemx.
      i_t_bapicondx-updateflag = cc_i.{'I'}
      i_t_bapicondx-itm_number = p_posnr.
      i_t_bapicondx-cond_type = cc_x.
      i_t_bapicondx-cond_value = cc_x.
    i_t_bapicondx-conpricdat = cc_x.
      i_t_bapicondx-currency = cc_x.
      append i_t_bapicondx.
      CLEAR: l_behave, sy-subrc.
      CLEAR i_t_header.
      i_t_header-updateflag = cc_u. {='U'}
      APPEND i_t_header.
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
           salesdocument               = sales_ord_number
       ORDER_HEADER_IN       =
           order_header_inx            = i_t_header
           simulation                      = cc_x
           behave_when_error         = l_behave
       INT_NUMBER_ASSIGNMENT       = ' '
       LOGIC_SWITCH                =
        TABLES
           return                              = i_t_return
           order_item_in                  = i_t_item
           order_item_inx                = i_t_itemx
       PARTNERS                        =
       PARTNERCHANGES              =
       PARTNERADDRESSES            =
       ORDER_CFGS_REF              =
       ORDER_CFGS_INST             =
       ORDER_CFGS_PART_OF          =
       ORDER_CFGS_VALUE            =
       ORDER_CFGS_BLOB             =
       ORDER_CFGS_VK               =
       ORDER_CFGS_REFINST          =
       SCHEDULE_LINES         =
       SCHEDULE_LINESX             =
           order_text                    = i_t_text
       ORDER_KEYS                  =
           conditions_in               = i_t_bapicond
           conditions_inx             = i_t_bapicondx
         extensionin                 = i_t_extensionin.
      IF i_t_return-type EQ cc_s OR i_t_return-type EQ cc_w OR i_t_return-type EQ cc_i.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = cc_x.
        PERFORM return_code.
      ELSE.
        p_flag = cc_x.
        PERFORM return_code_err.
    to rollback the transation for error records
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      ENDIF. " IF i_t_return-type EQ 'S'
    i hope you can tell me where my code is wrong.
    Best Regards,
    Emilia

    Hello ,
    Error 2
    i checked about the material number and it seems that everything is in order.
    so this is not the problem.:(
    Error 1
    about the item category error: do i get this error because i don't fill the field ITEM_CATEG?
    Error 1 and Error 2
    About Message: Condition cc_cond is not allowed as header condition
    i really don't undesrtand what this is about.
    thank you for your answer.
    Best regards,
    Emilia

  • Why the doc total amount is not matched with the total item line amount?

    Hi,
    Recently when i try to update something in sales order via my add-on, i got an error said u201CThere is a difference between the document total and its components.  [ORDR.DocTotal][line: 0] Iu201D Then i checked the sales order in SAP B1, I found the document total amount was not matched with the item line total amount. Actually the item line is quite simple, there is only one item line with qty 1. How comes the document total could be different with the amount from item line? I know the document total amount is a read-only field which is calculated automatically by SAP. This is really weird for us, we don't know how this happened.
    Has anyone experienced similar situation like mine and how this happens?
    Thanks,
    Lan

    I am having this same issue and I have additional information.
    I am on ver. 8.8 PL 16.
    Periodically (mulitiple times a week), when a Sales Order is created, the Doc Total amount is -zero- when there are clearly items that have a price associated with them. This causes an error when Adding the document. Sometimes, I can just change the quantity of one of the items, which forces the Doc Total to update.  Most of the time this does not work, though.  I end up having to restart the SAP client and then everything begins to work as it should.
    This behavior is occuring on mulitple machines in our office.
    Earlier in this thread, Rahul mentioned that they currency rounding was turned off and that this could be part of the problem.  In fact, we were having issues with Currency Rounding and did turn it off not long ago.  Rahul, can you explain better what you meant by "give the proper amount so that you can overcome the error..."
    Randy Davis
    Denver, CO
    Edited by: Randy Davis on May 16, 2011 2:01 PM

  • Script help -- to change the path of some script

    hi
    is it possible to make a script(perl or shell) which will change the location of sql script those are called from different shell script?
    i have some shell script which is calling some sql scripts.now i need one script which will ask for the path of those script once and set the path of those sql script in those shell script.these shell script only containing a line
    "sqlplus / as sysdba @<path of the sql script>/script.sql" now i need one script which will change <path of the sql script> .is it possible to do ??
    i need some help from gurus ...
    rgrds
    Edited by: new2appsdba on Aug 20, 2010 7:16 PM

    Hi
    can you say how to pass this mpath to n number of shell script??
    i need to update n number of script.ie. i need to pass $mpath variable to n number of script.
    example:
    profile_chk.sh contain only :
    sqlplus apps/<pass> @/u02/uatdb/.DBA-Scripts/profile_chk.sqlprofile_chk.sql contain:
    SELECT A.PROFILE_OPTION_ID,A.LEVEL_ID,A.LEVEL_VALUE,A.PROFILE_OPTION_VALUE,V.USER_PROFILE_OPTION_NAME
    FROM APPS.FND_PROFILE_OPTION_VALUES A, APPS.FND_PROFILE_OPTIONS_VL V
    WHERE A.PROFILE_OPTION_ID =V.PROFILE_OPTION_ID
    AND V.USER_PROFILE_OPTION_NAME like '%Debug Log%';
    select t.user_profile_option_name, profile_option_value
    from apps.fnd_profile_options o
    ,apps.fnd_profile_option_values v
    ,apps.fnd_profile_options_tl t
    where o.profile_option_id = v.profile_option_id
    and o.application_id = v.application_id
    and profile_option_value = 'Y'
    and start_date_active = SYSDATE
    and o.profile_option_name = t.profile_option_name
    and level_id=10001
    and (upper(t.user_profile_option_name) like '%PERSONALIZ%'
    and upper(t.user_profile_option_name) not like '%PERSONALIZ%WYSIWYG%'
    order by user_profile_option_name;
    select t.user_profile_option_name, profile_option_value, application_name
    from apps.fnd_profile_options o
    ,apps.fnd_profile_option_values v
    ,apps.fnd_profile_options_tl t
    ,apps.fnd_application_tl a
    where o.profile_option_id = v.profile_option_id
    and o.application_id = v.application_id
    and profile_option_value = 'Y'
    and start_date_active = SYSDATE
    and o.profile_option_name = t.profile_option_name
    and a.application_id = level_value
    and level_id=10002
    and t.language = a.language
    and upper(t.user_profile_option_name) like '%PERSONALIZ%'
    order by user_profile_option_name, application_name;now i need a script say install.sh
    which will update the location of profile_chk.sql in the profile_chk.sh.
    this install.sh will contain n numbers of
    install -c profile_chk.sh /usr/bin so that all user can access this shell script as a command.
    whenever the testing goes one server contains two instance so each everytime i need to monitor locks and invalid objects and etc so i need to use this scripts as a commands.for that reason i need this install -c for each scripts.and i need to visit different places also.so ineed this install.sh.my idea is basically work properly once and enjoy times lazily :-) so whenever i move to new place i shall only run this install.sh once and use those scripts lazily.
    rgrds

  • How to pass Schedule lines of an item Line to 'BAPI_QUOTATION_CREATEFROMDAT

    Hi Friends,
    I am trying to create Sales Quotation using the  'BAPI_QUOTATION_CREATEFROMDATA2'  from Webdynpro Application.
    I am able to create the quotation with Line items, but I am not able to pass the multiple schedul line for an Item line.
    it takes,but it checks the item availabilty and propses the delivery propsal dates.
    but my requirement is It should take only the schedule line items which I am passing to BAPI,because I do the availability check in my application and pass those schdule line items to BAPI.
    If I pass only one schedule line item then should create only with one schdule line item,If I pass Muliple then it should create schedul lines for item line.
    Please help me in solving the issue.
    Regards,
    Xavier.P

    Hi max,
    loop at lt_nd_quote_items into ls_nd_quote_items.
        lv_item = lv_item + 10.
    *Check weather Availablity check is done or not.
        read table lt_nd_schedule_lines into ls_nd_schedule_lines
                           with key matnr = ls_nd_quote_items-matnr.
        if sy-subrc = 0.
          loop at lt_nd_schedule_lines into ls_nd_schedule_lines
                            where matnr = ls_nd_quote_items-matnr
                            and   kwmeng = ls_nd_quote_items-kwmeng.
            lv_sch_line = lv_sch_line + '0001'.
            wa_order_schedule-itm_number         = lv_item.
            wa_order_schedule_inx-itm_number     = lv_item.
            wa_order_schedule-sched_line         = lv_sch_line.
            wa_order_schedule_inx-sched_line     = lv_sch_line.
            wa_order_schedule-req_date           = ls_nd_schedule_lines-delv_date.
            wa_order_schedule_inx-req_date       = c_abap_true.
            wa_order_schedule-req_qty            = ls_nd_schedule_lines-kwmeng.
            wa_order_schedule_inx-req_qty        = c_abap_true.
            wa_order_schedule-SCHED_TYPE         = 'BP'.
            wa_order_schedule_inx-SCHED_TYPE     = 'X'.
            wa_order_schedule-MS_DATE = ls_nd_schedule_lines-delv_date.
            wa_order_schedule_inx-MS_DATE = 'X'.
            wa_order_schedule_inx-updateflag     = 'I'.
            append:wa_order_schedule to  it_order_schedule,
                   wa_order_schedule_inx to it_order_schedule_inx.
            clear:ls_nd_schedule_lines.
          endloop.
        else.
    *If no Availablity check is done,pass the item details to schedule lines.
          lv_sch_line = lv_sch_line + sy-tabix.
          wa_order_schedule-itm_number         = lv_item.
          wa_order_schedule_inx-itm_number     = lv_item.
          wa_order_schedule-sched_line         = lv_sch_line.
          wa_order_schedule_inx-sched_line     = lv_sch_line.
          wa_order_schedule-req_date           = ls_nd_quote_items-delivery_on.
          wa_order_schedule_inx-req_date       = c_abap_true.
          wa_order_schedule-req_qty            = ls_nd_quote_items-kwmeng.
          wa_order_schedule_inx-req_qty        = c_abap_true.
          wa_order_schedule_inx-updateflag     = 'I'.
          append:wa_order_schedule to  it_order_schedule,
                 wa_order_schedule_inx to it_order_schedule_inx.
        endif.
        clear:ls_nd_quote_items,lv_sch_line.
      endloop.
    Max,  the internal table lt_nd_schedule_lines  is containg my schedule lines,if there are no lines in that table i am just passing the default line item details so that the BAPI take care of schdule line for that Line item.
    Could you please help me in figuring the issue?
    Regards,
    Xavier.P

Maybe you are looking for

  • [Original iPhone] To 2..2 or not 2..2 that is the question!

    Would like to hear from Original iPhone owners. I see so many different issues and while 2.1 (or anything after 1.1.4) is loaded with its own issues and unreliability, wondering why get rid of the problems I know and have to find out new ones. Let me

  • Wi-Fi module in the MacBook Air'12

    What's the Wi-Fi module in the MacBook Air'12 ? What is the maximum speed on the 2.4 GHz and 5 GHz ? And, how many antennas in it ? Where can I see that?

  • Sender file comm channel shows error status when no file is in source

    Hello, I have this sender file communication channel which is picking up files using ftp. <b>It’s working fine</b> but if there is no file in the source directory during polling, it shows an error status in communication channel monitor. The error me

  • How can i get my samsung galaxy 2 to print to my hp 5520 printer?

    How can i get my samsung galaxy 2 to print to my HP Photsmart 5520 printer; is there an app?  When I try to print I get the following message: You can only print on Samsung printer. Continue?  When I go to Wi-Fi settings in my phone it shows that I a

  • How do I remove a hidden volume?

    Ok, I used a service called g.ho.st which created a ftp.g.ho.st volume in my volumes list on my mac. Here is a screenshot: http://i27.tinypic.com/35jaz68.png Now I cannot get rid of them. Maybe I am paranoid, but I feel like its a way for a hacker to