Set new status for reas for rejection

Dear gurus
I need to set a new status D Order on hold when the rejection is set to a sale order
how to do that
Regards
Saad.

Resolved
by doing enhancement

Similar Messages

  • How to sets the Reason for Rejection of the Open Sales Order Lines

    Hello gurus,
              I want to set the Reason for Rejection of the Open Sales Order Lines, Case is like :
    If current date is exeed the Auto Void Confirmed Back Order Days(for item level) +  date (last responding from customer), then reason for rejection should be set, So i want the logic to find out the date is exceed or not.
    Thanks
    Anjana

    Hello anjana,
       Actually your question is some confusing, but if u want to get eldest change as active sales order then logic is as follows:
    1.  On base of OBJNR u have to get UDATE from JCDS table
    2. then write logic as:
    SORT i_jcds BY objnr stat chgnr DESCENDING.
          LOOP AT i_jcds INTO wa_jcds1.
            CLEAR lv_stat.
            lv_stat = wa_jcds1-stat.
            AT NEW objnr.
              AT NEW stat.
                CLEAR: wa_tab.
                wa_tab-objnr = wa_jcds1-objnr.
                wa_tab-stat = lv_stat.
              ENDAT.
            ENDAT.
            IF wa_jcds1-inact = 'X'.
              CLEAR lv_tabix.
              IF sy-tabix > 1.
                lv_tabix = sy-tabix - 1.
              ELSE.
                lv_tabix = 1.
              ENDIF.
              READ TABLE i_jcds INTO wa_jcds2 INDEX lv_tabix.
              IF sy-subrc = 0.
                wa_tab-chgnr = wa_jcds2-chgnr.
                wa_tab-udate = wa_jcds2-udate.
                wa_tab-utime = wa_jcds2-utime.
                APPEND wa_tab TO i_tab.
              ENDIF.
              CONTINUE.
            ELSE.
              wa_tab-chgnr = wa_jcds1-chgnr.
              wa_tab-udate = wa_jcds1-udate.
              wa_tab-utime = wa_jcds1-utime.
            ENDIF.
            AT END OF objnr .
              AT END OF stat.
                APPEND wa_tab TO i_tab.
              ENDAT.
            ENDAT.
          ENDLOOP.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr stat.
          SORT i_tab BY objnr stat udate utime.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr.
    3. now in i_tab table u'll get eldest UDATE
    Hope its work for u.
    Thanks & Regards,
    Sumit Joshi

  • Set required status for all subtypes first error

    Hello,
    While implementing OSS note 1744002 for Application Control Workflow i had the following error.
    In fact, i added a new attribute for BOR bus2201.
    When i wanted to change the status to implemented, i got the following error 'Set required status for all subtypes first'.
    Thanks,
    Meriem.

    Hi Meriem,
    Any new attribute should be added to the newly created custom SubType of the Object type BUS2201, but not Object BUS2201 itself.
    Revert the BOR BUS2201 to its original state and add the new attribute to your z<subtype>. You will no more get the error.
    Regards,
    Kiran

  • What is difference between additive delta and new status for change record

    Hi Experts
    Can any one explain me about the difference between additive delta and new status for change record with example
    if any one has a document please post it iam thank full to u
    thanks
    Ahmed
    Please search the forum before posting a thread
    Edited by: Pravender on Feb 12, 2012 1:54 PM

    Hi
    Additive delta --- We will get the changed quantity.
    say suppose you have sales order and quantity like  1111   30 which is loaded to cube(BW).
    now same record qty has changed from 30 to 40. As we have additive delta, we will get new record as 1111  10.
    new status for change record: This is same as like After image delta type in standard SAP data sources. for every change in record you should have new record.
    say if you have any number which will be generated by system for new/changed record, then you can use this.
    You can use this option when delta option set to "numeric pointer"
    Regards,
    Venkatesh

  • HT5622 hi. i bought iphone 5 witch was locked, i made factory reset and now phone asking apple ID and pasword witch i dont know. i was writing to seller but he is not answering me. how to set new account for my iphone 5 what i could use it?

    hi. i bought iphone 5 witch was locked, i made factory reset and now phone asking apple ID and pasword witch i dont know. i was writing to seller but he is not answering me. how to set new account for my iphone 5 what i could use it?

    The iPhone has a feature called "Activation Lock" described here:
    http://support.apple.com/kb/PH13695
    Without that Apple ID, you will not be able to use that iPhone.

  • Set new value for VO attribut

    I have function in package on database which is param is String and return value is also String(VARCHAR2).
    That function calculate some field on db and return a result.That is OK
    I made VO in my AM.
    "SELECT package_name.func_name("string") from dual" and that is OK also.
    When I start that module I recive valid result from database based on string which I passed to function.
    And that works fine.
    Question :
    How can I change value or how can I set new value for the package_name.func_name(variable) in VO
    during runtime in my application ? ^^^^^^^^
    JDeveloper 9.0.3.988

    I have function in package on database which is param is String and return value is also String(VARCHAR2).
    That function calculate some field on db and return a result.That is OK
    I made VO in my AM.
    "SELECT package_name.func_name("string") from dual" and that is OK also.
    When I start that module I recive valid result from database based on string which I passed to function.
    And that works fine.
    Question :
    How can I change value or how can I set new value for the package_name.func_name(variable) in VO
    during runtime in my application ? ^^^^^^^^
    JDeveloper 9.0.3.988 1. When using stored procedures it would be better to use it in following way:
    Connection conn = //get it some how
    CallableStatement cs = conn.prepareCall("{call myPackage.do_something(?)}");
    cs.registerOutParameter(1, java.sql.Types.VARCHAR);
    cs.execute();
    2. You could parameterize it like this:
    CallableStatement cs = conn.prepareCall("{call " + packageName "." + funcName + "(?)}");
    cs.registerOutParameter(1, java.sql.Types.VARCHAR);
    cs.setString(1,"someString");
    cs.execute();
    String result = cs.getString(1);
    where packageName and funcName are defined elsewhere
    --hery

  • Set User-status for PP order

    Hi All,
    How can I set the user-status for a PP order, also let me know which user exit suits this requirement, as I know I have to make use of a FM or a BAPI which sets the user-status in the user-exit somewhere.
    Thanks
    Mark

    Hi,
    Try the following enhancements/exits for setting the status for PP order.
    STATTEXT
    CCOWB001
    COIB0001
    Regards,
    Anji

  • Set new smartforms for Plant

    Hi All,
    I have new plant, When  I create new smartform, but a don know how to assigned new form to that plant ?
    Please help me do it !

    I have function in package on database which is param is String and return value is also String(VARCHAR2).
    That function calculate some field on db and return a result.That is OK
    I made VO in my AM.
    "SELECT package_name.func_name("string") from dual" and that is OK also.
    When I start that module I recive valid result from database based on string which I passed to function.
    And that works fine.
    Question :
    How can I change value or how can I set new value for the package_name.func_name(variable) in VO
    during runtime in my application ? ^^^^^^^^
    JDeveloper 9.0.3.988 1. When using stored procedures it would be better to use it in following way:
    Connection conn = //get it some how
    CallableStatement cs = conn.prepareCall("{call myPackage.do_something(?)}");
    cs.registerOutParameter(1, java.sql.Types.VARCHAR);
    cs.execute();
    2. You could parameterize it like this:
    CallableStatement cs = conn.prepareCall("{call " + packageName "." + funcName + "(?)}");
    cs.registerOutParameter(1, java.sql.Types.VARCHAR);
    cs.setString(1,"someString");
    cs.execute();
    String result = cs.getString(1);
    where packageName and funcName are defined elsewhere
    --hery

  • Need help on to set User status for Operations in Maintenance order

    Hi experts,
    i am new to PM module.
    i need to do BDC for IW31. i want to know some inforamtion
    on user status for each opertaion.
    my problem is ,, what is user status.
    why it is saying order is not yet released when saving and status can not set.
    in this cases how can i do BDC.

    User status are something set in the configuration and specific to the company which SAP hasn't given in the system status.
    May be in your system user status are configured to set only  after the release of the order.
    For doing the userstatus you may need to release the order, you can release the order thru bdc and then do bdc for user status. Also see below link
    http://www.sap-img.com/plant/user-status-set-date-in-maintenance-order.htm

  • New status for changed records or Additive Delta

    Hi Guys,
    I have a design question for ODS and Extractor.
    The requirement is as follows...
    There is a table in CRM with service point as primary key. The fields in the table for example are bill account and Meter ID. Key figure is a XYZ value. In CRM for that Bill account Meter ID combination the XYZ value will change every year. In CRM the same record is being updated with changed value of XYZ. But in BW when the delta is being sent I do not want it to update the existing record but add it as  a new record. This way the history can be tracked for previous years XYZ value.
    What is required to make this happen?
    When creating the extractor I think I should give the delta as new status or additive delta?
    What should I indicate as delta specified field?
    For the ODS ( I am on BI 7.0) should I create the normal ODS or should I create the write Optimized or something for this requirement ( I dont remember right now the 3 types of ODS we can create).
    Your inputs will be greatly appreciated.
    Thanks
    Kumar.

    Thanks Puneet!
    Good Answer.
    New and Changed records does help in getting the records as desired.
    But the problem is while loading into BW I cannot create a new record. The primary key is only Service Point. So even if the key figures and dates associated with that record changes, BW will still update my existing record.
    Is there a possibility of using the dates as a pointer that a new record should be created.
    Let me explain it better. Following is the structure of table.
    Service Point (primary key)
    Product GUID (key in CRM)
    Circuit ID
    Installation date
    Effective date
    Termination date
    CRC (some key figure)
    Scenario is - This year Service Point A with CRC value as 50 with effective and termination date for example .. May1 2009 - Apr 31 2010.
    Service Point   CRC   EffectiveDate   TerminationDate
    A                     50      5/1/2009         4/31/2010
    Next year the same service point will have different values and CRM system will update the record in CRM table.
    Service Point   CRC   EffectiveDate   TerminationDate
    A                     60      5/1/2010         4/31/2011
    1) So I was wondering if there is a way or some code can be written to check if effective and termination dates are not same it should be added to ODS as a new record.
    2) Another way is to make some sort of Time dependency. Like use Valid From and Valid To dates to track the changes to the record and display all the different values for every record when the CRC values were valid between what dates.
    3) or some other way you can suggest

  • How to set new role for new custom entity only

    I created a new custom entity, I want to create new role for it only.  So I created new role and set custom entity User role. But When I login the user with created role, it show now right to access CRM.
    Awen

    Are you trying to grant access so that users can use this custom entity but no other data at all?
    You will still have to include access to all sorts of bits of CRM just to make the user interface work - especially the things on the Business Management and Customization tabs of your security role. You also need to check these 6 settings:
    Special privileges in CRM Security Roles
    If this is the only security role you plan to give to your users, I would suggest you start from a standard role and remove access to other entities, rather than start from blank and work upwards.
    Hope this helps.
    Adam Vero, Microsoft Certified Trainer | Microsoft Community Contributor 2011
    UK CRM Guru Blog

  • How to set the status for a customer plan to RELEASED.

    Hello all,
    I created a program for mass creation of customer plans. But after the creation of a plan, the status should be set to released, so that the user can go about creating the trade promotions for the customer plan. Can anybody tell me how to set the status of a customer plan to RELEASED.
    Thanks,
    Disha.

    Hi Clemens,
    I am not talking about doing it in the CRM_UI transaction..I created a program..which would create the customer plans based on the planning account data provided. I was succesfull in creating the plans, but I am not knowing how to release it, if only anybody can tell me about a Function module or method, which can help me do this, that would be great
    Thanks,
    Disha.

  • BAPI to set user status for PS

    Hi,
    I need to set the status as approved "E0002" from BAPI ( from workflow) for Project definition (BUS2001)
    I got BAPI " BAPI_BUS2001_SET_STATUS" and gave import parameter for  project definition but i couldnt able to give value for  set_user_status as it takes only 4 char but my status(JEST) is 5 char (E0002).
    Please help me how to use this bapi and what are all other bapi's i need to call to work correct.
    Ashu

    Use this FM I_CHANGE_STATUS for changing status.
    CALL FUNCTION 'I_CHANGE_STATUS'
    EXPORTING
    OBJNR = v_objnr
    ESTAT_INACTIVE = 'I0001'
    ESTAT_ACTIVE = 'I0002'

  • Setting System Status for CRM Contract

    Hi
    I need urgent help for changing the system status in CRMD_ORDER, once the Contract is saved.
    I tried to use the Function Module CRM_ORDER_MAINTAIN for setting the status. But this FM provides status change on user level.
    Please guide me how to set the system status for this scenario.
    Thanks in advance

    Hi.
    Try using CRM_ORDER_CHANGE_STATUS to change the system status.
    Regards,
    Timo.

  • Set New Code for Network ???

    I seem to have forgot my Wireless file sharing password and was hoping someone knows how to reset it or what happens when you reach ten attempts because I know I can eventually remember it but not sure with four more chances, tries, etc. 
    The help pages on the Playbook only provide details on how to use it or about it but not recovery.

    A security wipe of the BlackBerry PlayBook tablet will erase all data and any downloaded applications and media (Including pictures/video taken on the BlackBerry PlayBook tablet or transferred via a PC)
    Afterwards, you will basically have a 'like new' PlayBook.
    If you have a backup of your PlayBook, you can restore previous personal data, pictures etc.
    Otherwise, you will again set the Playbook up as new, enter your same BlackBerryID and password, etc., and proceed.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for