Internal tables Purchase order
Hello All,
In the SD modules there are internal tables hich store old vs new (chnaged) values. Like XVBAP and YVBAP.
What are these tables on the MM side? more specific the Purchase Order.
Thansk Antoine
CDPOS and CDHDR
Reward if useful
Regards
SE
Similar Messages
-
Consumption of PIR for Internal sale Purchase order
Hi
Our client has 2000 Production plant which he enter reqmts on monthly basis per year.
Internal sale Purchase orders are created for the FG materials to one common vendor 5000 to plant 2000.
we are in ECC6.0. Produced qty are delivering using mvmt type:653.
we have used strategy 10 .Presently during MRP run for these Internal sale purchase order remts is not considering PIR..
My requirment is i want to consume Internal sale purchase orders by PIRs.
what settings i have to do?
Thanks & Regards,
srihar.MHi
Purchase order is created using purchase order type internal sales purchase.
vendor 5000 supplying plant 1000 Plant., Purchase orag 1000..
Shipping point is 2000(This is production plant).
so in MD04 for the FG material in 2000 plant against Purchasing document delivery/receiving plant :1000 appearing.
OBD is creating against Purchasing document by mentioning shipping point as 2000.
PGI is happenign from 2000 plant.. using movement type:643 (Transfer to cross company).
GR is happening in 1000 mvmt type:101.
Now my issue is the Plan Ind requirments in 2000plant should consume these Purchase order qty..
As these reqmt(Target plant) is includive of these PO qty expected.
Please suggest me..
Waiting for yur responce..eagerly.
Thanks
srihari.M -
Internal Table Sorting: Order alphabetic letters first then Numarics
Hello Guys,
I am guessing this might be very simple.
After sorting my internal table looks like
TS1
TS2
TS3
TSA
TSB
TSC
I want it to be like
TSA
TSB
TBC
TS1
TS2
TS3
Any ideas.
Thank you.
Sharat.Dear Sharat,
No explicit option in SORT is available for your requirement.
Separate records of Alphabetic letters and Numbers. Sort them individually and move them into final internal table.
Write some code as below
DATA: BEGIN OF itab OCCURS 0,
str TYPE string,
END OF itab,
wa LIKE itab,
l_len TYPE i,
itab1 LIKE itab OCCURS 0,
l_sytabix TYPE sy-tabix.
wa-str = 'TSB'. APPEND wa TO itab.
wa-str = 'TS2'. APPEND wa TO itab.
wa-str = 'TS3'. APPEND wa TO itab.
wa-str = 'TSA'. APPEND wa TO itab.
wa-str = 'TSC'. APPEND wa TO itab.
wa-str = 'TS1'. APPEND wa TO itab.
*Separate records of Alphabetic letters and Numbers
LOOP AT itab INTO wa. " ITAB contains all records
l_sytabix = sy-tabix.
l_len = STRLEN( wa-str ).
l_len = l_len - 1.
IF wa-str+l_len(1) CA '0123456789'.
APPEND wa TO itab1.
DELETE itab INDEX l_sytabix.
ENDIF.
ENDLOOP.
SORT itab. " Sort records of Alphabetic letters
SORT itab1. " Sort records of Numbers
APPEND LINES OF itab1 TO itab. " After sorting, move into final table -
How to update field LEDAT in VETVG table(, Purchase order creation)
Hi all,
I am calculating delivery creation date in BADI:ME_PROCESS_PO_CUST. In ME23 transaction, i am able to see the date field with the correct date. But the table VETVG(LEDAT-delivery date) is not updating. Anybody knows, is there is any enhancement or BADI available for this.
Thanks
Rajavardhana Reddyhi.thanks for ur reply.
but it's not a valuable answer for me.
because i maintained the same in script editor. -
Allocation table for Purchase Order
Hi there,
Could you please advise me what should I do with my issue?
When trying to create allocation table: Purchase Order Reference, got message 'No data corresponding to selection exists'
Please tell me detail the step that I need to do.
Greatly thank you for your help.
Kind Regards,
2tea
Edited by: 2tea on Aug 12, 2008 9:50 PM
Please ignore this posting, problem solved. Thanks.u cn acess po history from info record for a vendor material
in tc me12
and there by using f1 help and technical info u can get the table name and the field
as po history is stored in the inforecord -
Table for parked and posted vendor bills for purchase order.
Gurus
In which table purchase order histroy data is stored? Is there any standard report for viewing following
po no,PO date,line item no.,material code,ordered quantity,GRN date,GRN qty,GRN amount,parked qty,parked amount,posted qty, posted amount.
Atul Kulkarni.Hi,
PO history could be seen from table EKBe.
Rest of the details can be seen in EKKO (header table for purchasing document) and EKKO (line item for purchasing doc).
Regards,
Ashwini. -
OAF Tutorial Extension - To add Site Name in Purchase Order Summary Page
I have gone through all steps for adding Supplier Site Name for Purchase Order Summary Page. It works but seems it shows SiteID instead of Site Name.
The main instructions says
Step 2.3 Create Your New View Object (VO)
Make a copy the PoSummaryVO query statement before you begin creating your new VO. Expand the oracle.apps.fnd.framework.toolbox.tutorial.server package in the Navigator pane and edit PoSummaryVO. In the View Object Editor, select Query to display the query statement for this VO. Make a copy of the query statement.
Create a new VO, named <YourName>PoSummaryVO, that extends oracle.apps.fnd.framework.toolbox.tutorial.server.PoSummaryVO.
Create the VO in the <yourname>.oracle.apps.fnd.framework.toolbox.tutorial.server package.
Add the oracle.apps.fnd.framework.toolbox.schema.server.SupplierSiteEO entity object. Leave the Read Only and Reference checkboxes checked. We are going to use this entity object only for read-only purposes.
Add the SupplierSiteId and SiteName attributes from the SupplierSiteEO entity object.
Paste the query statement that you copied from PoSummaryVO into the query statement field for <YourName>PoSummaryVO. Now append the following SQL phrases to the copy of the PoSummaryVO query statement to compose the query statement for the <YourName>PoSummaryVO.
SELECT ...,
SupplierSiteEO.SUPPLIER_SITE_ID,
SupplierSiteEO.SITE_NAME
FROM ...,
FWK_TBX_SUPPLIER_SITES SupplierSiteEO
WHERE ...
AND SupplierEO.SUPPLIER_ID = SupplierSiteEO.SUPPLIER_ID
Step 2.8 Personalize the UI to Display Your New Attribute
Rebuild the ExtendLab project and make sure you have no errors.
Run the <Yourname>PoSummaryCreatePG.xml page with personalization turned on (see Personalizing Your Pages and Portlets for more information on how this is done).
Select the Personalize Page global link.
In the Choose Personalization Context page, select Page: <Yourname> Framework Toolbox Tutorial: Multistep Create from the Scope poplist and select the Apply button.
In the Personalize Page page, check the Complete View radio button for the Personalization Structure. Expand the Stack Layout: Purchase Order Summary Region node, locate the Table: Purchase Orders Table entry in the page hierarchy and select the Create Item icon.
In the Create Item page:
Set the Item Style to Message Styled Text.
Set the ID to SiteName.
Set the Prompt to Supplier Site
Set the View Attribute to SiteName
Set the View Instance to PoSummaryVO1
Select the Apply button
In the Personalize Page Hierarchy page, locate the Table: Purchase Orders Table entry again and select the Reorder icon.
In the Reorder Contents of Table page's Site list, move the Supplier Site item to be sequenced immediately after the Supplier item.
Select the Apply button.
In the Personalize Page Hierarchy page, select the Return to Application link. Now you should see the Supplier Site column added to the Orders Table as shown in Figure 1 (you should see your name in the page title).
Note: We set the View Instance to PoSummaryVO1 and not <YourName>PoSummaryVO1. The BC4J substitution will take care of properly creating an instance of <YourName>PoSummaryVO1 at runtime in place of the PoSummaryVO1.
It does not show site name, it shows site id after havig done personalization.
Any idea why it would show site id and not site name.
KDWhat I found is there are 2 variables SiteName and SiteName1, if you use SiteName1 then it shows proper value as a site description. I replaced SiteName with SiteName1 and it works. This might help to all who are like me and trying Tutorial example.
I am not sure how many may have tried OAF - Tutorial examples. They are really complicated and not easy and in most cases they are not coming out in first try but if you really try then it will give lot of understanding. -
Getting OTF spool into internal table
Hi experts !
I am trying to get an OTF spool into an internal table (in order to send it to a web application).
I use FM CONVERT_OTFSPOOLJOB_2_PDF :
PARAMETERS : p_spoolid LIKE tsp01-rqident.
DATA : lt_numbytes TYPE i,
lt_pdf TYPE TABLE OF tline.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = p_spoolid
IMPORTING
pdf_bytecount = lt_numbytes
TABLES
pdf = lt_pdf
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11.
The table lt_pdf then contains some junk characters such as
TDFORMAT 潆
TDLINE 瑮吠䵉卅潮浲污䰠湡⁧剆਍启灹⁥䘯湯൴⼊畓
Any idea of how I can get that fixed ??
A strange thing is when I save it as a local file (for testing purpose) using GUI_DOWNLOAD, I have a nice readable PDF file ...
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = '10884'
FILENAME = 'C: est.pdf'
FILETYPE = 'BIN'
TABLES
DATA_TAB = lt_pdf
EXCEPTIONS
FILE_WRITE_ERROR = 1 ...
Thank you for your help !
Yann PortraitHi,
try to Pass parameters like this
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = spoolno
NO_DIALOG = ' '
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
PDF_BYTECOUNT = numbytes
PDF_SPOOLID = pdfspoolid
OTF_PAGECOUNT =
BTC_JOBNAME = jobname
BTC_JOBCOUNT = jobcount
TABLES
PDF = pdf
EXCEPTIONS
ERR_NO_OTF_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DSTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11. -
Reading from select-options field into the internal table
Hi,
I have to read the low and high ranges from the select-options fields into a field in the internal table in order to update the same field in line item table. since the user may change the screen fields, i need to pass the values directly from the screen and store it in a variable in the internal table. Is there a way to pass both ranges, low and high to one variable which holds the entire range?
Thanks,
SruthyHi,
In the Selection screen you can directly read the field(Select-option)value using read statement as follows:
READ TABLE <SELECT-OPTIONS field name> [using index] INTO <work area>.
After reading you can directly access all the values as follows and can store them in the variables:
var1 = <work area>-LOW
var2 = <work area>-HIGH
var3 = <work area>-SIGN
var4 = <work area>-OPTION
as per your requirement.
I think this will help you.
<b>Kindly reward if helpful.</b>
Regards,
Shakuntala. -
Dear Expert,
I want to Purchase Order in approval stage except our Internal company Purchase Order.
Please gude me. I am using SAP 8.81 PL9.
Thanks
CHETAN VORAHello Friend,
We can configure in three way.
1. For inter company purchase oder assign usecode and usercode will not configure in Approval Template as Originator .
2. Make series for inter company purchase oder make approval query and linked with document in Approval templat
3. We can also unblock for perticulare vendor wise
Approval Procedures - Query Base Issue -
Purchase Order - Internal Order Table
dear friends,
would you know which SAP table can i find both purchase order (PO) and internal order (IO)? i would need to determine which purchase orders are charged against an internal order.
thank you very much in advance.
best regards,
albertHi
In BSEG you can get both Purchase Order EBELN and Internal Order AUFNR.
regards
venkat -
Purchase Order : printing table in the SAPScript.
Hi all,
I want to print taxes in the PO . I have created SAPScript from the standard Script MEDRUCK & also attached it to the Appln - EF, in the T-Code : NACT.
To pass the taxes i have written a code and that program i have called from the script. But, it is only the last entry in the internal table (it_out). I want to print all the taxes for the respective PO. And, the only last one tax entry in the it_out , it is showing in the print preview for 'Domestic PO', and, for 'Import PO', it is not showing any entry.
Plz, try to solve this problem.... if anybody could give me the proper solution of this problem, i will definitely reward the points to him.
I am giving the code that i have used in the report & in Script.
Code in the SAP Script...
/E ITEM_CONDITIONS
/: PROTECT
/: DEFINE &TYPE& = ' '
/: DEFINE &TEXT& = ' '
/: DEFINE &PER& = ' '
/: PERFORM GET_TAX IN PROGRAM ZMM_PO
/: USING &EKKO-EBELN&
/: CHANGING &TYPE&
/: CHANGING &TEXT&
/: CHANGING &PER&
/: ENDPERFORM
IN ,,&TEXT&,,&PER&
/: ENDPROTECT
Respective code in the Report
*& Form GET_TAX
text
-->IN_PAR text
-->OUT_PAR text
FORM GET_TAX TABLES IN_PAR STRUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
TABLES : EKKO, "Purchasing Document Header
KONV, "Conditions (Transaction Data)
T685T. "Conditions: Types: Texts
DATA : BEGIN OF ITAB OCCURS 10.
DATA : EBELN LIKE EKKO-EBELN.
DATA : KNUMV LIKE EKKO-KNUMV.
DATA : END OF ITAB.
DATA : BEGIN OF ITAB1 OCCURS 10.
DATA : EBELN LIKE EKKO-EBELN.
DATA : KNUMV LIKE KONV-KNUMV.
DATA : KPOSN LIKE KONV-KPOSN.
DATA : KSCHL LIKE KONV-KSCHL.
DATA : VTEXT LIKE T685T-VTEXT.
DATA : KBETR LIKE KONV-kbetr.
DATA : WAERS LIKE KONV-waers.
DATA : KWERT LIKE KONV-kwert.
DATA : END OF ITAB1.
DATA : BEGIN OF IT_OUT OCCURS 10.
DATA : KSCHL LIKE KONV-KSCHL.
DATA : VTEXT LIKE T685T-VTEXT.
DATA : KBETR LIKE KONV-KBETR.
DATA : KWERT LIKE KONV-KWERT.
DATA : END OF IT_OUT.
DATA : PONO LIKE EKKO-EBELN.
DATA : NO LIKE KONV-KPOSN.
READ TABLE IN_PAR WITH KEY 'EKKO-EBELN'.
IF SY-SUBRC = 0.
PONO = IN_PAR-VALUE.
SELECT EBELN KNUMV
FROM EKKO
INTO TABLE ITAB
WHERE EBELN = PONO.
READ TABLE IN_PAR WITH KEY 'KONV-KPOSN'.
IF SY-SUBRC = 0.
NO = IN_PAR-VALUE.
LOOP AT ITAB.
MOVE ITAB-KNUMV TO ITAB1-KNUMV.
SELECT KNUMV KPOSN KSCHL KBETR WAERS KWERT
FROM KONV
INTO CORRESPONDING FIELDS OF ITAB1
WHERE KNUMV = ITAB-KNUMV
AND KAPPL = 'M'.
ITAB1-KBETR = ( ITAB1-KBETR / 10 ) .
APPEND ITAB1.
ENDSELECT.
ENDLOOP.
SORT ITAB1 BY KPOSN kschl.
LOOP AT ITAB1.
IF ITAB1-KPOSN <> ''.
SELECT *
FROM T685T
WHERE KSCHL = ITAB1-KSCHL
AND KAPPL = 'M'
AND SPRAS = 'EN'.
IT_OUT-VTEXT = T685T-VTEXT.
IT_OUT-KSCHL = ITAB1-KSCHL.
IT_OUT-KBETR = ITAB1-KBETR.
IT_OUT-KWERT = ITAB1-KWERT.
APPEND IT_OUT.
ENDSELECT.
ENDIF.
ENDLOOP.
SORT IT_OUT BY KSCHL.
DELETE ADJACENT DUPLICATES FROM it_out COMPARING KSCHL.
LOOP AT IT_OUT.
IF
( IT_OUT-KSCHL = 'JADC'
OR IT_OUT-KSCHL = 'JCDB'
OR IT_OUT-KSCHL = 'JCV1'
OR IT_OUT-KSCHL = 'JECV'
OR IT_OUT-KSCHL = 'J1CV'
OR IT_OUT-KSCHL = 'JSDB'
OR IT_OUT-KSCHL = 'JEXC'
OR IT_OUT-KSCHL = 'JEXS'
OR IT_OUT-KSCHL = 'FRC1').
AT NEW KSCHL.
CLEAR out_par.
CLEAR out_par[].
LOOP AT OUT_PAR.
READ TABLE IT_OUT INDEX SY-TABIX.
SUM.
WRITE:/ IT_OUT-KSCHL,IT_OUT-VTEXT,IT_OUT-KBETR.
OUT_PAR-NAME = 'TYPE'.
OUT_PAR-VALUE = IT_OUT-KSCHL.
APPEND OUT_PAR.
OUT_PAR-NAME = 'TEXT'.
OUT_PAR-VALUE = IT_OUT-VTEXT.
APPEND OUT_PAR.
OUT_PAR-NAME = 'PER'.
OUT_PAR-VALUE = IT_OUT-KBETR.
APPEND OUT_PAR.
ENDLOOP.
ENDAT.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDFORM. "GET_TAX
Plz, help me by giving the solution...
Thanks,
AjitHi,
System will not display the Purchase order item details in the first screen. First enter the data on the Item overview like Material or short text then only it will display the Item details.
I think you are checking with out entering the data on Item overview .
Check by entering the material/short text.
rgds
Chidanand -
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. -
Purchase order EKKN/EKBE tables
Hi,
I m creating a report based on purchase order. I'm getting sequence number from EKKN table and then getting the invoice details from EKBE table using where clause on EBELN, EBELP and ZEKKN(Seq number) fields.
My question is in some cases in EKBE table, 00 seq number is populated, mostly for VGABE = 1 (Mat doc number) or VGABE= 9(Service entry sheet). But this 00 is not in EKKN table. So in that case i miss these invoices in my internal table, bcoz i'm querying based on seq number, and 00 is not there.
Bcoz you cann't use 00 seq number at the time of PO creation.
Can any body tell me how and in which senarios seq no (EKBE-ZEKKN) field is being populated, so that i can write the code accordingly....
Thanks,Start your selection query from EKBE first and then go to EKKN based on the EBELN, EBELP & ZEKKN.
Regards,
Naimesh Patel -
Purchase order creation : internal pricing error
Hi,
While creating a purchase order, i am getting an error 'internal pricing error'. Message type : V1806
This is basically for creating an Invoicing plan !
Let me know in case of any clue.
-Sachin DHi
is it this error
Internal pricing error
Message no. V1 806
Diagnosis
The program link between tables KOMT1 and XKOMV using the XKOMV-IX_KOMT1 field no longer works in the pricing program SAPLV61A. This could be because the PRICING_REFRESH function module has been called up from another function module, even though you did not require it.
Procedure
Inform SAP.
Maybe you are looking for
-
I have an hp pavilion dv6305us notebook. I am going to have to replace the hard drive. Could someone e mail me @ [email removed for privacy] with ideas on where I can buy a new, yet affordable HDD from a repetable company.
-
Hi Experts Could you please explain me the logic of the below ABAP Routine in Update rules Thanks in advance DATA: L_USER_ALLOWED_CHAR TYPE RSALLOWEDCHAR, L_ALL_ALLOWED_CHAR(140) TYPE C, L_RESULT_STR_LEN TYPE I, L_STR_INCREMENT TYPE I, C_SAP_ALLOWED_
-
Form Guide - dynamic field within dynamic container.
I have a form Guide using dynamic containers, but within the dynamic container on the Form Guide within the same Repeater Accordion Panel, I also need a dynamic Row (2 fields) that need to repeat within the repeating container. I have built this in A
-
Business Contact Mngr Shuts Down in Accounts
Hello, Couple things in Business Contact Manager: 1) Just started today, everytime I try to go into one of the old emails from an account - Outlook shuts down. 2) All my settings got changed - for example Mobile is now "pager" and when I use the drop
-
hello everybody, I have a BAPI called "CreateFromData" for business object called 'SalesOrder'. i want to use this BAPI in Java(developer studio). we can use this method to create sales orders. A sales order contains information about prices, quantit