Assign Investment program Position for IW31 through exit/BADI

Hi
My requirement is, I've to assign investment program details to Maintainence order (IW31) in creation mode through enhancement. I am able to do so in change mode using the FM "AIPP_ALLOCATE_POSITION_DARK", but when I use the same FM in creation mode it is throughing "Update Termination " error.
Please let me know is there  any BADI/User Exit/Enhancement Point to achieve the same.
Regards,
Chandu
Edited by: Poorna Chandrasekhar on Nov 13, 2009 11:10 AM

I've created enhancement point in the FM CO_ZV_ORDER_POST

Similar Messages

  • Assign Investment Program/Position to Internal CO Order

    Hi Experts,
    I'm looking for a BAPI / FM that assigns Investment Program to a CO Order.
    Thanks in advance.
    Enrique

    Thanks for your answer Raj, but what i'm looking for is a BAPI (or FM) that I can use from an external application (Visual Composer) where It will be possible to assign the investment program to a CO Order.
    There are some BAPI's to create Orders but I can't find a BAPI for that.
    Thanks asgain,
    Enrique

  • Not possible to delete link investment program position from Appropriation request

    Dear specialists,
    We have a problem with deleting a linked investment program position in an appropriation request (IMA3, IMA11 or IMA12).
    We could edit some of the appr.req.'s but a few give an error.
    Steps done:
    We deleted the status BUDG from the linked projects (budgets deleted and OPSX for deletion of status).
    The we run the IM27_repeat.
    For the most of the appr.req.'s the linke was removed (table IMZO).
    For a few of our req.'s the link is not removed so that we can't link the new progr.pos. to this appr.req.
    Regards,
    Marcel

    Hello Marcel,
    Please check Customizing of the investment program type under 'assignable operative objects' in t-code OIT3 or in following path
    SPRO --> Investment Management --> Investment Programs --> Master Data --> Define Program Types
    Also check in following SAP note
    130216 - Program position not allowed for measure
    Regards
    Tushar

  • How to change Investment program position assignd to a wbs element

    Hi all,
    Could you please help me to find out which bapi can do necesary changes for a particular wbs element like investment program position and year.
    The Investment position and year can be showed in cj02 transaction for a particular wbs element.
    Thanks in advance,
    Sourya Prakash.

    Hi,
    You can use BAPI_PROJECTDEF_GETDETAIL to get relevant details. If that does not serve, you can go through the list available on this link ---
    http://wiki.sdn.sap.com/wiki/display/PLM/HowtouseBAPIinProjectSystem+Module
    Thanks.
    Kumar Saurav.

  • Validation on Investment program position

    Dear All,
    In current configuration, a  WBS element of a project is linked to an Investment program position.     
    When saving reservations for materials, Can we do a validation for WBS element specified in the Proc. Param of a material and the Investment program position.
    Please let me know whether this can be achieved without a customization.
    Thanks

    I've used both and never had any issues.
    But be thoughtful of coding masks (of AR and WBS) in case you use appropriation request creation followed by WBS/project creation.
    Regards
    Sreenivas

  • Position ID in Investment Program Position (IM23)

    Hi All,
    Can i use character rather than numbering when i create position ID in investment program ? transaction code IM23. 
    Any impat ?
    Please advice.
    Nies

    I've used both and never had any issues.
    But be thoughtful of coding masks (of AR and WBS) in case you use appropriation request creation followed by WBS/project creation.
    Regards
    Sreenivas

  • Moifying values in PA30 through exit/BADI

    Hi experts,
    I have a requiremnt whrein when the user enters a value for wagetype in PA30 for infotypes 0008, 0015, 0759 and hits the enter key or saves the data, the value should get rounded off based on some custom logic.
    Can you tell me any exit/BADI where I can implment this?
    I tried to used BADI: HRPAD00INFTY but did not get the updated value on the screen.
    Waiting for your replies.
    regards
    Ashwini

    IF i001p-molga = '01' .
    TYPES: BEGIN OF ty_trfgr,
    trfgr TYPE p0008-trfgr,
    END OF ty_trfgr.
    DATA: gt_trfgr TYPE TABLE OF ty_trfgr,
    gs_trfgr LIKE LINE OF gt_trfgr.
    DATA: r_trfgb TYPE RANGE OF char10,
    rs_trfgb LIKE LINE OF r_trfgb,
    v_bet TYPE ansal_15,
    v_betrg(9) TYPE p DECIMALS 2.
    * v_betrg TYPE pad_amt7s.
    DATA: v_sal_type TYPE lgart,
    v_freq TYPE ansal_15,
    v_sal TYPE ansal_15,
    v_others TYPE ansal_15.
    DATA: gt_t511 TYPE TABLE OF t511,
    gs_t511 LIKE LINE OF gt_t511,
    gt_t510i TYPE TABLE OF t510i,
    gs_t510i LIKE LINE OF gt_t510i,
    v_longpack(16) TYPE p,
    v_result TYPE p.
    * IF ipsyst-inpst = '2'.
    * get the ps group
    SELECT trfgr INTO TABLE gt_trfgr FROM t510 WHERE molga = '01' AND
    ( trfar = 'Z2' OR trfar = 'Z7' OR
    trfar = 'Z4' OR trfar = 'Z5' OR
    trfar = 'Z6' ).
    IF gt_trfgr[] IS NOT INITIAL.
    LOOP AT gt_trfgr INTO gs_trfgr.
    rs_trfgb-sign = 'I'.
    rs_trfgb-option = 'EQ'.
    rs_trfgb-low = gs_trfgr-trfgr.
    APPEND rs_trfgb TO r_trfgb.
    CLEAR: rs_trfgb , gs_trfgr.
    ENDLOOP.
    ENDIF.
      IF wa_p0008-trfar = 'Z7' AND wa_p0008-trfgb = 'Z1' AND
    wa_p0008-trfgr IN r_trfgb[] AND v_sal_type = '9010'.
    v_ansal = ( v_others + v_bet ) * 13.
    ELSEIF wa_p0008-trfar = 'Z5' AND wa_p0008-trfgb = 'Z4' AND
    wa_p0008-trfgr IN r_trfgb[] AND v_sal_type = '9010'.
    v_freq = '13.7' .
    v_ansal = ( v_others + v_bet ) * v_freq .
    ELSEIF wa_p0008-trfar = 'Z2' AND wa_p0008-trfgb = 'Z1' AND
    wa_p0008-trfgr IN r_trfgb[] AND v_sal_type = '9010'.
    v_ansal = ( v_others + v_bet ) * 12.
    endif.
    * pass the new value to screen
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008
    IMPORTING
    prelp = innnn.
    Please sap Gurus reply asap as the values are not reflecting in the pa30 screen .willcalling the function popup_to_confirm solve the problem . as the values are there in db but not reflectingthe in the screen

  • Programing paradigm for dynpro enhancements via BADI

    Hi Experts,
    do You know programing paradigm in system for dynpro enhancements via BADI ? I must extend a dynpro with a new subscreen tabstrip via BADI. I know BADI's very well but no in relation with dynpros.
    Thank You in advance
    Peter

    Hi,
    CRM_CUSTOMER_H_BADI  / CRM_CUSTOMER_I_BADI -  To change the name of custom-defined tab in lead either in header or item level.
    hope it helps.
    Regards
    Sidd

  • IW31 - User Exit / BADI for changing data in Component's Order.

    Hi gurus,
    I need to update the field WEMPF in the order components during the Order Creation (Tx IW31).
    Is there any User Exit or Badi I can use?
    Thanks in advance !!

    At WO10009 User Exit...we can use this FM:
    CO_BC_RESBD_OF_ORDER_GET -> Get RESB internal table.
    CO_BT_RESB_UPDATE -> Update RESB table.
    Althought during creation (IW31) when the order numer is temporal ($$$$$$$$$$$1), this FM works great, cause it reads from memory, not from database.
    Regards,

  • IW31,IW32 Exit / BAdI to update Oprtn's Work center based on Header WrkCtr

    SAP 46C
    I am looking for a way to ensure that the first operation on a Maintenance Order has the same work center as the Header of the Operation. I am not seeing a BAdI that has the export parameters that allows update of information. Infact I did not see one in ECC6 either.
    Thanks
    Hari

    Hi Dude,
    Code to find out the BADI or exit..
    REPORT  ZBADI_FINDING.
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT IN ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    *Sorting the internal Table
    SORT JTAB BY OBJECT.
    DATA : WF_TXT(60) TYPE C,
    WF_SMOD TYPE I ,
    WF_BADI TYPE I ,
    WF_OBJECT2(30) TYPE C.
    CLEAR : WF_SMOD, WF_BADI , WF_OBJECT2.
    *Get the total SMOD.
    LOOP AT JTAB INTO WA_TADIR.
    AT FIRST.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    ENDAT.
    CLEAR WF_TXT.
    AT NEW OBJECT.
    IF WA_TADIR-OBJECT = 'SMOD'.
    WF_OBJECT2 = 'Enhancement' .
    ELSEIF WA_TADIR-OBJECT = 'SXSD'.
    WF_OBJECT2 = ' Business Add-in'.
    ENDIF.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 WF_OBJECT2,
    105 SY-VLINE.
    ENDAT.
    CASE WA_TADIR-OBJECT.
    WHEN 'SMOD'.
    WF_SMOD = WF_SMOD + 1.
    SELECT SINGLE MODTEXT INTO WF_TXT
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = WA_TADIR-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    WHEN 'SXSD'.
    *For BADis
    WF_BADI = WF_BADI + 1 .
    SELECT SINGLE TEXT INTO WF_TXT
    FROM SXS_ATTRT
    WHERE SPRSL = SY-LANGU
    AND EXIT_NAME = WA_TADIR-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    ENDCASE.
    WRITE:/1 SY-VLINE,
    2 WA_TADIR-OBJ_NAME HOTSPOT ON,
    41 SY-VLINE ,
    42 WF_TXT,
    105 SY-VLINE.
    AT END OF OBJECT.
    WRITE : /(105) SY-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , WF_SMOD.
    WRITE:/ 'No.of BADis:' , WF_BADI.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    DATA : WF_OBJECT TYPE TADIR-OBJECT.
    CLEAR WF_OBJECT.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    READ TABLE JTAB WITH KEY OBJ_NAME = SY-LISEL+1(20).
    MOVE JTAB-OBJECT TO WF_OBJECT.
    CASE WF_OBJECT.
    WHEN 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    WHEN 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.
    DO 2 TIMES.
    ENDDO. 

  • Internal order + Inv.program position report

    Hi experts,
    we are using internal order as invest.measures for inv. program structure.
    can you please help me with finding a standart report for internal orders, where I can find this assignment invest.program position?
    In KO03 it is field RAIP1-POSID (Position ID fo inv.program) I tried KOK3, KOB1, KOB2, but this field is not there. Is it possible to integrate these fields in the output listIs via customizing?
    The only report is in IM (IMR1) but this is a hierarchical display (not suitable for excel exporting)
    thanks you for your effort.
    Pablo

    Hi, you can add this field in kob1, check note 325546

  • Investment management - Assignment od AR to Multiple program Positions

    Hi,
    Does any body has worked on a scenario of assigning the appropriation requests to more than one program positions.
    I know that the AR can be assigned to more than one position. But i am not able to see this request in IM52 T code which is used to distribute the Budget to measure from Investment program positions.
    Request you to share your views.
    Thanks
    Rajesh

    Hi Rajesh,
    As I wrote earlier this is a constraint in the system that an investment object (say top level WBSE) can receive budget only from a single IM prog node. You can check this for yourself at the following place:
    SPRO=>Investment Management=>Investment Programs=>Master Data=>Define Program Types
    Check the 'Budgeting indicators' and uncheck 'Single Assignment' indicator.
    When you try to save you'll get following warning message:
    =================================================
    Only single assignments are allowed when using budget distribution
    Message no. AP276
    Diagnosis
    You specified budget distribution in your program type. When budget distribution is activated, you can assign measures and appropriation requests to only one investment program position. Multiple assignment to different program positions is not allowed.
    System Response
    The system does not allow the combination of budget distribution and multiple assignment.
    Procedure
    When using budget distribution, set the 'single assignment' indicator.
    ==================================================
    Further, with every thing being correct, the current status of your Inv measure should allow Business transaction 'Budgeting' other wise this Inv Measure will not be visible in IM52 T-code.
    Hoping your client gets convinced with this info.
    with regards,
    Ravi
    Edited by: Ravi Shrivastav on Mar 14, 2009 7:06 AM

  • Capital inv. program position not allowed for measure

    Hi Gurus,
    When I am going to assign top level wbs to investment program position i am getting the error message
    How I can overcome this.
    Quick response will be rewarded and appreciated.
    Cap. investment program position not allowed for measure
    Message no. AP039
    Diagnosis
    You want to assign a measure or appropriation request to an investment program position.  However, the program position does not allow this type of assignment.
    System Response
    The assignment is not allowed.
    Procedure
    Use the detail display in the position to find out what assignments are allowed to it.
    rgds

    HI Sree
    In  im12 I have one general Tab and one Organisational tab.Here I am not getting allowed measures button.
    even though I am unable to create AR when i am assigning WBSE there then I am getting the error message.
    Program type not allowed according to budget profile of measure
    Message no. AP177
    Diagnosis
    You tried to assign a measure to an appropriation request.
    The appropriation request type for the appropriation request specifies that assignment from measures is only possible, if the measures specify that they have to be assigned later to an investment program with program type ZM01.
    However, the budget profile of the measure specifies that it has to be assigned later to an investment program with program type ZC01.
    System Response
    The function cannot be carried out.
    Regards

  • Copy Internal Order between Investment Programs

    We have a investment program in approval year 2014  which has 1 Internal Order assigned to it and the budget has been fully allocated.  We want to budget against this internal
    Now we have created a new investment program in approval year 2015 and want to the use the internal order(measure from the invesment program in 2014. We have tried the following:
    IM22 Change program - assignments add internal order get error message "There is already an existing assignment to program position 2014"
    IMCAOV Budget Carryfoward - No impact on the measure as there is no budge to carry forward.
    Can anyone advise how we can budget on the same Internal Order in the new fiscal year ?
    thanks
    Joe

    Hello,
    the little late answer to your question is the table IMZO. It links the investment program / positions to internal orders. I found this thread while searching for my own problem which is quite the same:
    In my WebDynpro for ABAP investment planning tool I'm using the FM BAPI_INTERNALORDER_CREATE to create internal orders as a result of the planning process. This BAPI is similiar to the transaction ko01 except that I can't assign an investment program / position to my internal order (this is also pointed out in the help to the BAPI/FM).
    But how can I assign an investment program / position to my internal order NOT using an ABAP insert/update statement on the table IMZO (which links the internal orders and investment programs/positions).
    Does anybody know a FM or BAPI I could use? I really don't like the idea of a self made insert/update into a sap table...
    Thank you in advance,
    Christian Bracht

  • Validating department in WBS element code with dept in Investment program

    Hello Guru's,
    While assigning Investment program, in WBS  in CJ20N or CJ11, in our current business process we need to to validate the Department code in both WBS code and Investment program code.
    At present we have planned to used same department code in WBS Code and Investment program code.
    Need to to do this enhancement for our current project.
    Please suggest the way to do it.
    Regards,
    Amlan

    Hi,
    I assume this "Department Code" is one of your customer specific field that is made available both in WBS as well as the iM program. If that is the case then either you can use any of the user exits for the WBS Elements to write your code or create a validation for the WBS and put your code in one of those exits invalidation.
    Regards
    Sreekanth

Maybe you are looking for

  • Error message while assigning agent to workflow task

    Hi guys, I have a serious problem in my workflow definition. I can't assign the superior of workflow intiator, I mean that the binding can't be defined automatically when I add the rule 00000168, I have the error message "container element ORG_OBJECT

  • TS1717 Error during installation on Windows 7 64 bit

    Hello, please can you help me.  I am trying to install iTunes on a 64-bit Windows 7 machine.  I have found the correct download for 64 bit machines but am coming up against an error message when I'm in the middle of the install.  It then rolls all th

  • Classes on which ur servlet depends is not found in classpath

              i am trying to deploy a servlet in exploded form in weblogic 7.0.Its is deployed correctly but when i call the servlet from a html file i.e. index.html it throws an error http:<Error> <HTTP> <101250>           stating that the classes on wh

  • Sync Pay Scale Group/Pay Scale from Job link to the Position

    Hi , We need an automatic way to sync the Pay Scale Group and Pay Scale Level in Infotype 0008 when we do a Job change to the position in transaction PO13 . What is the best way to do that ? As SAP a standard sync. routine ?

  • IWeb - Blog NO dates?

    Is there any way to not have the blog dates appear in the blog summary page?