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.

Similar Messages

  • User exit or Badi for changing the lead time in ATP check in VA01/VA02

    Hi All,
    Currently, SAP standard functionality takes up the lead times maintained in material master to create the schedule lines in the sales order in VA01. I am looking for some user exiit/Badi/Enhancement point where I can change the lead time. This is somewhat urgent so any help in this regard is appreciated.
    Regards,
    Sandeep
    Edited by: Sandeep Gaitonde on Sep 1, 2011 9:16 PM

    Hi Sandeep,
    These are the user exits will trigger in va01 .
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    Please check this and post .
    Regards,
    Madhu.

  • 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

  • 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.

  • Digital Signatures for Changing the statuses in Issue Mgmt

    Hi
    Has anyone put in place digital signatures for Issue
    Managemnt when we change the status values in an issue.
    We are looking at SAP Note 835584 - Digital signature for documents,
    but that is not applicable for us as we want to initiate the digital
    signature when the status profile "SLFI0001" kicks in and the status is
    changed from one to the other.(eg in process to completed etc)
    We have created the digital signature and the strategies, but are
    looking for a place to attach this with the status profile "SLFI0001".
    Is there a place we can attach the digital signature strategies to this
    status profile?
    Anyone has any ideas on how it can be done?
    Thanks in advance..
    sap ques..

    We have a document that needs to be signed by more than one individual -- and in our process we are using the Topacz signature pad to get the signature.  It's similar to the one you sign at the grocery store, drug store, etc.  In order to NOT have the first signature invalidated, we were told to edit the registry...and it works perfectly!
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\8.0\AVAlert\cCheckbox]
    "iDigSigSaveAsCertified"=dword:00000001
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\8.0\AVAlert\cCheckbox\cAnnots]
    "iReaderEnableSaveWarn"=dword:00000001
    Obviously if you are using a different version of Acrobat, you'll have to change the key accordingly.
    Hopefully this will work with your process.
    Good luck!!

  • 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.

  • User exit / substiution /  badi for changing baseline date

    Dear Experts ,
                           I have a requirement to change the base line date of residual document created in F-28 / F-32 to the base line date of original document getting partially cleared .
    I have explored the option of substitution but it doesnt work as field ZBLDT is not available for substitution there .
    Please let me know any BADI / Exit which can perform this change of baseline date .
    thanks in advance

    Hi Milind,
    Following are the user-exits for F-32 :
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    I hope this will help you.
    Regards,
    Nitin.

  • User Exit that triggers for Change operation

    Hi All..
    I want a user exit which triggers when I enter into an infotype(2001) from tcode PA30.
    My actual requirement is to show the field REFNR in display mode.
    By using the exit PBAS0001 exit0001 I can make the field REFNR in displaymode for create operation.
    But in change operation of the infotype the exit is not getting triggered.
    Regards,
    Anji.

    chk these
    Transaction Code - PA30                     Maintain HR Master Data
    Enhancement/ Business Add-in            Description
    Enhancement
    PBASRP01                                PA: User exit distributed reporting
    PBAS0002                                PA: Enhancements for Personnel Administration - Menu
    PBAS0001                                PA: Pers.Admin./Recruitment: Default values and checks
    PARA0002                                Enhancement for Calculating Annual Salary; IT0008,14,15
    PARA0001                                Enhancement for Determining the Number of Periods
    HRRPAI01                                User exit for FB HR_ENTRY_DATE and HR_LEAVING_DATE
    HRPC0001                                HR: PC download authorization
    HRPBAS01                                User Exit for HR Master Data
      Business Add-in
    HRPAD00_PREM                            Definition of User Exit for Collective Search Help PREM
    HRPADUS_PBAS_0001                       Customer Exit for Message handling
    HRPAD_SUBTY_CHECK
    HR_F4_GET_SUBTYPE                       HR: Entry help for subtypes
    HR_FAST_ACTION_CHECK                    Check fields on the fast entry screen
    HR_INDVAL                               HR: Indirect wage type valuation
    HR_SET_PKGAB
    HRPAD00_RECOG_SCREEN                    Employee - Recognition Screen
    HRPAYXX_DELETE_PERNR                    BAdI for Reports Deleting Personnel Numbers
    HRPAD00_PAPM                            Definition of User Exit for Collective Search Help PAPM
    HRPAD00_GET_AF_0008                     Additional Fields for Basic Pay Infotype (0008)
    HRPAD00_ENTRY_LEAVE                     HR_ENTRY_DATE and HR_LEAVING_DATE
    HRPAD00_ADRS                            HR: Address formatting
    HRPAD00MGEACTIVATION                    Activation Action BAdI for Global Employees
    HRPAD00INFTY                            Update / Infotype maintenance
    HRPAD00AUTH_TIME                        Time Logic in the PA Authorization Check
    HRPAD00AUTH_RECORD                      Spanish Data Privacy Law: Exit for Recording
    HRPAD00AUTH_CHECK                       HR: Authorization Check
    HRIV_REDUCE_AMOUNT                      Reduction within Indirect Valuation

  • User Exit or BADI to change the product cost

    Hi All,
    My requirement is to change the product cost when the costing engine is running via ck11n or ck40n. Iam looking for user exits and BADI's for this requirement.
    I did look into the BADI DATA_EXTENSION_CK but this particular BADI does not have export or changing parameters. Can anyone suggest any user exit or BADI's for this requirement. I also looked into other BADI's like
    CK_KALAMATCON2_CI
    COSTINGRUN_CK
    COST_APPORTION_CK
    CO_PROD_COSTING_CK
    DYNPRO_EXTENSION_CK
    ORDER_COSTING_CK
    QUANTITY_STRUCT_CK
    SUR_STOCK_TRANSF_CK
    VALUATION_CK
    But none of them served the purpose. Plz help...Thanks in advance...
    Regards,
    Nirmal.

    Hi,
    Check followinf enhancement spots:
    CO_PROD_COSTING_CK              Cost Management for Joint Products (Costing, Target Costs)
    COSTINGRUN_CK                         Edit Costing Run
    ES_CAL2TYPE                             ES_CAL2TYPE
    ES_LCK40VWS
    ES_SAPLCK00                            es_SAPLCK00
    ES_SAPLCK01                            es_SAPLCK01
    ES_SAPLCK04                            SAPLCK04
    ES_SAPLCK2U                            es_saplck2u
    ES_SAPLCK36                            es_saplck36
    ES_SAPLCKCC02                        ES_SAPLCKCC02
    ES_SAPLCKDI                             ES_SAPLCKDI
    ES_SAPLCKKK
    ES_SAPRCKCU
    ESC_CL_COSTING_PERSISTENCE
    LCKDIO2M_01                             ES_SAPLCKDI
    LCKDIO2T_01                              ES_SAPLCKDI
    ORDER_COSTING_CK                 Enables Header Data Changes in Preliminary Order Costing
    QUANTITY_STRUCT_CK               Enables Quantity/Structure Changes in Costing
    VALUATION_CK                           BAdI for Valuation in Product Costing
    Hope this may be useful..
    Regards,
    Prashant

  • User exit or BADI to change the delivery date in ME51N  transaction

    Hi Gurus,
       I need a user exit or a BADI where I can change the delivery date in the item overview  tab for each material. I need to calculate the date according the vendor contact details.
    Please let me know if there is any BADI or a user exit for the same
    Thanks a lot!!!
    Sharath

    quick search for exits/badis: get package name and supply it into se80
    or
    se15
    thanq

  • User Exit or BADI for catch the document number after saving the document

    Hi ,
    I am working on data conversion where Document number(BELNR),BKPF and BSEG  data should
    transfer to my Z table(Containes fileds of BKPF and BSEG) after SAVE the document related to
    Tcodes F-01 , F-22 , F-28 , F-43 , FB01 , FB02, FB60 ) . It need to go through by any user-exit or
    BADI.So Could you please suggest me any User exit or BADI ASAP.
    Waiting for reply.
    Thanks
    Lakshmi

    You should use BTE (Business transaction event). This concept is used especially for FI related enhancements...
    Study this document to know how to use BTE
    http://www.todoabap.com.ar/archives/FI%20Enhancement%20Technique%20-%20How-To-Guide%20on%20the%20Usage%20of%20Business%20Transaction%20Events%20(BTE).pdf
    Let me know if you face any specific issues..

  • User exit or FM to change the process order

    Hi All,
    I want to know any FM or user exit to change the process order.
    Any help will be appreciated.
    Regards,
    Seema
    Edited by: Seema Naharia on Dec 10, 2009 8:41 AM
    Edited by: Seema Naharia on Dec 10, 2009 8:42 AM

    Hi Nihad,
    I couldnot find this BAPI.
    Regards,
    Seema

  • User exit in MB01 for Rounding the GR/GI Quanity field

    There is a requirement where whenever there is GR or GI for a material based on PO line item , I need to insert code for rounding the value.
    i.e when  material document is created in SAP  via idoc or manually, i need to check the field for fraction and validate it.
    I need to know the Exit in MB01 where i can insert this code to cause changes to this value.
    Material document is first created in MSEG and MKPF hence the field is MSEG-BPMNG and EKBE-MENGE

    Hi Priti,
    Try the below userexits
    Exit Name Description
    MBCF0002 Customer function exit: Segment text in material doc. item
    MBCF0005 Material document item for goods receipt/issue slip
    MBCF0006 Customer function for WBS element
    MBCF0007 Customer function exit: Updating a reservation
    MBCF0009 Filling the storage location field
    MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011 Read from RESB and RKPF for print list in MB26
    MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
    Put break-point at each exit and find out where it triggers for ur scenario.
    Hope it helps u...
    Regards,
    KK

  • User exit or BADI for determining the output type inme21n orme22n

    hi all,
         i have used the user exit 'exit_sapmm06e_012', it is getting triggered in me22n, i am able to check whether the vendor email id is present or not, but this is happening all the time that is even when the user dont want to send a email to the vendor i.e. he just wants to print the purchase order, even at that time this user exit is getting triggered and giving a message that the vendor email id is not maintained.
      the reson why this is happening is there is no import parameter to this user exit which gives the "medium of data transfer"  the user has entered. if i get this parameter visible inside the user exit, then i can check this parameter inside the user exit and do the required operation.   i checked up with all the user exits in "me" package and even the other related packages but none of them is getting triggered,
      do antone know a user exit or badi which imports this parameter and also gets triggered at the time of creation of purchase order.
      plz give me a solution.
    regards,
    santosh.

    Hi Santosh,
    Why not continue the other post ?
    Anyway, i am not sure to understand your requirement.
    Do you want to check that vendor email exist and issue a message only if email is not available ?
    Kind regards,
    Yann

  • User exit or badi for saving the data in mm01

    Hi All,
    I added one custom screen in mm01  using SPRO ,as well as i added 2 new fields in makt table using Append statement, now the problem is am not able to save the custom screen data in standard makt table  can any one  help me in this ,tell me which Badi or Exit is useful for this requirement.
    Thanks,
    Priyanka
    Edited by: priyankanukala on Feb 21, 2012 7:55 AM
    Edited by: priyankanukala on Feb 21, 2012 8:01 AM
    Edited by: priyankanukala on Feb 21, 2012 8:04 AM

    Hi
    You don't need them. See Note 44410 - Integrating cust.-specific fields in matl master for further information, and copy the code for PAI event in your custom dynpro. You need something similar to this:
    process after input.
    *coding......
      chain.
        field: mara-zzfield1,
               mara-zzfield2.
        module checks_on_zz on chain-request.
      endchain.                                               
    * coding .......
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Feb 21, 2012 9:26 AM

Maybe you are looking for