Transfer Order for Inbound delivery with multiple line items...
Hi All,
<The flow of my report pgm is >
PO creation using Transaction - me21n
My report pick the PO created as per date given in selection screen-
Creates outbound Deliveries using BAPI_OUTB_DELIVERY_CREATE_STO
Create Transfer order FM L_TO_CREATE_DN
Confirm Transfer order FM L_TO_CONFIRM
GI is done - Inbound delivery is created
Create Transfer order FM L_TO_CREATE_DN for Inbound delivery
Confirm Transfer order FM L_TO_CONFIRM
Goods receipt.
If PO is having one item - the entire flow is working perfectly.
if my PO is having multiple items,
While creating TO for inbound deliveeies - i am facing the error.
Before calling FM,
I am assigining these values like
wa_delit-nlpla = wa_ltap_vb-vlpla. "Source Storage Bin To Destination Bin
wa_delit-nltyp = wa_ltap_vb-vltyp. "Source Storage Type To Destination Storage type
wa_delit-anfme = wa_ltap_vb-nsolm. "Actual destination quantity
wa_delit-letyp = wa_ltap_vb-letyp. "Storage Unit Type
wa_delit-altme = wa_ltap_vb-meins. "Unit of measure
LOOP AT i_lips INTO wa_lips WHERE vbeln = WA_VBFA-IN_DELIV.
wa_delit-posnr = wa_lips-posnr.
APPEND wa_delit TO it_delit.
ENDLOOP.
As i am appending i am getting 2 line items in the tabke it_delit.
Function module :
CALL FUNCTION 'L_TO_CREATE_DN'
EXPORTING
i_lgnum = l_lgnum
i_vbeln = wa_vbfa-in_deliv
i_commit_work = 'X'
i_bname = sy-uname
it_delit = it_delit
IMPORTING
e_tanum = gv_tonum_1
TABLES
t_ltap_vb = i_ltap_vb_1
EXCEPTIONS
foreign_lock = 1
dn_completed = 2
partial_delivery_forbidden = 3
xfeld_wrong = 4
ldest_wrong = 5
drukz_wrong = 6
dn_wrong = 7
squit_forbidden = 8
no_to_created = 9
teilk_wrong = 10
update_without_commit = 11
no_authority = 12
no_picking_allowed = 13
dn_hu_not_choosable = 14
input_error = 15
error_message = 16
OTHERS = 32.
Here i am getting as input error, i need to create only one TO for multplie items
If i pass this i a loop - then it will create 2 Transfer order which is WRONG ...so please help me to over come this error.
Thanks
Senthil
Edited by: Senthil Kumar on Dec 7, 2009 3:29 PM
Hi,
Please check FM L_TO_CREATE_MULTIPLE.
Regards,
Ferry Lianto
Similar Messages
-
Issue at the time of creation of transfer order for inbound delivery
Hello,
I am facing one issue at the time of creation of transfer order for inbound delivery.
If I create inbound delivery for purchase order with account assignment as 'M' (Ind. cust. w/o KD-CO), inbound delivery is not updated. Also document flow for inbounde delivery s not updated. I can create N number of transfer orders for on inbound delivery. Need help to resolve issue.
If I create inbound delivery for purchase order with account assignment other than 'M' (Ind. cust. w/o KD-CO), inbound delivery and document flow is updated.
Thanks and Regards,
NikhilHi
In OMS2 t-code
for your material type and plant ,you have to mark value based and qunaity based updation mark
Regards
kailas Ugale -
URGENT: Delivery with multiple line items for a STO
Hi Gurus,
We ar ecreating deliveries using VL10b for a STO. Teh TSO has 40 - 50 line items. But the delivery is created with one line item only an dit creates a delivery for each line item. How cna we allow the inclusion of multiple line items in delivery?
We are using delivery type NL an ditem categor is NLN.
Geratly appreciate any help in that.
Thanks,
KHANThe problem you face is called 'Delivery split'.
For the STO scenario, one common cause is different delivery dates (in the past) in the STO line items. If so, then you should refer to SAP Note 377501 (from where I quote below):
You can implement the source code specified in the correction instructions in copy routine 301 (or a copy of this routine in the customer namespace). This correction ensures that when you transfer data form the preceding document, backlogged delivery dates or goods issue dates are set to the current date. This prevents the system form performing a delivery split.
Then a rescheduling of the delivery occurs. Since forward scheduling occurs for backlogged delivery items (that is, the picking date or the transportation planning date is set to the current date), the manipulation of the delivery date or goods issue date in the copy routine does not affect the result of the scheduling.
If the dates are not the problem, then this Note refers to other Notes which deal with this problem, and should definitely solve your problem.
Regards
Nikhilesh -
Creation of Transfer Order for Inbound Delivery
Hi,
I am using L_TO_CREATE_DN for creation of a TO for Inbound Delivery.
I am getting this message."""Item 180000166 000010 does not exist or is not relevant for picking"""
The delivery is having Ware House number so i think it is relevent for picking... It is having an item 10 also. I dont know why this message is coming.
Can anyone please let me know how to get rid of this error and create a TO for the inbound delivery.
Regards
RakeshHi Rakesh,
Pad the delivery number with a 0 in front and check.
like, instead of 180000166, pass 0180000166.
Regards,
Ravi -
LSMW to create Sales Order refer to Quotation with multiple line items.
Hi Gurus,
I am new to LSMW, and my requirement is that, I have a file downloaded from another system, it is like this:
Quotation No. Sold to party data item no. material no. quatity
556 10000012 10 19077 1
556 10000012 20 19078 1
557 10000011 10 19076 1
And it is required I need to create orders in VA01 refering to quotations, and then delete all the items from quotation, and add the items in the file. I am now doing it through transaction recording in VA01, but I came to a difficult part, that is how I can process line items. Because the items number will only be decided at runtime, so I can not record a BDC for that. And I have read some guides on LSMW, one of it said that transaction recording in LSMW can not deal with deep structures. So could any1 help on this?
Best regards,
VincentDear SD Gurus n Experts,
I have solved the above problem. But there is another problem appearing regarding the date format. Now system generating a message: Date . . is not valid.
While I am using Date: YYYYMMDD format in flat file, which is SAP's Standard Format.
In SDN Link: LSMW upload Sales Order using VA01/VA02 I have found that there are some date fields which are mandatory to filled. Here I have mapped
VDATU - Requested delivery date, BSTDK - Customer purchase order date, PRSDT - Date for pricing and exchange rate, BSTDK_E - Ship-to party's PO date, FKDAT - Billing Date, KORDT - Delivery Date,
and PRGRS - Date type is Constant = D
Can any one tell me, where is the priblem.
With thanks,
DSC -
Partial goods receipt for PO with multiple line items
Hello All,
While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
If partial goods receipt if possible for PO with multiple line items, how do we do it?
Regards,
RJSHi
While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
No. You cannot post the MIGO, if even one of the PO line item is having problem or giving error.
We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
If you skip a line irem and do GR with next line item, how will you match quantity & value with the vendor Invoice at LIV ?
If partial goods receipt if possible for PO with multiple line items, how do we do it?
Partial goods receipt is possible for PO line items. That means, if PO has 100 qty for line item 1 then you can do GR for 50 now and 50 later depending on the vendors delivery.
Hope this is what you mean by "Partial Goods Receipt".
Edited by: Arun R on May 10, 2010 2:03 PM -
How to Restrict Single Delivery Date for PO with Multiple Line Items
Dear Experts,
How to Restrict Single Delivery Date for PO with Multiple Line Items.
System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
Can we achive this by Some Enhancement in SAP or Not ???
If so how to do it.
Any Inputs is highly appreciated.
Thanks and Regards,
Selvakumar. MHi Selvakumar,
we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
(for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
Regards,
Madhu. -
Create ecatt script for one sales order creation with multiple line items
Hi ,
I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
This selection of data will be from an external file/ variants which will have only one row of data in it.
Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
Second: I have to create sales order for those many line items having same PO Number.
Best Regard
TaranumHi Micky
Firstl you should upload the Line items for a particular sales Order in an Internal table
and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
In case of any issues pls revert back
Reward points if helpful
Regards
Hitesh -
LSMW program to upload the sales order with multiple line items.
Dear SD and PP Gurus,
I am new to creating LSMW Program.
I want to create a LSMW program to upload the sales order with multiple line items. I have read on SDN that it can be done on two phases. First Create Header Data than line items. IS IT TRUE??, Or
Is there any procedure by which we can load the sales orders with multiple line items in a single run (part).
I want to use Batch process, not a BAPI or IDOC procedure.
I have created a program with
object 0090
Method 0000
Program Name RVINVB10
Program Type D
Source Structure 1 - For Header and Source Structure 2 for Line Items.
Mapped Field INDET (With Fix Value 1), ORDERTYPE, SALESORG, DISTCHANNEL, DIVISION, CUSTOMER, PONUMBER , DELVDATE, PRCGDATE, PMTTERM
INCOT1 INCOT2 with Source Structure - 1 and
Field INDENT (With Fix Value 2), ITEMNO, MATCODE, MATQTY, SUOM, PLANT, BATCH, AMOUNT with Structure-2
than maintained Structure relation ship, field Mapping, Specified Files, Assigned files, Read Data and other process,
At final stage (Start Direct Input program RVINVB10) it is giving a message - Table name not allowed.
Please tell me where I am wrong.
Thanks in advance.
DSCDear SD Gurus n Experts,
I have solved the above problem. But there is another problem appearing regarding the date format. Now system generating a message: Date . . is not valid.
While I am using Date: YYYYMMDD format in flat file, which is SAP's Standard Format.
In SDN Link: LSMW upload Sales Order using VA01/VA02 I have found that there are some date fields which are mandatory to filled. Here I have mapped
VDATU - Requested delivery date, BSTDK - Customer purchase order date, PRSDT - Date for pricing and exchange rate, BSTDK_E - Ship-to party's PO date, FKDAT - Billing Date, KORDT - Delivery Date,
and PRGRS - Date type is Constant = D
Can any one tell me, where is the priblem.
With thanks,
DSC -
Where/ how do I set SNP to create Planned orders with multiple line items?
Hi
Currently our SNP is generating planned orders on a daily basis, it creates a single order with a single line item per location.
Where/ how do set SNP to create planned orders on a daily basis to generate a single order with multiple line items per location, so therefore one planned order with multiple line items for a single location.
Thanx
KeeganHi Keegan,
In SNP (APO) it is not possible to create order with multiple line items.
But you can do some settings so that while planning system can do aggregation and disaggregation.
But your requirment should be set on Aggregation/Dis-aggregation logic.
Please follow the follwing links:
http://help.sap.com/saphelp_scm2007/helpdata/en/2c/c557e9e330cc46b8e440fb3999ca51/content.htm
Aggregation:
http://help.sap.com/saphelp_scm2007/helpdata/en/42/f731d078e73ee4e10000000a1553f6/content.htm
Disaggregation:
http://help.sap.com/saphelp_scm2007/helpdata/en/a6/ebefaf32e22e468355da304cc59387/content.htm
Please be sure that the setting of this logic will be at planning area level.
You can't change aggregation/disaggregation logic further.
Regards,
Santosh -
Can we create multiple billing document from delivery with single line item
can we create multiple billing document from delivery with single line item
Hi
Please check the link
[can v create multiple billing document from delivery with single line item]
and as Lakshmi said, check the forum before posting an issue.
Regards
AA -
Printing of return delivery of multiple line items
Dear All,
I have a requirment to print return delivery material document with multiple line items of a PO. I tried with collectve slip in MIGO. but still line item will come in different pages. Message details are maintained for all line items. Print preview is seen from MB90. please suggest me to achieve this requirement.
Regards
MSRHi MSR,
Contact ur ABAPer and ask him to adjust the Sapscript Form / SMART Form.
Regards
Ramesh Ch -
Service procurement for the free texts ( Multiple line items in PO)
In the service procurement for the free texts ( Multiple line items in PO)referring to the same Contract we are cretaing the POs
thro ME59 ( Program RM06BB20) an unusual error message appears as under:
"_Material/Service group STGOP2 does not exist"_This Material group is unavailable in T023 as well.
We checked the same issue by recreating with the exact data in the Test environment and everything works OK
We are working on the R3 version 470...
Any body faced such an issue ?
Any clues pls?
Regards,
NagarajanHello,
We have faced another issue of the same nature while a PO is being created using the tcode ME21N for service free text items referring a PR ( Service item has no Contract assigned but a fixed vendor)
The error relates to SE419 ( Mat grp 'XXXX' does not exist)
Any takers..
We are using a custom doc type for the PR
Any hep /clue is appreciated
Regards,
Nagarajan -
Unable to create PO with multiple line items through LSMW-BAPI method
Hi All,
I have a requirement of creating PO through LSMW. I can't use LSMW standard batch input program since there are some fileds not available and also it has many limitations. I'm using LSMW-BAPI method ( Business object BUS2012) which create IDOC and uses BAPI_PO_CREATE1 to ultimately post the PO in the system. I am trying to create PO from a single file which contains both Header and Item data.
Now my problem is that everytime PO is being created with Single line item only. Everytime I am giving multiple item data in the source file LSMW is preparing multiple IDOCs for multiple line items. As per my understanding this is happenng since header and item is in the same hierarchy level of IDOC type PORDCR102 and the control record is inserted for every line item in the source file.
It seems that through LSMW-BAPI it is not possible to create PO with multiple line items. Can anybody provide some input regarding this? Thanks in advance.
BR,
Atanu MukherjeeSolved by myself.
Earlier the problem was that LSMW was not being able to recognize items under same header. It was creating new IDOCs every time it gets a new item. To enable this we need to create two structure HEADERDATA and ITEMDATA. Two additional identifier fields with identifier value 'H' and 'I' should be added in these two structures respectively. Then we need one sequential file with the identifiers field followed by the header and Item data. Example:
H~header data
I~item data
I~item data
This would help the standard program to understand what are the items under same header and ultimately create PO with multiple line items.
BR,
Atanu Mukherjee -
Creating POs with multiple line items
Hi,
Is it possible to create a PO with multiple line items from the Sharepoint. The developer guide shows sales order creation with a single line item. If yes, please let me know how it can be done.
Thanks,
PranilHi Pranil,
You can achieve the user case to create a PO with multiple line items in 1 step by creating a custom solution UI in SharePoint. This is not possible if you simply use the out of box UI (as depicted in the guide).
It depends on how to define the ESR data type. You can create a data type with header details of PO and collection of items with cardinality as 0..n and create a complex BDC model using SPD --> then create a custom UI.
Other option would be keep it as 2 lists (2 step action). First create a PO header and then add item by item in 2 steps as foreign key relationship. You can see the example of Account and Activity in pre-shipped contents to get an idea.
Thanks,
Girimurugan
Maybe you are looking for
-
I am using a 21.5 iMac (bought in Nov 2009 I believe). While asleep, the computer fans will come on after variable time intervals. I hit the power button and the fan goes off only to come back on. The fans run only at medium levels. I do have wake on
-
I'm working to set up my website with iWeb and it won't let me import photos from iPhoto! Whats up?
-
i was charged for a movie that never was downloaded, i asked for it but the conection was too slow and I never was able to have the movie that i asked for...how can i get it without being charged again, who could remove the chage from my Crecit card?
-
Hi- What exactly are the nature of the objects (folders) created in the Network Globe object? I have a couple stale objects that I would like to get rid of. I think one of them was pointing at a Windows workgroup (called Workgroup) that one Windows m
-
ALE of BNKE data from FI to HR
Hi all, I want transfer BNKE data from FI to HR box, so infotype 0009 can see the same. Is there any message type for me to ALE everyday. What is the best approach. Thank you for your time and help. Regards, Vince.