Change PO number/document type

Hi,
we are using SRM 5.0, extended classic scenario.
We have defined three document(transaction) types for PO in srm.
One of them is a Dummy type-when this one is selected i need to change the type (and a number because of number ranges) of this PO depending on some conditions for items. I need to do this change propably when the PO should be stored in the backend. How can i do it? should i use outbound badi and change the number of PO? how can i get the next "free" number of PO with specified type? but i think that i will loose connection between srm PO and backend PO-so how should i update SRM PO?
thanks
JJ

You can probably do the changes already when saving the PO. I think what you can do best is to use BBP_DOC_CHANGE_BADI with filter BUS2201 (for PO). Do a check on sy-ucomm to decide whether the save button has been pressed or not. Here you have most of your item data available. Sometimes however some of your item data is not present in the BADI (quite annoying really), use FM BBP_PO_MEMORY_GET to get the order that is stored in memory (all screen changes are already reflected in the return data. Check the FM in
The reason I advice to use DOC_CHANGE is because you have all data available you need. In the other BADI that comes to mind BBP_DOC_SAVE_BADI you have to call several FMs to get an updated PO.
I don't know if the correct number is retrieved then, just see if it does. If so, great, if not, you can probably do something with FM GET_NEXT_NUMBER (or any variation of those words as I don't have access to a system right now).

Similar Messages

  • Change Purchase Requisition Document Type when item category is D

    Hi experts,
    i have problem, when i put servis number in to the servis line i havent change Purchase Requisition Document Type. Account
    Assignment Category is K and Item Category is D. It is standard of Purchase Requisition? When i set that i can change document type when item category is D.
    When i putting only material i can change Purchase Requisition Document.
    Thx for your answer.
    Laco

    Hi,
    One thing please note that once you select the document type and draft the PR and save the PR, you will  get the doc number.
    Once you get the document number you cannot change the PR document type .
    The reason is document type is linked with number range so it cannot be changed because different seriers of document number is assined to differentdocument type. 
    And moreover document type is linked with the screen settings also. So I would request you to check the settings for each doc. type

  • Change the reverse document type for RE.

    Hi,
    We want to change the reverse document type for document type RE, can any one sugget the possible negative impact.

    hi
    kindly note that if you are creating a new document type to be assigned as the reversal document type for RE then you need to assign the appropriate number range interval for the year.
    if you are going to assign an existing document type as the reversal document type for RE then you will not be able to distingush the past and the new documents generated as both of them shall belong to the same document type.
    regards
    eashwar
    Edited by: eashwar1 on Apr 15, 2010 2:38 PM

  • BAPI only assign Document Data(Document Number/Document Type) to Material

    Hi,
           Can any one tell me A Standard BAPI which is only assign(Not Create New Document Number)
           Document Data to Material Number.
    Regards
    Smruti

    Hi Ganesh,
    i am writing a Custome BAPI for Material Create uisng "BAPI_MATERIAL_SAVEDATA " and also i assign an Existing Document Number ,Document Type to the Material Number which is Created using "BAPI_MATERIAL_SAVEDATA".
    so, i need a one SAP Standard BAPI which is assign an Existing Document Number ,Document Type to Material Number and the Document number and Document type is available  Input Parameter of my Z BAPI.
    Note: Don't Create New Document Number i have docuemnt number and just assign to Material Number
    Thanks and Regards.
    Smruti

  • Change of clearing document type

    Hello,
    Whenever I make a clearing through F-44 t-code for a down payment the document type generated is the standard AB. What should I do in order to change this document type for the same as the original one? I mean that if the document I want to clear is doc.-type DT, I want the clearing document to be DT type too.
    Kind regards,

    Hy,
    I have just tested if change the document type for vendor in OBXH, then i posted invoice (FB60 )of Rs. 60,000 and then credit memo (FB65) Rs. 60,000, the type of invoice is KR and Credit memo is KG. After this I run clearing by F-44, and posted the clearing document and checked that system automatically took the document type defined in OBXH.
    I have tested it for vendor, customers and GLs as well.
    Please change the document types for GL, vendor, customer in OBXH and test it once again, I hope this will work.
    Thanks
    Javed

  • PR(ME52N) field change for one document type

    Hi all,
    I have a requirement to have quanity field in display mode in ME52n (PR change) for only one document type say NB. for other document type the quantity field should be change mode. is this possible..if so cna you please explain in detail.
    Thanks,
    vatchan

    Hey vatchan,
    Here should be slight change to the earlie posted version.
    1. Materials Management - > Purchasing -> Purchase Requisition -> Define Screen Layout at Document Level
    2. select the Screen layout ME52N & copy this to new 'Felid selection group' (Say ZZZZ) and check Quantity field to be 'display' check box. (It is usually not advisable to make changes to standard 'Felid selection group')
    3. Then, Materials Management - > Purchasing -> Purchase Requisition -> Define Document Types
    4. define the screen layout in Field Selection Key created (ZZZZ) against the document type 'NB' and your ME52N should restrict 'quantity' field as 'Display' while other document types can still show 'Quantity' field as editable.
    Regards,
    Kik.

  • Changing the material document type.

    Hi All,
    While creating a GR using the FM "BAPI_GOODSMVT_CREATE", is there any way we can set the document type (WE or WN) depending upon the company code.
    Thanks in Advance
    Someswara

    Hi,
    The short answer is no, the document types are not, and should not be, company code specific, they relate to the movement taking place rather than the company involved.
    Why would you want to use a different document type?
    I would imagine that it was to segregate the different company codes but surely the company code is part of the data anyway and can be  used for this purpose?
    Steve B

  • SC based on item category  po document type need to be choosen

    Hi I have a require ment
    Based on the SC item  category or ........ etc    the PO document type must be choosen
    ex:  If SC item is   LIMIT  item  then when ur creating the po The PO document type must be zlimit PO  ...some thing like
    same way for service   --- PO doc tyep may be Zsercie PO
    and same way for catalouge - PO doc type may be Z cat PO
    please guide me how to do this
    Basaed on the SC item the PO doc type need to be automaticlly choosen.
    Sekhar babu dasari

    Hi,
    This has been discussed several times on this FORUM..Pls refer the foll threads for more details:
    PR document type in the back end system
    Change "Document Type in R/3 System" in SC
    Changing document type of PO backend
    Re: Change PO number/document type
    BR,
    Disha.
    Do reward points for useful answers.

  • PO - Document Type FO and Item Category B - Can they be transferred to SUS?

    Hi SDN
    We are using R/3 4.7 with SRM 5.0 - Classic Scenario and XI 4.0.  We are just about to launch an SUS project to put our PO's on SUS for our suppliers.  Our organization is dealing with PO's for both Goods and Services.  As we know that there are no problems about putting the GR-Type PO's (NB type) on SUS but I would like to know if it is possible to transfer PO's that would be from the Document Type FO and Item Category B (Blanket PO) to SUS and ensure that our suppliers can do the entire PO Acknowledgement, PO Change and post the Invoice via SUS.  If not, what are the options for our R/3 - SUS installation?
    Thanks!
    Eric L.
    Edited by: Eric Longpré on Apr 23, 2009 12:57 PM

    Hi,
    This has been discussed several times on this FORUM..Pls refer the foll threads for more details:
    PR document type in the back end system
    Change "Document Type in R/3 System" in SC
    Changing document type of PO backend
    Re: Change PO number/document type
    BR,
    Disha.
    Do reward points for useful answers.

  • Purchase requisition document type change after Enhancement pack 4

    HI,
    we have recently upgraded to enhancement pack 4, after which i am not able to change purchase requisition document type.
    In change mode ME52N, the system is allowing to make change but when i goback and display the same PR again the change is not visible in change history also.
    I am able to make other changes. facing the problem with change in document type only.
    Regards,
    Raghu

    Hi,
    One thing please note that once you select the document type and draft the PR and save the PR, you will  get the doc number.
    Once you get the document number you cannot change the PR document type .
    The reason is document type is linked with number range so it cannot be changed because different seriers of document number is assined to differentdocument type. 
    And moreover document type is linked with the screen settings also. So I would request you to check the settings for each doc. type

  • Change PO document type

    Dear All,
    At one of my client we are able to change the PO document type for some PO's and for some PO's we are not.
    generally we can not chnage the PO document type once PO is saved. But this is happening, how it is happening and why it is allowed for some PO.
    If anybody has idea please let me know.
    Thanks in advance
    Regards,
    Umesh

    Check the Filed Selection for ME22N Tcode at
    Spro>Materials Management>Purchasing>Purchase Order>Define Screen Layout at Document Level
    If You set the Document type filed as Optional then you can Edit,
    If the Number ranges are Same for the Document type then only System will allow you to change.
    Otherwise even the Document type is in Edit mode Still It will not accept other Document with Different Number range

  • Changing PO Document type layout programatically

    Hii,
    My requirement is to change the PO Document type layout programetically. We have customized the standard PO Print report and for that we have created one customized style sheet. We have done the same for 4 types of document types : standard, Contract etc. Now while moving our code into another instance we need to set out custom stylesheet template to the corresponding Document type. Any one have any idea how can we do that from backend? We don't want to update the standard tables as Oracle does not support it.
    This is very urgent.
    Appreciate your help.
    Thanks.

    Goto OLME --> Define default value for document type
    here for T-code  MB01 - cahnge to your doc type
    Read that documentation for more info

  • Change document type within transaction ABSO

    Hello Experts,
    I am trying to change the standard document type AA to AF for the transaction ABSO. But unfortunately I am getting posted in AA which I don't want.
    Current situation :
    Created a new transaction type Z42 copying an existing transaction type 640 (Unplanned depreciation on prior year acquisitions). Then within the document type I have inserted AF as the default document type (screenshot attached).
    To be :
    Change the document type to AF.
    Any suggestions are welcomed.
    Thanks,

    Hello Mukthar,
    Thank you for your quick response.
    Do you mean when I make a repeat run of  AFAB or AFAR it will create a AF document ?
    But then why is it showing the amount 0 on the movement type but on the unplanned depreciation field the correct amount ?
    Is there something need to be done ?
    Regards,
    Sanjay

  • Change document type (BKPF-BLART)

    Hello,
    I have the following problem:
    One of our customers has established a new process. for an invoice which was posted with MIRO he wants to change the accounting document type (bkpf-blart)  depending on the purchase order type.
    My first idea was to use the <i>BTE 00001120 DOCUMENT POSTING:  Field substitution header/items</i>.
    There I have acces to all fields I need for my condition check. Unfortunately I have detect, that the strucutre for the substitutable fields (BKPF_SUBST) doesn't contain the field BLART.
    Is there another way to change the document type?
    Regards,
    Sven

    Hi Sven,
    You can actually create your own substitutable fields by fiddling with table GB01. If there is a record already existing for BLART you have to make the field BEXCLUDE blank. If not add the record with BLART (you can check some other substitutable field as reference). Use SE16 or create a Z program. Once this is done it can be substituted.
    Note however there is an SAP  note stating that the customer is responsible for such changes. However I have seen companies use this for BLART (and sometimes even HKONT!) and there has been no problems.
    Rgds
    Shivram.

  • Alternate document type for MRP requisition

    Our purchase scenario is that all MRP purchased items must have an approved contract to move to a purchase order.  In 95% of the cases, this will be true, but there will be that 5% that, due to expiration of the contract or quantity/value exceeded, a valid, approved contract will not be available.  However, the purchase must still proceed.
    Our thought is to create an alternate requisition type that the buyer could change the MRP requisition document to.  This new document type would then be subject to requisition release strategy.
    However, using an MRP generated requisition (creation indicator B), the document does not allow change of the document type.  The new document type is a complete copy of the NB document type used in MRP proposal planning, including the number range.  The only difference is that the new document type is subject to requisition release.
    Changing the document type at the MRP group level won't solve the problem as very few materials will actually require this change.  It would be temporary until the existing contract could be extended and approved or a new one created and approved.  Also, it seems that the MRP group setting affects only the purchase order and not the requisition.
    Is there a way for us to make this process work more smoothly than to have to copy the items from the NB document type to the alternate document type manually?

    Assuming you have a material master involved, why not try MRP Group in TCode OMDT.  You can assign the group to the material and that group can determine the PR type that is created.
    MRP:doc.type purchase requisitions for standard purchase ord
        Identifier allowing a distinction to be made between various kinds of
        purchase requisitions in the SAP system.
        By means of the document type you can, for instance, differentiate
        between a standard purchase requisition and a requisition relating to a
        stock transport order, although both documents belong to the purchasing
        document category "purchase requisition".
    Use
        Among other things, the document type controls number assignment and the
        selection of
    Regards

Maybe you are looking for

  • Message payload(data) not availabe during message transformations

    Hi, I have a JMS-XI-JDBC scenario, my problem is after the content conversion in JMS the message <b>reaches</b> XI(I am able to see in Moni) and but(payload) it is not available during message transformation(mapping) ( I have debugged it using Trace

  • Loading a movie within a movie

    Hello! I am trying to figure out the proper code for my button which should unload a movie and then call an external swf to load within a specific frame of yet another movie clip. Hope that made sense. In other words... I want the new clip to load at

  • Bank Sun Accounts

    Hi, I am trying to set up Automatic Payment Program for Vendor Payments. Where the sub accounts used in APP and how are they configured? Thanks in advance Kavita.

  • Index year to year in pivot table

    I need to create table and chart as show on picture http://vp.hu.cz/bi2.jpg (sorry numbers are random and displayed sums do net equal to it). I dont know how to display indexes (fourth row and last column) in table. Indexes in row are: SUM_YEAR_2006/

  • Printing solo PDFs via .BAT file

    Hi all, We have a current implementation of Oracle Documaker for our LOB. What we do is run a .BAT file that runs the GEN* brothers (gentnw32, gendaw32, and genptw32). This then uses the XML defined in the DATA segment of the fsisys INI file. This pr