Adopt contract lines during PR creation

Hi Abapers,
We have a requirement to actually copy over Contract details to create PR which is not the standard SAP way. Browsed and found out that it can be done via BAPI_CONTRACT_GETDETAIL & BAPI_REQUEST_CREATE. But does anyone know if this was achieved via Z* program or exits?
Appreciate your inputs.
Thanks.
Neesh.

You could either
Build your own report, as suggested by Edgar Soares, using BAPI_CONTRACT_GETDETAIL and BAPI_PR_CREATE
Use a BAdI like ME_PROCESS_REQ_CUST and use the BAPI_CONTRACT_GETDETAIL to read information to copy into PR as soon as contract reference field is input.
Regards,
Raymond

Similar Messages

  • Automatic contract creation during BP creation

    Hi Experts,
    Please give me the configuration part for the below functionality
    Create a contract account automatically when we create a new business partner or a new role for an existing business partner.
    Regards,
    Srikanth.M

    Automatic Contract Account Creation During BP Creation  
    Use
    You can use this function in Media Sales and Distribution to have the system create a contract account automatically when you create a new business partner (BP) or a new role for an existing business partner. For example, this is useful when processing orders in Media Product Sales and Distribution that require an existing contract account for processing.
    If a contract account already exists for the business partner, the system does not create an additional one.
    Prerequisites
    You have activated the business function  Media, Subscription Management 2 (MED_MSD_1). If you use SAP Media Sales and Advertising North America Extension, please see also the release notes for this business function.
    You should have assigned a contract account template to the role in question in the Customizing settings for the SAP Business Partner for Media Companies under Contract Account Assignment ® Define Contract Account Templates. If you create a business partner in several roles and different templates are assigned for these roles, you can specify a priority to determine which contract account the system is to use as the template.
    Please note that you need a template business partner in order to create a contract account template. The contract account template must not have an incoming or outgoing payment method, since these fields are business partner-specific and would be overwritten by the function for automatic contract account creation.
    Features
    The following functions can be used to create a new contract account automatically during business partner creation:
    ●      Maintain Business Partner (transaction BP)
    ●      Data transfer function for the SAP Business Partner (transaction KCLJ)
    ●      Creation in background processing (used in the Customer Interaction Center, in the Internet Application Components, and in fast entry)
    Please note that you cannot create a contract account automatically if you create business partners using the BAPI BAPIBUSISM007_CREATEFROMDATA.

  • Badi ISU_PRODUCT_CHANGE and creation of a new contract line item

    Hello Gurus;
    I have this requirement: Once a contract gets close the ending date (30 days before) i need to automatically renew the contract. In order to do that i thought that an action in the Contract Item might get the job done and browsing i found that badi ISU_PRODUCT_CHANGE does almost what i need even if it creates a new contract line item with a new product and this is not good for me... Does anybody know if there is a better Badi matching with my requirements or i have to "modify" the ISU_PRODUCT_CHANGE? I hope my question was clear if you need more specifics please ask me...
    Thank you very much.
    Fabio

    You can create a new costing variant with  a valuation variant that points to inforecords for material prices. Go to OKKN t-code and create the required configuration and start using the new costing variant to measure the current cost of making vehicles.

  • Cancelled contract lines are populating in the SR form's subject tab when clicking on 'Get Contracts' button

    Cancelled contract lines are populating in the SR form's subject tab when clicking on 'Get Contracts' button. But user says, it should not be populated. What could be the reason? Please suggest.
    I have told the user :
    "In the case of a renewed contract, if the service request is logged during the effectivity of the original contract (which is now Expired), the original contract will be retrieved. If the service request is logged during the effectivity of the renewal contract then only the renewal contract will be retrieved.
      Contract Entitlement on Subject tab is based on Contract Start and End dates. All the contracts i.e. expired, active, cancelled will appear until the end date. As we can see the contract ES-10165 is end dated on 09-DEC-2014, hence it will appear on the subject tab as per the functionality."
    But the User is saying:
    "Contract coverage is clear to be based on dates, and that is quite clear to me as well… the problem comes with the different statuses.
    A SR can be associated to an “EXPIRED” contract line because the SR creation date could be falling between coverage line start and end dates, but can never be related to a “CANCELLED” line.
    This “CANCELLED” status means that the line is not valid for the contract, so if it is not valid for a contract, it is not valid for referencing a job…and this is only creating wrong costs associations."

    Hi Sudhakar,
    Drop inline message components for each of the textFields and the textArea and then run the application. You could also use a message list component but inline message components for each of the input components would give you a clear idea if any errors are occuring. In case any such errors are indeed occuring then the situation can be analysed further.
    Hope this helps
    Cheers
    Giri :-)

  • Fits attribute on user id during user creation (Cont)

    Hi Experts,
    A little time ago , we posted some doubt regarding of how can we fits the attribute userID during user creation on User Interface.
    The previous discussion was posted here:
    "Fits attribute on user id during user creation"
    Link abou our issue "scn.sap.com/thread/3532549"
    As the Correct Answer:
    Alternative 2, add a To IdentityStore pass as part of the task workflow where your logic is implemented in a jscript:
    MSKEYVALUE=%MSKEYVALUE%
    ****AD_USER_ID=$FUNCTION.GENADUSERID(%MX_FIRSTNAME%!!%MX_LASTNAME%)$$
    The script is running very well, but when we create a new employee on HR System (No SAP) this this script is not running just for this new user but for all other users already exitents on IDM. The script increase in Mass an not just for new user.
    Does anyone know if this can be related with delta configuration, or this kind of validation ( create just for new employe placed on HR) needs to be done inside the script?
    THank you very much.
    Miguel

    Hello Miguel,
    is the "Create Identity"-task called by the HR-update-job?
    The screenshot in the old thread just shows the three inputs. I guess, there are some more in the used task. Did you check, if the other lines have the dot as a prefix, so that these attributes are only filled (and therefor the script only runs), when the entry is created, but not updated?
    If yes and it's missing for those two attributes, just add it.
    Regards,
    Steffi.

  • Wrong payment term during invoice creation

    Hi All,
    when i created sales order with one line item then it is creating two entries in VBKD table with POSNR = '0000' with payment term ZTERM = 'ZI15'  and POSNR = '1000'  with payment term ZTERM = 'Z223',  but problem is that when going to create Invoice it is picking wrong payment terms Z223 while it shud be ZI15. can anyone please help me to know why it is creating 2 entries in VBKD and why it is taking wrong invoice during Invoice creation.
    Saurabh

    HI,
    Please review SAP note 38934 which may help to explain this issue.
    If you do not have VBKD data for a particular line item, it is the same
    as the header (vbkd-posnr = 000000). This is standard behaviour.
    so if you have a vbkd line item, that simply means some part of the business data is different to the header
    and that's why the line item for VBKD was created (in this case a different payment terms has been entered for the line item)
    For the second part of the issue, please start at trx VTFA and check the copy control (especially at line item level).
    kind regards
    Paul Q

  • Read Invoice Plan data in BADI impl "ME_PROCESS_PO_CUST" during PO creation

    Hello All,
    We had implemented BADI "ME_PROCESS_PO_CUST", during the check & post methods I require to fetch the invoicing plan data for calculating the total value of purchase order. Because invoice plan is splitted just like an instalment for a period and the line item in PO is showing only one instalment, where as the ordered value of PO is the total of all instalments.
    Invoice Plan data will be stored in FPLT table and the FPLNR can be fetched from EKPO.
    Can any one tell me how to read the invoice plan data during the PO creation? Is there an interface & method for reading it?
    Regards,
    Ramesh
    Edited by: Ramesh Babu Srikakollu on Apr 18, 2011 7:37 AM

    Hello All,
    I, myself found the solution for reading the Invoice Plan data of a Purchase Order during the creation/change. i.e. the runtime data for calculation.
    Here is the solution:
    Call this function module in the BADI implementation for the method CHECK or POST using the FPLNR (Invoice Plan Number), this returns the run time data of the invoice plan details during creation or change of a PO.
          data lt_fplt type table of fplt.
          CALL FUNCTION 'ML_INVOICING_SCHEDULE_READ'
            EXPORTING
              fplnr_imp = ls_opp_ekpo-fplnr
            TABLES
              xfplt     = lt_fplt.
    Regards,
    Ramesh

  • Exception during room creation

    Hi everybody,
    First time I'll use collaboration.  I'm using EP 6.0 sp9, I just applied patch 3 for KMC.
    I'm trying to create a collaboration room, but the last step (finish button) gives me this error:
    "Error: Room MyRoom has not been created
    Exception during room creation"
    The log file line:
    #1.5#000BCDEFE483004E0000000300000EA80003F06AF3055684#1108767064581#com.sap.ip.collaboration.room.api.Exceptions.RoomCreationException#sap.com/irj#com.sap.ip.collaboration.room.api.Exceptions.RoomCreationException.logException(268)#diego.hernandez#475####7b431de081ff11d9ab18000bcdefe483#Thread[PRT-Async 0,5,PRT-Async]##0#0#Error##Plain###com.sap.ip.collaboration.room.api.Exceptions.RoomCreationException: Exception during room creation
    Any clue about this ?   I appreciate a lot your help !!!
    Regards from Mexico,
    Diego

    Hi Veronica,
    Well... I guess its an installation problem.  Because I install another EP instance (with other source files) and everything is working correctly.   In fact, I have installed a lot of SR1's and they're working fine.    You should try another source files and reinstall the solution.
    pd: I think this is the most clean and fast way to fix the problem...  Obviously, you can try to fix it with patches, fixes, etc.
    Regards,
    Diego

  • User Exit/ Badi for Changing Quant parameters during TO Creation

    Hi Gurus,
    Could you please guide me to advice the User Exit/Badi which can be used for changing Quant Data during TO Creation.
    User Requirement: Using "Recepient Field" in MIGO as a Key Value for FIFO in WM during goods issue. Receipient is copied into TR and TO (Standard SAP Functionality). For the purpose of Stock Removal based on Receipient Value, we need to copy this value into Quant Data field named Certificate Number ("LQUA-ZEUGN").
    I will highly appreciate reply from Gurus.
    Regards,
    Gupta M

    Hi manish,
    Use the Exit MWMTO001 for this purpose and modify the table accordingly. This will solve your problem.
    Thanks,
    Shibashis

  • Error message during cube creation

    Hi expert,
    System show the following error message during cube creation, please info how to solve this problem. Thanks.
    Define the characteristics of the validity table for non-cumulatives
    Message no. R7846
    Diagnosis
    The InfoCube contains non-cumulative values. A validity table is created for these non-cumulative values, in which the time interval is stored, for which the non-cumulative values are valid.
    The validity table automatically contains the "most detailed" of the selected time characteristics (if such a one does not exist, it must be defined by the user, meaning transfered into the InfoCube).
    Besides the most detailed time characteristic, additional characteristics for the InfoCube can be included in the validity table:
    Examples of such characteristics are:
    A "plan/actual" indicator, if differing time references exist for plan and actual values (actual values for the current fiscal year, plan values already for the next fiscal year),
    the characteristic "plant", if the non-cumulative values are reported per plant, and it can occur that a plant already exists for plant A for a particular time period, but not yet for plant B.
    Procedure
    Define all additional characteristics that should be contained in the validity table by selecting the characteristics.
    In the example above, the characteristics "plan/actual" and  "plant" must be selected.
    The system automatically generates the validity table according to the definition made. This table is automatically updated when data is loaded.

    Hi,
    Go to the Extras Tab in the definition of the Cube and there select " Maintain Non-Cumulatives" and there select the Plant check box. You can also check Material but it is not recommended. Now try to activate the cube. I think it will work for you.

  • Error during PO creation "Total BED % rate exceeds 100 % "

    Hi.
    Its concerned to Indian Excice.
    Error during the creation of PO is " Total BED % rate exceeds 100 % " ,
    ( Message no. 8I453).
    And you pls note in J1ID its 16% maintained for that perticular chapter id and its 100% for BED in tax code.
    Can you pls tell me the reason for this error.
    Regds

    Hi Santosh,
    362 is not maintained for BASB,but its maintained for condition type JMO1(IN:A/P BED Deductable) & JMO2(IN: A/P BED non deduct )in <b>AltCTy</b> field.
    And For BASB 605 is maintained in the field AltCBV.
    Can you Pls explain the significance of this alternative calculation type.
    Regds

  • Checks on vendors during the creation of PO with ME21N

    Hi all,
    i have this problem:
    during the creation of a Purchase Order, for some types of them i have to bypass some checks that are made by standard on the Vendor.
    Is it possibile to do? if it is, how can i do it?
    Thanks
    Lello

    Hi
    If they are standard controls, probably it'll mean to change the standard program: if your SAP release is ECC 6.00 u can try to use the Implicit Enhancement in order to change the standard else u need to register the standard to OSS in order to get the access key for modification.
    Max

  • Automatic Partner Determination Std Contact Person during Activity Creation

    Hi ,
    There is a requirement in my project where the Standard Contact Person of the Sold to Party  should be automatically determined during Activity Creation .I have completed the Partner Function configurations and now the Standard Contact Person is  being successfully determined as the Partner.
    However, there is a problem in a scenario where in another Contact Person other than the Standard Contact Person is to be determined during Activity Creation . In that case, the option to select the other Person is not being offered through a pop up window, but the System automatically populates the next Contact Person based on the BP Id ( Next on the Number Range )
    Is there any way , so that the normal procedure of selecting one Contact Person from a list in the Pop Window can be incorporated , once the standard Contact Person is being removed from the Contact Person field in the Business Transaction .
    << Moderator message - Please do not promise points >>
    Regards,
    Maroof
    Edited by: Rob Burbank on Jan 5, 2011 5:06 PM

    Hello Maroof,
    you should check first the standard relationship flag of the account. Means check the account and go to the
    relationship contact person.
    There you will find the standard Relationship Flag, which is relevant for the system to determine the main CP.
    Furthermore please check the partner procedure:
    For each partner function you can enter a value in field Maximum and Selection Limit. Please consider the F1 help
    for the field Selection Limit where you can find the explanation when and how the selection popup is triggered:
    Example 1
    You enter 3 in this field.
    When the system finds three or more partners who could fulfill this partner function, it displays a selection list.
    You choose from the list which partners to enter in the transaction.
    Example 2
    You do not mark this field, but enter 5 as the Maximum for this partner function.
    When the system finds six or more appropriate partners it displays a selection list.
    Hopefully this information helps you.
    Regards
    Rene

  • No Authorization to OLAP Cubes during the creation of universe connection

    Hello friends we are not able to see the OLAP Cubes during the creation of universe connection using the Quality system and Application server "sapbmw01" client 100, system # 00. But we are able to set up the connection in our development system.  
    I will highly appreciate if you can let me know if we need some special role to access the OLAP Cubes during the creation of universe connection using the Q system.
    Surprisingly we are using SAP_BW_ALL in Quality system still we are not able to access the infocubes. is there some thing missing in CMS IN BO to make that work.
    Thanks
    Soniya

    Hi Jyothy,
    Refer the below link on how to create universe on Analytic View/Calculation View using relation connection in IDT
    http://www.sapanalyticsguru.com/index.php/sap-bobi/31-universe-creation-on-hana-view-using-information-design-tool

  • Serial Number validation during Delivery Creation itself(PGI-system checks)

    Process:
    Sales Order PR(Purchase Order) GR( New Serial Numbers are created automatically or manually keyed in)
    Once the Goods Receipt is received, we do the (SO) DELIVERYu2014SERIAL NUMBER ASSIGNMENT Post Goods Issue
    Issue:
    Current Serial Number Profile Management does not do a valid serial number check during DELIVERY CREATION where we do a SERIAL NUMBER ASSIGNMENT.
    Only during POST GOODS ISSUE, the check happens for valid serial numbers; this is too late in the game for business as there is a time lag of 3 days from the DELIVERY CREATION and PGI.
    Reason being--- We donu2019t check the following u201C Existing Stock Checku201D( which does a serial number validation during delivery creation as well)
    SPRO>Plant Maintenance and Customer Service>Master Data in Plant Maintenance and Customer Service>Technical Objects>Serial Number Management>Define Serial Number Profiles
    If we check this option, the business requirement to do a valid serial number check does happen during delivery creation, however we cannot create new serial numbers during Purchase Order- GOODS RECEIPT.
    QUESTION:
    Can we have the system check the valid serial numbers from stock during delivery creation and serial number assignment.
    And Also create new serial numbers during Purchase Order- Goods Receipt.

    Hi
    1.In std SAP its not possible to check the serail number during Delivery creation, through enhancement it can be done.
    2.During GR for PO serial numbers can be created.
    Rgds
    Ramesh

Maybe you are looking for