Change the status profile assigned to the line item from PROFA TO PROFB

Hi Experts,
The issue we are having relates more to the fact that the code we have written is changing the item category, however the status profile has already been retrieved from configuration based on the original item category and therefore the status selection that we are getting is incorrect.
Item Category A -> Status Profile PROFA
Item Category B -> Status Profile PROFB
For example we have a line item and item category A is determined through config, this then retrieves its associated status profile PROFA. However we have then coded the system to change item category A to item category B.  However the status profile still remains PROFA.
We need to find a way to change the status profile assigned to the line item from PROFA to PROFB.
any quick inputs from any one please......
Thanks in advance
hemanth

Hi
There is perform which moves the values to VBAP field.
This PRCTR field is stored in VBAP (i.e., SO line item table)
USEREXIT_MOVE_FIELD_TO_VBAP
Hope it works.
VVR

Similar Messages

  • Reverse Credit Line item from Profit Center.

    Hello Expets
    May any body say how can I reverse a cr line item from profit Center in which extra credit line item came through PO once and through internal order once i.e bcoz in PO there was link once  Profit center as well as Internal order.
    If I do through 9kEO,it can be reversed but where will hit other line item i.e which profit center.
    Plz plz tell me process how can I reverse that extra line item from profit center.
    Thanks

    You will probably find that, in the internal order master data, there is a link to the profit centre. So, if you do not want the costs on the profit centre, you will need to take it off the internal order, remove the link, and then repost. making sure that the PO no longer has the link to the profit centre.
    BTW, posting to a profit centre is not an alternative to posting to an internal order, they usually go together.
    So why do you not want the posting on the profit centre?

  • Revenue Recognition based on User Status of assigned Sales Order line item

    Dear Community members,
    We have requirement to recognize / de-recognize revenue posted to WBS for calculation of RA, based on the 'User status' of the assigned Sales Order line item.
    To elaborate requirement further -
    1) WBS Element - XXX - 10 ( with operative indicator - Plan/Bill/Account Assign)
    2) Sales Order(SO) Line Items assigned to the above WBS -
    - SO No -  123 Line Item 10 - Actual Rev - $ 300 - User Status - EXE (Meaning this work is in progress , partial payment received thus actual revenue for RA at WBS is 'Zero'
    - SO No -  124 Line Item 20 - Actual Rev - $ 400 - User Status - COMPL(Meaning this work is Complete , all payment received thus actual revenue for RA at WBS is $400
    - SO No -  125 Line Item 10 - Actual Rev - $ 800 - User Status - EXE (Meaning this work is in progress , partial payment received thus actual revenue for RA at WBS is 'Zero'
    As per WBS reports Actual Revenue posted to WBS XXX-10 is $ 1500 ( $300$400$800) , however since two SO line items ( SO 123 /line item 10 and SO 125 / line Item 10 ) are NOT having User status 'COMPLETE', the actual revenue posted by those line items $ 1100/- ($300 + 800)  should not be included as Actual Revenue for RA at WBS level.
    Thus Actual Revenue for RA at WBS XXX-10 should be $ 400 /- ( the revenue posted by SO 124/line item 20 which has user status as 'COMPLETE')
    How do above can be achieved?? Is there any standard solution for this?? Is any SAP Note available for this (I too am looking for one but not found any ) ?? do we need any enhancement , Customer exit etc
    Thanks in advance
    with regards

    Hi,
    Thanks. You are right that the 'Completed Contract Method' would defer revenue recognition. However, the status checked would be of the RA object (WBS Element in this case, as RA key is on WBS and RA is being calculated on the WBS).
    However, our requirement is to check the user status of the Sales Order Line items assigned to the WBS element and filter the revenues posted based on the active user status of individual Sales Order Line item.
    Please give you inputs.
    Thanks in advance
    With regards

  • To change user status profile on sales order at run time.

    Hi Experts,
    We have defined status profile for Sales returns ( Doc type RE) which blocks the  return order on creation. There are two statuses here which are to remove the delivery block and to remove the billing block by authorised users.
    The requirement is now to have a three level block ( three statuses ) on the same document. We can create a new status profile and assign it to a new return sales order tpye  but we want to avoid creating new document types. Since this document type is used across various companies in the group we can not assign a new profile on the existing RE document as well.
    My question to all experts is
    Is it possible to dynamically change the status profile assigned to the document type based on characterstics like sales org or company code etc? If any body has done this please let me know the user exit , function module, BADI etc where the necessary coding has been done.
    Helpful answers will be rewarded with points.
    I look forward to your co operation.
    Regards,
    Kartik Shah

    Hi Liam,
    In the Program MV45AFZZ in the FORM userexit_save_document
    you use the following fn module to change the user status
    'STATUS_CHANGE_EXTERN'
    Example
    IF t180-trtyp = 'H'.  "Only creation time
      READ TABLE xvbap WITH KEY matnr = c_matnr.
      IF sy-subrc = 0.  "If above material exist then change status
        LOOP AT xvbap WHERE cuobj NE space
                       AND  matnr =  c_matnr.
          l_objnr = xvbap-objnr.
          CALL FUNCTION 'STATUS_CHANGE_EXTERN'
            EXPORTING
              objnr               = l_objnr
              user_status         = 'E0013'  "Send ej IDOC
              set_chgkz           = 'X'
            EXCEPTIONS
              object_not_found    = 1
              status_inconsistent = 2
              status_not_allowed  = 3
              OTHERS              = 4.
        ENDLOOP.
      ENDIF.
      sy-subrc = 0.  "Restore the previous condition
    ENDIF.
    Reward if helpful *********

  • Changing the Status profile in QM

    Hi,
    The status profile (QM_L_001 - Inspection lot profile1) in the Quality Inspection Lot is been manually entered and saved.
    This has set the User Status as IMAT: Material is not correct.
    Due to this, unable to do any of the further processing.
    In QA02, the Status Profile cannot be changed/deleted.
    So how to remove the Status Profile from the Quality Inspection Lot?
    Request your help.
    Regards,
    Sankar.N

    Hi
    An other workaround, you can go to the transaction BS02 and change the status profile to allow the status can execute the following actions temporarily.
    Leon.
    Regards.

  • Change in status profile of internal order

    I've changed the status profile assigned to an order type because of new requirements for disallowed transactions.  The new profile settings/ user status worked for new IO master data created.  However, for existing IO master data, the user status was not updated with the new status profile.  What's the transaction to reconstruct/correct the user status of old IO master data?

    Hi,
    Once you assign the sttus profile for an order type,this should work for all the orders assigned to that specific ord-type.
    create a new session and work.The orders will respond to the new status profile.
    Hope this helps.
    Regards,
    Ramesh

  • How to insert contract line item from file using any bapi

    Hi gurus,
    Just wanted to ask how can I insert new line item which were created from a file
    when updating/changing contract details.
    The requirement was to create new line item from a file and use those details in updating the contracts.
    What BAPI can I use to address this requirement?
    Thanks!

    Hi Rajvansh Ravi,
    This is for Service Contracts. Sorry for missing this detail.
    Hi Tarangini Katta,
    I have already used BAPI_CONTRACT_CHANGE, and it was good in updating existing line items,
    but it doesn't update the contract when a new line item is created in the file.
    To make a clearer view of the flow (requirement)
    First scenario:
          From the tcode (ME32K or ME33K), we can download contract details into an excel file for a particular service contract.
    Next scenario:
          That same excel file (downloaded) can be enhanced per line item (can also insert new line) and be saved locally.
    Next scenario:
          This same excel file can also be uploaded. And the changes done to the file have to overwrite or rather have to changed the details of the same contract and then will appear/reflect in the tcode.
    With this, if we had a new line item created (inserted) on the file (not change), we can not see the changes when we view the same contract in the tcode. (ME33K)
    Do you have any idea how the insertion from the file can be reflected on the tcode using an existing bapi?
    Hope this was clear enough...
    Thanks and hope to hear something from you soon.

  • Reg change in the status profile in the process order

    Dear all,
    By default one status profile ZPI0001 has been assigned to an order type ZP10 in a plant, the requirement is at the time of process order creation we want to change the status profile to ZPI0002 and create . this is applicable for one plant only
    Please let me know the settings to be done for that
    Thanks in advance
    Regards
    venkat

    HI Venkat,
    I am not sure why do you need different status profile at the creation of process order...
    First define the status profile ZPI0002 using Tcode BS01/BS02  and assign it  to the order type ZP10 using CORN. The same order type is defined to plant using COR4..Here you can only have only one status profile for each order type, however, you can define different custom user status for the status profile..Say ZOCL - Order Completely closed after system status TECO to stop all goods movements...You can't have separate status profile while creating process order and at other stage of process order..Gurus please correct me if I am wrong..
    Thanks
    Sree...

  • How to change the status profile of equipment?

    Hi Experts,
    Is it possible to change the user status profile for already created equipment? I tried to change the assignment of status profile to equipment category and found it works only for new equipments. It is not applicable to already created equipments. The status of the status profile is already used in equipments.
    Please suggest and do the neeful.
    Thanks and best regards,
    Praveen.

    No you can not change status profile assigned with already created equipment.
    Eg. You assigned status profile 00000003 to equipment category M of equipment. so whnever any new equipment created will get status profile 00000003 only.
    For your case, dont make any change status profile no .00000003--> make whatever changes you have to made about status naming,sequence keeping same status profile.
    After that goto equipment change master edit>change category>selet same category for assignment. so equipment will get same status profile with status changed.
    Hope this will help you.

  • How to assign the status profile to that particular user..?*

    Hello Everyone..
    I have created a status profile for the particulat sales order type so that a particular user can confirm the sales order and the pass it,so that further changes can be avoided.The profile has been assigned to Item category also.
    Now My problem is ,How to assign the status profile to that particular user..?
    so that only the user is allowed to change the order.
    Thanks

    Hi,
    Maintain authorization key (authorization code)  in status profile.
    We do not assign directly to user. We assign to role E.g sales manager / sales employee etc...
    We assign T.codes to role and assign role to user.
    Goto Role T.code PFCG. Enter role and click on change button.Goto Authorizations tab.
    Click on authorization data .
    Expand the  Cross-application Authorization Objects tree. Expand Status Management: Set/Delete User Status using Transaction.
    Click on Authorization key button, assign Authorization key.
    Click on status profile. assign status profile.
    Regards,
    Chandra

  • User exit in VA01 for changing the status profile

    Hi Experts,
    I want a user-exit in VA01 wherein i can change the status profile (Screen field name = JOSTD-STSMA ) based on some logic.
    Thanks in Advance:-
    Santosh

    Hi, Santhosh,
    You can use function module "STATUS_PROFILE_CHANGE"
    see the code,
    CALL FUNCTION 'STATUS_PROFILE_CHANGE'
      EXPORTING
        OBJNR                          =  XVBAK-OBJNR
        STSMA                          =  G_STATUS
      NO_CHECK                       =
    EXCEPTIONS
       OBJECT_NOT_FOUND               = 1
       NO_STSMA_CHANGE_POSSIBLE       = 2
       STSMA_NOT_FOUND                = 3
       OTHERS                         = 4
    where G_STATUS is your new status profile. It will update in your screen also.
    Hope this will help u.

  • Can anyone tell me how the Status Profile works in relation to BP's...

    Can anyone tell me how the Status Profile works in relation to BP's...
    For example, how can I view a particular status that a BP has, and can a BP have more than one status against a status profile. Also what date/time details are set when a status is changed?.
    Can anyone help with this?.
    Jas

    Arap,
    Many thanks for the info. As with all these posts, you do your best to try and find out yourself, fail, then raise a question on a site like this. As soon as you do the answer(s) become clear.
    I've found transactions BS02 which shows Status Profiles, and associated status.
    The Order/transaction holds the status set and can be extracted using the FM/Program CRM_ORDER_READ and using the ET_STATUS table.
    That's what I was mainly after.
    Many thanks for your help.
    Jas
    Edited by: Jason Stratham on Apr 1, 2009 4:59 PM

  • Need to Create the STATUS Profile for Q-Info record

    Hi Guys,
    Basically in the Q-Info record we have status profiles like VN, SP, MP OM and MP NOM etc... Under this status profiles there are few staus profiles assigned to it, in the same way
    I need to create the status profile for Q-Info record under the status profile MP NOM (Non Original Mfgr MP), so that when I am creating the Q-Info record I can select the status profile which is under the MP NOM.
    Guys anyone can guide me to create the status profile in BS02.
    Regards,
    SM

    BS02--->Select the status say " QM_P_001" ->Copy As F6  - >Enter new name>enter.
    Now chage the relevent data as per your requirement.

  • For one Urgent Change during performing the Approval(chnging the status to 'To be Tested') system does not recognize any changes using the CTS WBS BOM in the development system. The transaction is therefore incorrect or the status was reset by the system.

    For one Urgent Change while performing the one of the Approval before changing the status to 'To Be Tested'
    We are getting below error.
    The system does not recognize any changes using the CTS WBS BOM in the development system. The transaction is therefore incorrect or the status was reset by the system.
    COuld anyone please help us to know, How it can be resolved?
    We also have this below error.
    System Response
    If the PPF action is a condition check, the condition is initially considered as not met, and leads to another warning, an error message, or status reset, depending on the configuration.
    If the PPF action is the execution of a task in the task list, and the exception is critical, there is another error message in the document.
    Procedure
    The condition cannot be met until the cause is removed. Analyze all messages in the transaction application log.
    Procedure for System Administration
    Analyze any other messages in the task list application log, and the entries for the object /TMWFLOW/CMSCV
    Additional Information:
    System cancel RFC destination SM_UK4CLNT005_TRUSTED, Call TR_READ_COMM:
    No authorization to log on as a trusted system (Tr usted RC=0).
    /TMWFLOW/TU_GET_REQUEST_REMOTE:E:/TMWFLOW/TRACK_N:107
    For above error Table /TMWFLOW/REP_DATA_FLOWwas refreshed as well but still the same error.

    If you are in Test System, you can use function module AA_AFABER_DELETE to totally delete the depreciation area (tcode SE37, specify chart of depreciation and depreciation area), After that recreate your depreciation area and run AFBN. But before you do that, have you created a retirement transaction type that limits the posting on your new depreciation area? If not create one.
    Hope this helps.
    Thanks!
    Jhero

  • I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    Ntenich,
    If your table has a Header and your Legend text is in the header, it will be picked up by the table.
    Jerry

Maybe you are looking for

  • Travel Adapter

    Hello, I am going to Central America (specifically Belize & Guatemala) and will not be taking a laptop, which means I need a power adapter to charge my iPod. But, in looking at the adapters online none seem to conver Central America at all. Anyone ha

  • MS Outlook Integration with SAP

    Hi, I have few questions on outlook integration ( CRM 4.0) which is as follows. 1) Can we integrate Email by implementing Outlook integration in CRM 4.0? I heard that we can only integrate activities and tasks with SAP and MS outlook 2) When we creat

  • User tables documentation

    HI can anyone please share the user table documentation. Thanks

  • I lost my password, and my registered email

    Hello , recently I have to log out from another skype account which was set on automatic sign in after the start of the computer, but when I try to sign in again I found that I didn`t remember my password corectly and the e-mail on which I registered

  • SRDemoSample Vs SRDemoSample ADFBC

    can anyone tell me where is the difference between these two samples? does it have to do with the model layer?...thanks in advance Message was edited by: John hates caps-locks