Problem creating Allocation Table with Reference to a PO
Dear Folks,
I am having problems creating an allocation table with reference to a PO in T-code WA01.
I read the SAP help that some prerequisites need to exist:
==> You can only reference order items flagged as being relevant to a stock split (the Allocation table relevant indicator in the additional item data).
Can anyone advice me where to find this stock split indicator?
Also, can anyone advice me how to reuse an allocation table? For example, I had previously created an allocation table with many articles and various allocation rules. I already generated follow on documents for this table.
Say after 2 weeks, I have the similar requirements that I can make use of the same table, only with minor adjustments to the quantity. How do I create a new allocation table using the existing allocation table data?
Thanks and Regards
Junwen
Any idea please?
thanks
Similar Messages
-
Problem creating a table with a subquery and a dblink
Hello!!
I have a little problem. When I create a table with a subquery and a dblink, for example:
CREATE TABLE EXAMPLE2 AS SELECT * FROM EXAMPLE1@DBLINK
the table definition is changed. Fields with a type of CHAR or VARCHAR2 are created with a size three times bigger than the original table in the remote database. Field of type DATE and NUMBER are not changed. For example if the original table, in the database 1, has a field of type CHAR(1) it is create in the local database with a type of CHAR(3), and a VARCHAR2(5) field is created with VARCHAR2(15).
Database 1 has a WE8DEC character set.
Database 2 has a AL32UTF8 character set.
Could it be related to the difference in character sets?
What can I do to make Oracle use the same table definition when creating a table in this way?
Thanks!!That is related to character sets, and probably necessary if you want all the data in the remote table to be able to fit in the new table.
When you declare a column VARCHAR2(5), by default, you're allocating 5 bytes of storage. In a single-byte character set, which I believe WE8DEC is, that also happens to equate to 5 characters. In a multi-byte character set like AL32UTF8, though, 1 character may require up to 3 bytes of storage, so you'd need to allocate 15 bytes to store that data. That's what's going on here.
You could still store all the data if you create the table locally by explicitly requesting 5 characters of storage by declaring the column VARCHAR2(5 CHAR). You could also set the NLS_LENGTH_SEMANTICS parameter to CHAR rather than BYTE before creating the table, but I believe that both of these will only apply when you're explicitly defining columns as part of your CREATE TABLE. I don't believe either will apply to CTAS statements.
Justin -
IS-Retail Allocation: Allocation Table with reference to Purchase Order
Hi All,
I have created a allocation rule, in which i have defined the quota for two sites 30:70. i.e. when the STO will be made for 100 planned qty. 30:70 will get distributed.
Now i want to create a allocation table against a purchase order. In WA01, we get a TAB purchase order, but when i provide the existing PO, system throws a message 'No data corresponding to selection exists'.
This PO refernce is taken if i have already existing PO for 100 qty, the allocation table will be made automatically of planned qty 100...will distribute 30:70 according to allocation rule mentioned in allocation table.
Please suggest how can i create allocation table wrt Purchase Order.
Thanks & Regards
Kapil
IS-Retail Allocation: Allocation Table against Purchase OrderHi Kapil
Plse try this
Go to IMG-MM-PURCHASING-PURCHASE ORDER-DEFINE SCREEN LAYOUT AT DOC.LEVEL- ME21N - Administrative data item-
Here try to make all the field as Opt.Entry...
Then see..
regards
Anis -
Creation of orders using allocation table with reference to contract
Hi
I am creating the follow on documents (ie vendor orders) from allocation table display, for an allocation that was created with reference to a quantity contract. I have changed the message 06 078 to an error, and the system is returning an error saying the quantity will exceed the contract quantity, even though the quantity is less than the contract quantity and there are no other releases against that contract. If I create the order manually against the contract (ie not through the follow on docs in allocation table display) the order is created correctly.
The program appears to loop and take into account my order quantity 4 times and return that quantity as the exceeded quantity. ie PO item quantity for 10, will say quantity will be exceeded by 40.
Any ideas?
MarkHi Kapil
Plse try this
Go to IMG-MM-PURCHASING-PURCHASE ORDER-DEFINE SCREEN LAYOUT AT DOC.LEVEL- ME21N - Administrative data item-
Here try to make all the field as Opt.Entry...
Then see..
regards
Anis -
Problem with BOM Quant while creating Sales order with reference using BAPI
Dear All,
I am facing problem with creating a slaes order with reference to other sales order by using BAPI_SALESORDER_CREATEFROMDAT2 .
Sales order is getting created but
1. It exploding the BOM means the line items which are not there in the reference SO also coming in the new SO ( all BOM items are coming )
2. Schedule line for BOM header item is getting copied to all sub items of BOM.
Can any one help me out to prevent the above deviations in creating Sales order with reference by using BAPI_SALESORDER_CREATEFROMDAT2.
Note: while passing the parameters to BAPI_SALESORDER_CREATEFROMDAT2
all the data related to items is exactly the same as in the original Sales Order.
Thanks in advnace.
Regards,
JohnHi All,
Can any one help me !!!!!!!!!!
please -
Problem in Sales order create using BAPI with reference to quotation
Hi,
I am creating a sales order from Quotation using BAPI /AFS/BAPI_SALESORD_CREATEFDATA.
The Sale order is getting created and the document flow is updated. When i check the status of quotation it is "OPEN".
Ideally when a sale order is created in VA01 with reference to a quotation and if all items are added in the order from quotation, then the status of the quotation must be "Complete".
When i use the BAPI, the status of the quotation is sill "Open". Has anyone faced this issue?
Even if anyone has faced this issue with BAPI_SALESORDER_CREATEFROMDAT2, please let me know...
RegardsHi RV,
I am using BAPI to create order reference to contracts. I am facing same issue. Its not updating document flow (vbfa-plmin field). After creating orders I am forcing to update plmin field in vbfa. This worked fine. But now status in reference document not updating properly. I saw your thread. It looks like similar issue. I saw your comments "Customization was not maintained properly for the Order types ". Please can you explain little bit more about your solution. It will helps us lot.
Thanks,
srini -
How to create a table with table maintanence
Hi Friends,
I want to create a table with the following fields.
1. MANDT
2. BUDAT
3. WAERS
4. KURSF
And i need to maintain the table (User will maintain the table... like they'll add items to it)
What are all the steps i should follow ???
Thanks in advance.
Cheers
R.Kripa.I have solved the problem ..
Sailatha thanks anyway
The problem i faced was;
I created the table ...... with all the fields as keys ..
When i executed TCODE SM30 (Maintain Table) it said ... "View/table can be only maintained with resrictions " and hence then it dint allow me to maintain ... ;-(
So then i changed the "Maintanence" status to "Display/Maintance" allowed.
thats how my problem of maintaining the table solved!!!
Thanks
Cheers
R.Kripa. -
Create sales order with reference to a contract
Hi,
Is there any BAPI/FM which can be used to create a sales order with reference to a contract.
Regards,
Saji.Hi Maninder/Srinivas ,
Could you please provide your valuable inputs on the below query . I have posted a new thread , but haven't got any reply till now . Sorry for posting it again.
I want to create an order with reference to a sales contract using BAPI_SALESORDER_CREATEFROMDAT2 .
1) I passed the contract number to the field REF_DOC at header level , But I got the error message in return table " Document 4000003639 doesn't have document category " where 4000003639 was the contract number . am i missing anything ? Is there any other values that has to be passed ?
2) I also tried passing the contract number at item level but the sales order was created without any reference to the contract .
Thanks in advance
Beena -
Create Sales Order With Reference to Billing Document Using BAPI_SALESORDER
Hi,
How can i create a sales order With Reference to Billing Document Using BAPI_SALESORDER_CREATEFROMDAT2?
Thanks in advance,
Alejandro.I have to create sales order with reference to existing billing document. I have tried to following bapis.
1. BAPI_SALESORDER_CREATEed
I have successfully created document with following details.
-->ORDER_HEADER_IN:
DOC_TYPE = ZRK
SALES_ORG = 3000
DISTR_CHAN = 00
DIVISION = 00
ORD_REASON = 100
SD_DOC_CAT = L
CURRENCY = EUR
REF_DOC = 100000028
REF_DOC_CA = M
-->ORDER_ITEMS_IN:
ITM_NUMBER = 000010
MATERIAL = 701791
TARGET_QTY = 0000000001000
CURRENCY = EUR
REF_DOC = 100000028
REF_DOC_CA = M
-->ORDER_PARTNERS:
PARTN_ROLE = SP
PARTN_NUMB = W12001
COUNTRY = NL
by providing this input i am able to create the document but it is not picking up the net value. so i have passed some extra paramters in ORDER_ITEMS_IN
COND_TYPE = PNET
COND_VALUE = 14,56
COND_D_UNT = PC.
folowing error is occured: Condition PNET is missing in pricing procedure A V Z0000.
is it something related to configuration problem?
2.BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2
I have used same test data that is used for BAPI_SALESORDER_CREATEFROMDATA (where in i coudl succefully create doc). but here i encounterd following error.
Unpermitted combination of business object BUS2032 and sales doc. category L. -
BAPI: Create Sales order with reference to Quotation
Hi ...
I am using bapi BAPI_SALESOREDER_CREATEFROMDATA2 and
i want to create sales order with reference Quotation... All quotation data like Materials prices and conditions must be copied from reference quotaion which is allready created .....
..Thanks..
..AshishHello,
nice to see that this has already been solved.
But it actually doesnt work in my scenario. Do you have an example coding which will explain your solution.
Mine looks like this:
* Update Flag
ls_header_inx-updateflag = 'I'.
* Angebotskopf einlesen
SELECT SINGLE * FROM vbak INTO ls_vbak
WHERE vbeln = iv_vbeln
AND vbtyp = lc_vbtyp.
IF sy-subrc <> 0.
EXIT.
ENDIF.
* Auftragskopf setzen
ls_header_in-doc_type = ls_vbak-auart.
ls_header_in-sales_org = ls_vbak-vkorg.
ls_header_in-distr_chan = ls_vbak-vtweg.
ls_header_in-division = ls_vbak-spart.
ls_header_in-req_date_h = ls_vbak-VDATU.
ls_header_in-ref_doc = ls_vbak-vbeln.
ls_header_in-refdoc_cat = 'B'.
* Angebots-Partner einlesen (Nur AG und WE)
* Auftrag anlegen
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
* SALESDOCUMENTIN =
order_header_in = ls_header_in
* order_header_inx = ls_header_inx
* SENDER =
* BINARY_RELATIONSHIPTYPE =
* INT_NUMBER_ASSIGNMENT =
* BEHAVE_WHEN_ERROR =
* LOGIC_SWITCH =
* testrun = 'X'
* CONVERT = ' '
IMPORTING
salesdocument = ev_vbeln
TABLES
return = et_return
* order_items_in = lt_items_in
* order_items_inx = lt_items_inx
order_partners = lt_partners
* ORDER_SCHEDULES_IN =
* ORDER_SCHEDULES_INX =
* ORDER_CONDITIONS_IN =
* ORDER_CONDITIONS_INX =
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CFGS_BLOB =
* ORDER_CFGS_VK =
* ORDER_CFGS_REFINST =
* ORDER_CCARD =
* ORDER_TEXT =
* ORDER_KEYS =
* EXTENSIONIN =
* PARTNERADDRESSES = .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Unfortunatly this just makes the reference to the quotation but does not takeover ALL data from header and pos level.
Thanks and regards
Markus Armbruster -
ORDERS05 - Create a Return with reference to a Sales Order
Hi all,
I'm trying to create a return with reference to a sales order via IDOC ORDERS05. I'm indicating referenced Sales Order number into segment E1EDK02; indicating qualifier (QUALFR = 002) and Sales order number (BELNR). By this way, I create a Customer Return but without reference.
Which fields or segment have to be filled in order to create it correctly?
Thanks
MaríCorrect...
You need something like:
*Get the pricing cond number.
select single knumv from vbak into cond
where vbeln = '0000080347'.
if sy-subrc = 0.
Get the pricing record which are by line item.
select * from konv into table konv_tbl where knumv = cond.
Loop thru them one line at a time.
loop at konv_tbl.
bapi_cond-itm_number = '000010'.
bapi_cond-cond_st_no = konv_tbl-stunr.
bapi_cond-cond_count = konv_tbl-zaehk.
CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'
EXPORTING
RETURN_HEADER_IN = bapi_hdr
BUSINESS_OBJECT = 'BUS2102'
CONVERT = 'X'
IMPORTING
SALESDOCUMENT = bapi_salesdoc
RETURN = BAPI_RET
TABLES
RETURN = bapi_ret_tbl
RETURN_ITEMS_IN = bapi_itm
RETURN_ITEMS_INX = bapi_itm_out
RETURN_PARTNERS = bapi_prtnr
RETURN_SCHEDULES_IN = bapi_schd_lin
RETURN_CONDITIONS_IN = bapi_cond. "pricing
ORDER_TEXT = bapi_text. -
Program for Creating Purchase Order with reference to purchase requisition
Hi ,
I need to Create purchase Order with reference to Purchase requisition,
in my case i need to automize the Process which is happening in MD04,
Can you please suggest me ?
Thanks ,
MuraliHi,
Plz check this link. It will be helpful to you.
Purchase order creation with reference to PR
We can also create the PO Using the BAPI_PO_CREATE1 function module.
In this function module fill up the all necessary Details.
With details in Item Table we haveto give the Fields PREQ_NO and PREQ_ITEM for each item .
then it will creates the PO with PREQ.
Thanks & Regards,
Sarita Singh Rathour
Edited by: Sarita Rathour on Aug 3, 2009 7:01 AM -
Create sales document with reference document
Hi Experts:
In the case of create sales document ,i set that create sales order with reference a billing document.
But i have a problem,the Pricing procedure in billing document is A, after coping from it,the sales document
Pricing procedure is A also,it can't work using Pricing Procedure Determination in config.
Actually,i want the sales document using a new pricing procedure.
Pls help to give me some advice.
Thank you very much.
Best Regards!Go to VOFA, select your billing type and execute. There maintain a different document pricing procedure from what you maintained for your sale order type in VOV8.
Next go to OVKK and assign the new pricing procedure to the document pricing procedure of what you maintained in VOFA
Finally, go to VTAF, select your source billing document type and order type and execute. There assign routine 053 for the first "DataT"
Now try how it works.
thanks
G. Lakshmipathi -
Not able to create a table with more than 64 fields in dictionary
Hi,
I have created a java dictionary in Netweaver Developer studio. I have to create a table with more than 64 fields in it. I was able to create the table in dictionary, but when i tried to build it, I am getting an error message as "more than 64 fields are not allowed". If i create the table with 64 fields or below 64 fields, i can build the dictionary and deploy it.
That is, when i create a table with more than 64 fieds, I am not able to compile the dictionary, But if i reduce the fields to 64 or below, i can compile the dictionary.
Kindly help me to solve the problem.
Regards,
SudheeshHi,
Sudheesh,as far as I am aware creating of fields in the table actually depends on the total width of table that can be used for various Vendors.
So I actually tried out creating a table with too many fields,and I am reproducing the errors which I have obtained -
<i>Error Dictionary Generation: <b>DB2:checkWidth TMP_1: total width of table (198198 bytes) greater than allowed maximum (32696 bytes)</b> TMP_1.dtdbtable TestDictionary/src/packages
Error Dictionary Generation: <b>DB4:Table TMP_1: fixed length: 198366 (32767).</b> TMP_1.dtdbtable TestDictionary/src/packages
Error Dictionary Generation: <b>DB6:checkWidth TMP_1: total width of table (297200) including row overhead is greater than the allowed maximum for 16K tablespaces .</b> TMP_1.dtdbtable TestDictionary/src/packages
Error Dictionary Generation: <b>MSSQL:checkWidth TMP_1: total width(198215) greater than allowed maximum (8060)</b> TMP_1.dtdbtable TestDictionary/src/packages
Error Dictionary Generation: <b>SAPDB:checkWidth TMP_1: total width(198297) greater than allowed maximum (8088)</b> TMP_1.dtdbtable TestDictionary/src/packages
Error Dictionary Generation: Table TMP_1 is not generated TMP_1.dtdbtable TestDictionary/src/packages </i>
I hope you can understand what the errors state.I am trying to create a table whose total width(sum of width all columns) is greater than the maximum allowed for various Vendors,such as DB2,MSSQL,SAPDB etc.
I hope this answer helps you create your table suitably
Regards,
Harish
(Please award points if this answer has been usefull) -
How to create caracter set with reference(or create it anyhow)on 5.0
I have difficulty (only on version 5.0 and 4.7) to create caracter set with reference(or create it anyhow). On version 4.6 there is no problem (I can do that like described in course BC305).
Transaction "spad"->Full administation-> character set->change-> character
set-> character set->create using template(or just create)
I have intention to modify char set afterwards
How could I do that in version 5.0 ECC?and therefore in this forum with minor chances to get an answer.
regards
Peter
Maybe you are looking for
-
Notification: Set priority and dates, based on the reference object
Hello, I'm searching for an idea/solution, to set the priority of a notification automatically, depending on the entered reference object (F/L or equi). I.e. I want to classify the F/Ls and equis with a priority (e.g. via the classification, or F/L /
-
Template not displaying correctly in firefox
Hello, it's probably a question you've answered a thousand times...I'm totally new to designing pages so I used a template from DW (from sample, starter page, personal training homepage). I have only modified some text, and after uploading to my host
-
Is there a way to import photos into iPhoto '11 from MobileMe Gallery?
I am soon to take a trip with a digital camera, iPad2 and camera connection kit. I know I can store a great many photos on my iPad during the trip. I have a MobileMe account, so I know I can export the photos to the Gallery easy enough. I would like
-
When i boot my pc it come up with the 8xtreme logo ad stays there for about 3-4 mins but i have noticed that on my d bracket the led1 led is lit in red. I have also noticed that my onboard sound is not working but im not fussed about that seem as ivi
-
Unable to run the form in another Widow
Hi Form, I have configured the Oracle 10gDS on WindowsXP Professional to work with Oracle 9i Database. When I am executing a form instead of opening in a seperate Browser window, it is opening in the same browser windows. What are all the requisite c