Set KBETR in purchase order conditions with SET_CONDITIONS
Hello, my question is:
This is my code at a system with Netweaver 7.01
LOOP AT lt_conditions INTO ls_conditions.
CASE ls_conditions-kschl.
WHEN '[condition]'.
ls_conditions-kbetr = '9.999'.
MODIFY lt_conditions FROM ls_conditions TRANSPORTING kbetr.
CALL METHOD im_item->set_conditions
EXPORTING
im_conditions = lt_conditions.
ENDCASE.
ENDLOOP.
Here is the error messages from the system.
Data from Business Add-In ME_PROCESS_PO_CUST not adopted
Message no. MEPO151
Diagnosis
An endless loop occurred during the processing of the Business Add-In ME_PROCESS_PO_CUST. The system terminated the processing.
Procedure
Contact your system administrator.
Procedure for System Administration
Check whether standard fields are changed in the implementation of the Business Add-In ME_PROCESS_PO_CUST.
Changes to standard fields that are part of the Include structure MEPOITEM_TECH and/or MEPOSCHEDULE_TECH are generally not allowed. In addition, no field values that are not changeable through the field settings in the Enjoy transactions can be changed in the BAdI. Correct the implementation accordingly.
The note
Note 803749 - ME_PROCESS_PO_CUST Business Add-In: Endless loop
makes reference to the structures MEPOITEM_TECH and MEPOSCHEDULE_TECH but neither of both structures have KBETR, whereby don't exist any reason for the error.
Any idea for modify KBETR at PROCESS_ITEM or dodge the error.
Thanks in advance.
Edited by: Pedro Pablo López Pérez on Sep 21, 2011 2:00 AM
Hi
You need not use Loop and currently there in no Exit statement in DO after processing the Case statement.
Get the condition table using the
you can read the table with condition type and then change it using the method SET_CONDITIONS.
I think you can use method PROCESS_ITEM, but you need to verify whether this is the correct method for you or PROCESS_ACCOUNT
Shiva
Similar Messages
-
Purchase order report with basic price and Excise duty values
Hi All,
Is there any standard report in SAP to get the Purchase order basic price / qty and its Excise duty values ? Since we are including Excise duties for non - codified items (w/o material master and with cost center 'K') Purchase order and the ed values are added to the cost and the requirement is to see the split up (Basic priceEdEcs+Hcs)for these Purchase orders for the vendors. If there is no std report then please let me know how to link Purchase order table with this Condition value table in query to get the desired report.
Thanks in advance
BennyHi,
there is no standert report to fullfill this requierment
you have to create this report with the help of abaer
for that which tax code you are using its importnat thing
for po table EKPO
1. A524 (Normal supply point / Material) it will return condition record number for condition type.
2. KONP (Conditions (Item)) .
3. J_1IMTCHID (Combination of Material Number and Chapter ID).
4. J_1IEXCTAX (Tax calc. - Excise tax rates
5 get the IR no. from RBKP and RSEG, and get the relevant FI doc no. and goto BSET table
for IR number to get from table apply logic for doc type RE ,you will get fi number nad in refernce field you will get invoice number + fiscal year
Map this by refernig on po for which grn and invoice happen
Regards
Kailas Ugale -
Retrieve the Purchase Order Condition Records Table
Hallo!
I have found this code right here:
http://www.sap-basis-abap.com/sapab025.htm
It is very useful particular for purposes which I need. Please can somebody
try to fix the error to get it working. There is an internal table missing.
Regards
Ilhan
Retrieve the Purchase Order Condition Records Table
select * from ekko.
select * from konv where knumv = ekko-knumv
"Get all the condition records for the purchase order
endselect.
endselect.
* Get the info record conditions record
* First declare the record structure for the key
data: begin of int_konp,
txt1(5),
lifnr(5),
matnr(18),
txt2(4),
txt3(1),
end of int_konp.
clear: konh, konp, int_konp.
* data for the record key konh-vakey
int_konp-txt1 = '00000'.
int_konp-lifnr = ekko-lifnr+5(5).
int_konp-matnr = ekpo-matnr(18).
int_konp-txt2 = 'ALL'.
int_konp-werks = ekpo-werks.
int_konp-txt3 = '0'.
select * from konh where kschl = 'PB00' "Conditions (Header)
and datab => p_datum. "valid from date
if konh-vakey = int_konp. "Conditions (Item)
select single * from konp where knumh = konh-knumh.
continue.
endif.
endselect.Hi flora
Just get through the sequence .
see the table fields ...
1. From EKKO table take an entry which is having pricing conditions.
Now in the fields list check out for field EKKO-KNUMV(document condition number).
2.Take this condition number and now goto table KONV.
Give the document condition number in the field KONV-KNUMV and execute .
This will lead to a list of document condition numbers and some other fields .
3.Now check for field KONV-KNUMH ,KONV-KAWRT(quantity) and note the value KONV-KWERT .
(Remember this is at header level).
This is ur condition record number.
**comments
Now from document condition number we got the condition record number (KNUMH).
4. now since u want the item level tax procedure go to table KONP and give the condition record number and execute .
This will give u a list of details .
Now concentrate on KONV-KAWRT (scale quantity) KONP-KBETR(rate) as this table will store Pricing per UNIT so product of these two will give u the total pricing tax, for a particular condition type say PR00 .
For that particular condition item .
Check the pricing procedure .
See t-code VK13 and check the pricing procedure .
From me23 check the same PO num select the item and check the pricing conditions applicable .
Select a particular pricing and goto condition->analysis->analysis pricing ,
Better take help of a SD functional consultant in the process.
regards,
vijay. -
How to email purchase order along with body and subject line
hi experts,
i have to email the purchase order along with the body and subject line. I am able to send the purchase order as a pdf attachment, but i have still not got a solution how to add body and subject line to this mail.
plz help me out.Hi Santosh,
if you investigate a little bit the PO output, you can find following information in SRM output customizing:
POs are edited by methode PROCESS_BBP_PO_MAI from class CL_PD_PO_PROCESSING_BBP.
Subject, body and attachments are handled here.
So create your own class and method, and assign them in this customizing point (SRM Server --> Cross-Application Basic Settings --> Set Output Actions and Output Format --> Define Actions for Purchase Order Output).
Rgds
Christophe
PS: please reward points for helpfull answers -
How to trace purchase order number with respect to Purchase requestion numb
Hi friends,
Can u please help me how to Trace purchase order number with respect to purchase Requetuion number. Is there any standard report available in R/3Hi Vamsi,
Thats what!!!
Goto SE16 - EBAN - Give PR number in the iput screen.
In the output screen you will have to do field selection from Menu - Settings - formatlist - choose fields.
There you choose Purchase Order.
So the output will display for you POs for the PR that you entered.
Regards,
Vishal -
GL Configuration Purchase order condition
Gurus,
Kindly let us know T-code to see GL Configuration of Purchase order condition.
Condition type...is as under
ZDEC
ZJWC
JEXC
SKTO
JEXS
Condiation Use "The condition type indicates, for example, whether, during pricing, the system applies a price, a discount, a surcharge, or other pricing elements, such as freight costs and sales taxes. For each of these pricing elements, there is a condition type defined in the system"Hi,
Check in account key OB40 and OBYC settings
Regards,
JA -
Extracting Purchase Order condition data
Hi All,
I have requirement where as i need to pull the purchase order condition data, but i haven't found any datasources regarding that, can somebody guide me how to pull that data to BW.
thanks
NeelHi Neel,
Create view of EKKO ( Purchasing header ) and KONV (Conditions (Transaction Data)) and link it on EKKO-KNUMV to KONV-KNUMV.
Create Generic Extractor based on the View.
Hope that helps.
Regards
Mr Kapadia
Assigning points is the way to say thanks in SDN. -
Purchase Order Condition values
Hi Friends ,
I'm facing a problem in identifying a data source for Purchase Order's. On searching in SDN Forum i came to know that there is no standard Datasource for Purchase order conditions.
Can some one give me little clue of how to pick up the conditions from R/3 to my biw system.
Thanks and Regards,
VijayHi Anil ,
Thanks for your response.
On analysing the condition table KONV in R/3 one thing striked my mind.
Either it's Purchase order or Sale Order the condtion table is one , that is KONV. So if the condition number is available for a PO i think very well we can pick it for po's.
Can you give me your suggestion on the above...please.
regards,
Vijay -
Purchase order Condition control tab?
Hi,
Here in the purchase order condition control tab I need to get Price Date and Price date category. Presently they are not appearing in my purchase orders. When I go to screen layout, I am not able to get those fields to configure.
Could please anybody help me urgently?
Thanks,
BhairavHi
GOTO----> OLME--> PO -> Define Screenlay out at Document level -> There Choose your Field Selection ( NBF and ME21N)... and go into to details--> And select the field selection group Quantity and Price and Double Click--> There you choose the field <b>PRICING DATE CONTROL</b> and Check it as a Required Entry or Optional Entry and save . <b>DO IT FOR BOTH NBF and ME21N FIELD SELECTION.</b>
Now when ever you make PO in ME21N.....You will get Pricing Date Category and Price Date Fields in PO-> Item Details---> Condition Control Tab.
Reward if useful
Regards
S.Baskaran
Message was edited by:
baskaran srinivasan -
Hi,
Can anybody please explain what is Purchase Order Condition Data ( KONV ).
What is the use of it in the report.
Thanks,
JB.
-
Purchase order creation with reference to Contract
Dear All
Purchase order creation with reference to quantity contract the contract quantity is not copied in to po. any configuration copying rules required. please guide
Regards
Anand.Hi Buddy
The correct business process is RV Preq created by a user from any department then buyer converts this Preq to a MK contract with some quantity keeping the duration as some months/year. Then as and when material mentioned in the contract is required during the validity period of the contract MRP creates Preq or buyer manually creates NB preqs , same are then converted to PO but these PO are released against MK contract. So qty in PO are different then mentioned in contract because contract is for a large qty keeping in mind the duration (for example one year).
Regrds
Yogesh -
Table name for WBS Element & Purchase Order Conditions
Dear All,
I need a table which stores WBS Elemnt No. & Purchase Order Conditions ( Like Excise Duty, Sales Tax, Packing & Forwarding etc.)
Thanks & Regards,
Sandeep N.TheurkarHi ,
It is not possible to get all this information from one table. But you can get the data by writing ABAP , or by creating a query.
As Amit posted WBS table is PRPS.
You can get the account assignment of a purchase order (whether it is network or WBS element) from table :EKKN.
Pass PO number into EKKN and get the following:
WBS No - PS PSP PNR
Network -NPLNR
Activity - AUFPL
Hope all the postings together will provide an integrated picture.
Regards
Muraleedharan.R -
Import Purchase orders failing with numeric/value error issue
Import Purchase orders failing with numeric/value error issue
Hi All,
Import Purchase Orders program is failing with PL/SQL Numeric or Value Error.
DECLARE
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 55
Kindly help me to get the issue fixed -
Purchase Order Report with Me22n.....Kindly help its
Hi Friends
Here is my requirement.
I have developed a purchase order alv report, and it is working perfectly.Now i want to give a provision to the user to view the desired purchase order from the report itself by taking him to ME22n transaction.
any kind of solution is welcom.
Thanks a lot to all.
Mrutyun
Edited by: Vijay Babu Dudla on Dec 3, 2008 12:20 AMHi Tripathy,
this is simple. when you double click you need to capture the clicked record and then set the parameter ID and then call transaction.
REPORT ZTEST_ALV_CHECK .
TYPE-POOLS: SLIS.
DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
L_LAYOUT type slis_layout_alv,
x_events type slis_alv_event,
it_events type SLIS_T_EVENT.
DATA: BEGIN OF ITAB OCCURS 0,
VBELN LIKE VBAK-VBELN,
POSNR LIKE VBAP-POSNR,
CHK(1),
END OF ITAB.
SELECT VBELN
POSNR
FROM VBAP
UP TO 20 ROWS
INTO TABLE ITAB.
X_FIELDCAT-FIELDNAME = 'CHK'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 1.
X_FIELDCAT-INPUT = 'X'.
X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-CHECKBOX = 'X'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'VBELN'.
X_FIELDCAT-SELTEXT_L = 'VBELN'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 2.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'POSNR'.
X_FIELDCAT-SELTEXT_L = 'POSNR'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 3.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_LAYOUT-window_titlebar = 'Popup window'.
x_events-NAME = SLIS_EV_END_OF_PAGE.
x_events-FORM = 'END_OF_PAGE'.
APPEND x_events TO iT_EVENTS.
CLEAR x_events .
x_events-NAME = SLIS_EV_TOP_OF_PAGE.
x_events-FORM = 'TOP_OF_PAGE'.
APPEND x_events TO iT_EVENTS.
CLEAR x_events .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT = L_LAYOUT
<b> I_CALLBACK_PF_STATUS_SET = 'STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'</b>
IT_FIELDCAT = IT_FIELDCAT
it_events = it_events
* I_SCREEN_START_COLUMN = 10
* I_SCREEN_START_LINE = 1
* I_SCREEN_END_COLUMN = 50
* I_SCREEN_END_LINE = 20
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
FORM TOP_OF_PAGE.
* BREAK-POINT.
WRITE: / 'TOP_OF_PAGE'.
ENDFORM.
FORM END_OF_PAGE.
* BREAK-POINT.
WRITE: / 'END_OF_PAGE'.
ENDFORM.
*& Form STATUS
* text
* -->P_EXTAB text
FORM STATUS USING P_EXTAB TYPE SLIS_T_EXTAB.
*- Pf status
SET PF-STATUS 'STATUS'.
ENDFORM. " STATUS
*& Form USER_COMMAND
* text
* -->R_UCOMM text
* -->RS_SELFIELD text
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
case r_ucomm.
when 'BACK' or 'CANC' or 'EXIT'.
leave to screen 0.
when '&IC1'.
set parameter id 'AUN' field rs_selfield-value.
call transaction 'VA03' and skip first screen.
endcase.
ENDFORM. "USER_COMMAND
the above code takes you to Sales order Display VA03 similarly you should code,
don't forget to set the pf-satus and user-command. and enable F2 key with &IC1.
Regards
vijay -
Customized R12 Standard Purchase Order report with custom data and layout
Hi all,
We need to customize the seeded Purchase Order report in R12 to add an additional section to include cost data coming from our custom table. The key is that our customized report should be launched instead of the seeded report via various PO forms (e.g. View Document menu option, PO Communications form to email, fax and print PO, etc).
I manually set up a custom Document Type Layout for the Document "Standard Purchase Order" to use my customized template so my custom layout is shown instead of the R12 layout, but according to Oracle support the report can only draw data from a set of seeded Oracle views like po_headers_xml,po_lines_xml etc.
Any suggestions how we can add our custom data to PO report in R12?
Thanks! Mike.Hi Mike
thats a tough one, the PO generation is a bit restrictive to say the least when it comes to customizing. It sounds like you have worked out how to get your own template in there to render the PO.
On the data front, all I can think of is to customize and replace the seeded PO view with one that incorporates your extra data.
Or, get into the page customization world and write your own extract and format concurrent program/procedure and then hook it onto the buttons where you want to launch it.
You might have more luch, response wise from the EBS PO forum.
Procurement : Procurement
OAF: OA Framework
Regards
Tim
Maybe you are looking for
-
How can I default Firefox to open Google's "past year" search option every time?
Hp 8510W "workstation" laptop.<br /> Winxppro32<br /> Firefox 17.0<br /> No other OS installed.<br /> WISH LIST... ...to set Google's default date range to "past year" under ALL circumstance. Open from desktop, open in newtab, and default to "past ye
-
Hi there, I sucessfully installed Solaris 10 on my Netra T1 105, but when booting from the Jumpstart-Server, I saw that the machine tries to use old informations that seem to be stored on the hostid-chip. So, I wated to ask, if there's a documentatio
-
Possible to access classes in other folders without the use of packages?
Hi, I'm trying to write a kind of connector application, and I have come across this stumbling block. I have a folder for my main program classes, which will not change. External to that folder( either in a subdirectory or another directory on the sa
-
I cannot get my PS6 to accept Camera Raw update 7.1
When I try to install the update I get error U44M2P7. I need to be able to read from my NIKON D800e, which is on the list. Is there problems with this update? Thanks, Chris Brady
-
When I select an option to 'email this page/clip/url...' absolutely nothing happens when it should open my Mac Mail app so that I can fill in info, etc.