Check purchase requisition accounting before to send it to SRM using BAPI
Dear Sirs, in our system when a PREQ has been transferred to SRM
with BBP_EXTREQ_TRANSFER
the system cheks he pur.requisition and in case of accounting errors the only source of messages is the application log
in SRM
We would build a custom preventive check on the backend for the pur.requisition ,before the transfer
to SRM so we think to use the BAPI
BAPI_ACC_PURCHASE_REQUI_CHECK
in couple with BAPI_REQUISITION_GETDETAIL.
Could you suggest some examples of code for the BAPI_ACC_PURCHASE_REQUI_CHECK ?
The system needs some obligatory informations.
Riccardo Galli - Hera
Obsolete question
Similar Messages
-
Set deletion indicator in purchase requisition account assignment
Hi Guys,
Can you please help we with the solution to set deletion indicator in purchase requisition account assignment or close purchase requisition. A purchase requisition of $3.600.000,00 was created through Project system Network-External Processing and it has 2 duplicate network activities and $2.246.577,20 was converted to purchase order then $1,353,423 became the network remaining order plan. A purchase order service entry sheet was accepted and the invoice was created. Now Iu2019m experiencing problem when Iu2019m trying to change WBS element and Network system status to TECO in order to remove the remaining order plan of $1,353,423. Iu2019m getting error message number:06411 the procedure I have follow to correct the error is to reduce quantities in the account assignment item and delete superfluous account assignment by setting deletion in each case but I cannot do that because the fields are grey
Regards
SandileHi,
please check first if the report ZMO_CORRECT_EBKN from note 739004 can correct the problem.
I would like to recommend you to check also the note 796973 whether the correction is avalilable in your coding, it should solve the issue.
In case the problem still persists, please open a ticket to get help from the primary support in area MM-SRV.
Regards,
Edit -
While creating Purchase Requisition we need to send a mail for approvers
Hi All,
While creating Purchase requisition we need to send a mail to approvers.
Dowe need to create Function module ?
if You know the steps can you please give me the steps.
Thanks In advance
Sriman.Hi Sriman
Here we can try for 2 approach
one is workflow and other his sending emails via user exit.
I am not much aware about workflow, but you can explore for user exit.
Try for enhancement component 'MEREQ001'.
let me know, if you need further help
Regards
MD -
Purchase Requisition with wrong details - Sending back to Originator
Hi Experts,
In SAP Purchase Requisition contents found incorrect on the stand of technical specification then buyer do not have provision to send back it through SAP to the originator (Design department) for correction.
At present buyer are resolving such issues on the basis of Email. Till the time PR get corrected by originator it shows pending for action on buyer’s a/c .
Hence considering above facts request to suggest us the method for sending the Incorrect PR line items to the originator through SAP.
Regards,
Shekhar GaikwadHi,
Configure release strategy for PO at item level along with workflow. The release code can be the buyer and once the buyer found any error in the technical specification, he can reject the release, which will notify the creator.
Refer the help doc: Workflow for Reject Purchase Requisition Item (SAP Library - MM - Materials Management: Workflow Scenarios)
Regards,
AKPT -
Purchase Requisition Date before SC Creation Date
Hi
We have a odd situation with a shopping Cart where Purchase Requisition Date (REL_DATE = March 11 2009) before SC Creation Date (March 31 2009).
Any comments/suggestions?
NikhilHI
I think this is an backend PO, the shopping cart created with reference to this PO. Becase of that this may happen.
tell me one think it is a production order.
Regards
Satish -
Purchase requisition generated before service order release
Dear Experts,
We're testing the Logistics Integration Scenario for the Procurement of materials.
When we enter a spare parts item(which is configured to create a purchase requisition in ERP)
and just save the service order,
the purchase requisition is created in ERP as soon as the order is saved even though the order is not Released.
Is this a standard behavior?
We expect that the purchase requisition should not be created until the service order is released.
This symptom happens not only with purchase requisition scenario but also with the purchase order, reservation, too.
Does anyone have an information on this? Any information would be highly appreciated.
Thanks in advance for your help.
F.T.As far as I know the standard behaviour is that the PR is created upon order save and not upon the status of the order or items changing to released.
To get around this you can set user status and use status management to prevent the PR getting created or use the BADI CRM_SRV_FIND_LOG_SC to supress creation of the PR.
Hope this helps. -
Fdsfi deleted my email account that I had used to purchase music. I forgot to tell iTunes that I was changing emails so I lost all music that I had purchased. Now I cannot get without purchasing again. Is their anything I can do about this short of paying again ????
Fyellis000@This is bad - I have an Apple automated response that they got my report on 12/6, 12/10 and 12/14, and I haven't heard anything from them since the 6th when I got one reply that told me to do things I tried before reporting the problem. Between the 6th and 10th I replied to their response 4 times and they ignored me, forcing me to report a problem with two more items that wont download but getting no response.
How do they get away with this kind of behavior, especially for someone with FIVE Core 2 Duo macs and thousands of dollars of of iTunes store purchases? I'm getting really ******. -
Error in Bapi : Change Purchase Requisition
Dear All,
We have requirement where we need to update the Purchase Requisition Quanity.
For this purpose, I am using Bapi '/AFS/CHANGE_AFS_PR_DATA'.
In this I want to change Sheduled Qty. (AFS Grid Qty.), but I m getting error like
"Line item 0010 : different quantities in item and schedule line". (Sy-subrc = 3)
Can any one help me out with this.
Thanks in advance.
Regards ,
Vishal.Hi,
Refer:
* BAPI to change the PR details
CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
EXPORTING
number = v_banfn "<--PR Number
TABLES
requisition_items_old = it_old_detail "<--pass in old PR details
requisition_items_new = it_new_detail "<--pass in new PR details
return = it_return_change. "<--return table
* "read for error message while changing details for PR
READ TABLE it_return_change INTO wa_return_change WITH KEY type = 'E'.
IF sy-subrc = 0.
"check for ERROR
ENDIF.
Hope this helps you.
Regards,
Tarun -
ME52N: Purchase Requisition Change GL Account Number
Requirement: ABAP auto-change the GL Account field number in a Purchase Requisition after the Material Group is changed.
Background: This custom logic has been successfully applied to all types of Purchase Requisitions using BADI ME_PROC_REQ_CUST, with the exception of a Purchase Requisition type that is called a 'Service Limits'. There are differences that are important to note between a 'Service Limits' Purchase Requisition and the other Purchase Requisitions that had custom code added without any problems.
1)This type of Purchase Requisition uses a item category of 'B', and the logic has a tendency to flow through SAP differently.
2)This type of Purchase Requisition's GL Account number is under-intensified on the 'item' subscreen, and cannot be changed manually on that screen like the others..
3)In order for the GL Account to be changed manually, or for the GL Account to be changed once my code has changed the GL Account Number, the user must select the 'Limits' tab and select the Account Assignment arrow, then a popup appears where the GL Account can be changed manually, or, my coded GL Account number change then occurs.
Problem: I want the custom code to be able to change the GL Account NUmber without having to go into thge 'Limits' tab, where the icon has to be selected. I believe the problem is that the field is protected, because it displays as under-intensified, thus, preventing my new GL Account NUmber from displaying. I also have the subsequent SAP code below that appears to reject set_exkn because protect is set to 'X'.
CODE1: Is my custom code.
CODE2: Is the SAP code that my will flow into where this field appears to be unchangeable.
My question:
I am thinking that this GL Account field is protected and cannot be changed because it is under-intensified on the subscreen on the Purchase Requisition. Can it be changed with custom code, a way to 'unprotect it'? Or, are there settings that should be changed in SPRO for the Purchase Requisition to allow this functionality to change the GL Account number.
Thank-You
(CODE1)
METHOD IF_EX_ME_PROCESS_REQ_CUST~PROCESS_HEADER.
*Purchase Requisition Item Declarations
DATA: LT_ITEMS TYPE MMPUR_REQUISITION_ITEMS.
DATA: LS_ITEM TYPE MEREQ_ITEM.
FIELD-SYMBOLS: <FS_ITEM> TYPE LINE OF MMPUR_REQUISITION_ITEMS.
*Purchase Requisition Accounting Declarations.
DATA: LT_ACCT TYPE MMPUR_ACCOUNTING_LIST.
DATA: LS_ACCT TYPE EXKN.
DATA: LS_SETX TYPE MEPOACCOUNTING_DATAX.
FIELD-SYMBOLS: <FS_ACCT> TYPE LINE OF MMPUR_ACCOUNTING_LIST.
CALL METHOD IM_HEADER->GET_ITEMS
RECEIVING
RE_ITEMS = LT_ITEMS.
LOOP AT LT_ITEMS ASSIGNING <FS_ITEM>.
LS_ITEM = <FS_ITEM>-ITEM->GET_DATA( ).
LT_ACCT = <FS_ITEM>-ITEM->IF_ACCT_CONTAINER_MM~GET_ITEMS( ).
LOOP AT LT_ACCT ASSIGNING <FS_ACCT>.
LS_ACCT = <FS_ACCT>-MODEL->GET_EXKN( ).
LS_ACCT-SAKTO = 'N500300 '.
LS_SETX-SAKTO = 'X'.
<FS_ACCT>-MODEL->SET_EXKN( LS_ACCT ).
<FS_ACCT>-MODEL->SET_EXKNX( LS_SETX ).
ENDLOOP.
ENDLOOP.
ENDMETHOD.
(CODE2)
METHOD if_accounting_model_mm~set_exkn.
DATA: ls_buffer LIKE LINE OF my_data_input_buffer,
ls_bufferx LIKE LINE OF my_data_input_bufferx,
l_buffered TYPE sy-subrc,
l_data_old TYPE exkn,
l_data_oldx TYPE mepoaccounting_datax,
l_data_newx TYPE mepoaccounting_datax,
l_indx TYPE sy-tabix. "1478013
*PROTECT EQ 'X'
CHECK my_state->protect EQ mmpur_no.
Edited by: Tom Matys on Dec 12, 2011 10:55 AMYour PO release strategy must have been based on Cost Center as one of characteristics.
Pl check & confirm.
Regards
Bhavesh Mistry -
Purchase Requisition Transfers from SCM 5.0 APO to R/3
I am working on SCM 5.0 -- transferring Purchase Requisitions from APO to R/3 from SNP heurristic run. I am wondering if there is any documented procedure of available options and the steps involved in setting up.
Can you transfer only certain Purchase Requisitions instead of ALL?
Can you setup approval workflow to allow the transfer of only approved PRs ?
What steps involved to get PRs from the SNP Heuristic?
I found the IMG Activity (SAP SCM Implementation Guide  Advanced Planning and Optimization  Supply Chain Planning  Supply Network Planning (SNP)  Basic Settings  Configure Transfer to OLTP system).
I shall greatly apprecaite if some one answers the questions and points me to some 'How to Guide or the steps involved in setting up'.
ThanksDevendra,
You actually need the SCM-APO-CIF (Core Interface) Training for this. A Pre-requisite to that is the APO Overview. Have you undergone it ?
In Short i will tell you the answers you want ... I hope you will reward me with Points if you feel it was helpful.
To Transfer PRs from APO to R3 following setup is needed ..
- Do Configuration of STO (Stock Transfer) in R3. Ensure Stock Transfer PRs and STOs between the 2 Plants can be created Manually in R3. This will require you to do a Lot of MM & SD Configuration on IntraCompany STOs.
A Key Part for APO is to set the STO Order Types for the
Source and Destination Plant, Assign Vendor to the Shipping Plant, Customer to the Destination Plant .. etc. A Test of correct setup is your ability to create a PR and STO manually in R3 first before you do APO.
- Setup of all APO Locations (Plants in SAP-R3), Products (Materials in SAP-R3). These are done via the Location and Product Integration Models. Make sure you have defined the Timezone in the Plant and set the Plant in SAP as DC or Production Plant (Refer CIF Training).
- Setup of Transport Lanes in APO (done manually in APO).
You define Transport Durations here.
- You have to have the Purchase Requisition Integration Model Active for those Product Locations. To do the Integration Model all CIF Configuration including the one IMG you have described in your Question is to be done. Assuming that the Products are set to 'X0' MRP Type in R3 ... so they are set to Planning in APO.
- For Setup in "Configure Transfer to OLTP" it is best to select 'Periodic Transfer' so you can actually control the Product-Locations and Date Range of PRs APO has created. The Planning Runs create 'Change Pointers' to send the PRs to R3.
- Define in APO that you will be sending Purchase Requisitions at your Destination Location to R3. You use 'Publish Change Pointers' - /sapapo/cp1 to do this.
- The Change Pointers are created after APO Planning run which can be sent to R3 using /sapapo/c5. You should send them periodically after you're satisfied with the planning results or in Night Batch runs after your Planning run.
- To Control some type of PRs you will have to use User Exits in APO for CIF that send External Procurement / PRs from APO to R3. This is not Standard. But I am not sure why you will have different types of PRs for Stock Transfer between 2 Plants. There is no need. You can control PRs between 2 Locations to not go to R3, via the selection of locations in /sapapo/c5.
Hope you find this usefull.
Regards,
Ambrish Mathur -
Transaction ME23N; Create purchase order- Account assignment tab
Hello , do you know in which table the info for account assignment for a purchase order is kept?
e.g just like EKBE is used for Purchase order history.
thx.Table Description u2013 All Tables: Purchasing
EBAN Purchase Requisition
EBKN Purchase Requisition Account Assignment
EBUB Index for Stock Transport Requisitions for Materi
EINA Purchasing Info Record: General Data
EINE Purchasing Info Record: Purchasing Organization D
EIPA Order Price History: Info Record
EKAB Release Documentation
EKAN Vendor Address: Purchasing Document
EKBE History per Purchasing Document
EKBEH Removed PO History Records
EKBZ History per Purchasing Document: Delivery Costs
EKBZH History per Purchasing Document: Delivery Costs
EKEH Scheduling Agreement Release Documentation
EKEK Header Data for Scheduling Agreement Releases
EKES Vendor Confirmations
EKET Scheduling Agreement Schedule Lines
EKETH Scheduling Agreement Schedules: History Tables
EKKI Purchasing Condition Index
EKKN Account Assignment in Purchasing Document
EKKO Purchasing Document Header
EKPA Partner Roles in Purchasing
EKPB "Material Provided" Item in Purchasing Document
EKPO Purchasing Document Item
EKPV Shipping Specific Data on Stock Tfr. for Purch. D
EKRS ERS Procedure: Goods (Merchandise) Movements to b
EKUB Index for Stock Transport Orders for Material
EORD Purchasing Source List
EQUK Quota File: Header
EQUP Quota File: Item
T- Tables
T024 Purchasing Groups
T024E Purchasing Organizations
T024W Valid Purchasing Organizations for Plant
T024Z Purchasing Organizations
T027A Shipping Instructions, Purchasing
T027B Texts: Shipping Instructions
T027C Codes for Compliance with Shipping Instructions
T027D Compliance with Shipping Instructions: Texts
T069 Certificate Categories
T069Q Control Data for Source Determination and Checkin
T069T Certificate Categories: Text Description
T160 SAP Transaction Control, Purchasing
T160B SAP Transaction Control, List Displays, Purchasin
T160C SAP Transaction Control for List Displays in CALL
T160D Function Authorizations: Purchase Order
T160E Function Authorizations: Purchasing: Descriptions
T160I Control of Intrastat Reports
T160J Text Table for Intrastat Reports
T160L Scope of Purchasing Lists
T160M Message Control: Purchasing (System Messages)
T160O Description of Scope of List
T160P Entities Table Routines
T160Q Scope of List: Buyeru2019s Negotiation Sheet: Routine
T160R Routines for Buyeru2019s Negotiation Sheet
T160S Selection Parameters for Purchasing Lists
T160T Description of Selection Parameters
T160V Default Values for Purchasing
T160W Description for Default Values for Purchasing Ope
T160X Scope of List: Buyeru2019s Negotiation Sheet
T160Y Scope of List: Buyeru2019s Negotiation Sheet: Descrip
T161 Purchasing Document Types
T161A Linkage of Requisition Doc. Type to Purchasing Do
T161B Default Business Transaction Type for Import
T161E Release Codes
T161F Release Point Assignment for Purchase Requisition
T161G Release Prerequisite, Purchase Requisition
T161H Fields for Release Procedure, Purchase Requisitio
T161I Determination of Release Strategy
T161M FineTuned Control: Message Types
T161N Message Determination Schemas: Assignment
T161P Check of Document Type, Document Category, Item C
T161R REORG Control, Purchasing
T161S Release Indicator, Purchase Requisition
T161T Texts for Purchasing Document Types
T161U Texts for Release Indicator
T161V Shipping Specific Data for Stock Tfr. for Purch.
T161W Order Types for Stock Transfer
T161Z Additional Checks for Outline Agreements on Reorg
T162 Field Selection, Purchasing Document
T162K Field Selection, Account Assignment Fields, Purch
T162T Description of Field Selection Reference Key
T162X Description of Field Groups from T162/T162K
T162Y Groups: Field Selection
T163 Item Categories in Purchasing Document
T163A Check Item Category/Account Assignment Category
T163B Purchase Order History Categories
T163C Texts for Purchase Order History Categories
T163D Assignment Internal/External Confirmation Categor
T163E Confirmation Categories
T163F Confirmation Categories: Descriptions
T163G Confirmation Control
T163I Texts for Account Assignment Categories
T163K Account Assignment Categories in Purchasing Docum
T163KS Assignment of Tax Indicator to Account Assignment
T163L Confirmation Control Keys
T163M Confirmation Control Keys: Description
T163P Release Creation Profile
T163S Description for Release Creation Profile
T163X "Zombie" T163X
T163Y Texts for Item Categories
T165K Copying Options: Header Texts
T165P Copying Options: Item texts
T166A Supplement Text in Purchasing Document Printouts
T166C Print Relevant Purchasing Document Changes
T166K Header Texts in Purchasing Document Printouts
T166P Item Texts in Purchasing Document Printouts
T166T Change Texts in Purchasing Document Printouts
T166U Headings in Purchasing Document Printout
T167 Number Range Management for Purchasing Master Dat
T167T Transaction Description
T168 Screen Control, Purchasing
T168F Function Codes, Purchasing
T168T Screen Titles
T16FB Release Indicators: Purchasing Document
T16FC Release Codes
T16FD Description of Release Codes
T16FE Descriptions of Release Indicators: Purchasing Do
T16FG Release Groups
T16FH Descriptions of Release Groups
T16FK Release Statuses
T16FS Release Strategies -
Is it possible Line level approval in AME for purchasing requisition?
hi
is it possible Line level approval in AME for purchasing requisition ?
so that send each line to separate approver ?If using AME, it should be possible. Check AME Guide for POs for details. Let me know if you run into issues.
Thanks
Shree -
Third Party Sales order related Purchase requisition Kicking twice one line
Hi,
Purchase requisiotn related with Third Party Scenario kicking Twice one line item, The same line item is appearing one time in Sales Order but when we check Purchase requisition it is showing twice.
Example
S.O
Item 10 QTY Plant
XYZ 100 pcs 1100
after saving sales order Purchase requisition generates automatically. When we check Purchase requisition its showing like
PR#
Item 10 QTY Plant
XYZ 100 PCS 1100
Item 20 QTY Plant
XYZ 100 PCS 1100
When we check purchase requisition in Sales Order Schedule line item reference it shows PR number with line item 20.
Please help me out on this issue. We are unable to replicate this on quality client.
Thanks,
Naveen....Hi
The account assignment category X has been maintained in
schedule line category CS and it is recommended by SAP
Yes perfectly right
SAP recommends only X as account assignment category for CS
If the PR is created successfully then there is no problem with related to SD configurations
The error message is more of an MM error
You need to check with an MM expert why that happens while creating PO from PR
I feel since this happns while saving the transaction there might be some userexit used which may be root cause
System error (error in method PO_CHECK)
Message no. ME816
As per my knowledge this is not a standard error
Because of activation of some userexit this is triggered
Functionally this is a MM area error
From SD side everything is correct
Regards
Raja -
Building Odata service for Purchase Requisition
Hi Experts,
I have a requirement where I need to build a workflow approval service for Purchase requisition.
I want to build this service using the BOR/RFC option for itemwise approval of PR.
There are 2 BAPI's BAPI_REQUISITION_GETDETAIL and BAPI_PR_GETDETAIL but I am not getting the approach to get itemwise detailed information of a PR.
Could you please help me the steps taken to build this service.
Thanks in advance.Hi Kavi;
I have configured Workflow Mailer Service for PO Approval and REQ Approval. For PO Approval Mail is coming correctly. But For Requisition Approval , Mail not coming. I have given 'REQAPPRV' in Correlation ID. What is error, did you check log file for details?
Please also check below:
11i/R12 - A guide for troubleshoting Workflow Notification Emails - Inbound and Outbound Doc ID:831982.1
Notifications Not Being Sent In Workflow Doc ID: 1012344.7
Workflow Mailers Not Sending Notifications Doc ID: 560472.1
Regard
Helios -
Purchase order number not update in purchase requisition status tab
Purchase order is created for purchase requisition. The purchase requisition is triggered through process order. When I checked purchase requisition details in ME53N status tab, status is not edited and purchase order number also not present.
Kindly let me know the possible reason for this.
Appreciate your help..
Thanks,
SAP PQIf the PO had been created without reference to the PR, it will not be updated in the PR.
If it has been created with reference to the PR, then the PR number gets updated in the PR status.
Maybe you are looking for
-
My new ipod shuffle (4th gen) is not recognized by my PC or itunes :(
just bought a new 4th generation ipod shuffle....downloaded itunes...but its not recognizing the ipod shuffle ("devices" not appearing on left column).....also, my computer (windows 7) is not recognizing it when connected... ive tried re-installing i
-
Import command on PSE-13 on Mac greyed out - why?
I recently installed an upgrade from PSE-11 to PSE-13 on my Mac running OS10.9.5 and the Import command under the File pull down menu is greyed out preventing me from inputting images from my scanner.
-
Can someone please advise on cables required to connect to PC flat screen that is over 3 years old? Standard PC flat pan
-
How do I re-install cs3 on Windows 8?
I uninstalled cs3 on Windows 8 because an error came up when I tried to open the program. It said to uninstall the program and then re-install it. Now I can't re-install it on windows 8. Error keeps occurring saying "Component install failed" for
-
All of a sudden when I'm in iCal the "quit iCal" option is grayed out and I let it sit for a while thinking it might be synching but no matter how long I waited it wouldn't quit out. I force quit twice now but Finder doesn't indicate it's not respond