Deliver line item Creation
I created Delivery using the function module shp_vl10_delivery_create by passing sales order info.But how to create line item when there are different materials .This function module works (creates delivery) when there is one line item for SO and if we pass full ordered quantity only.is there any other fm for creation of delivery ?
i want one more function module to create delivery line item also.please help me in this way, as i urgently need this functionality to incorporate dynamic delivery creation.
Iam not able to get the solution to create line item for a delivery.evne though i can able to pass the data by appending table types ,if there are line items more than 1 then this Shp_vl10_delievry_create FM will not create any delivery.i didnt get the solution for how to create line item for a delivery based on the sales order informatin
Similar Messages
-
Deliver line item Creation thru Program
Hi guys,
please help me to create delivery creation for a ship-to party and line item creation thru any finction module when the ship-to party has different materials ordered.
is there any standard Function module to just create a delivery line item when the delivery is not completely processed.
Please help me in this issue.check
BAPI_INB_DELIVERY_CHANGE Change inbound delivery
BAPI_INB_DELIVERY_CONFIRM_DEC BAPI for inbound delivery verification from a decentralized system
BAPI_INB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Inbound Deliveries
BAPI_OUTB_DELIVERY_CHANGE BAPI for Change to Outbound Delivery
BAPI_OUTB_DELIVERY_CONFIRM_DEC BAPI for Outbound Delivery Verification from a Decentralized System
BAPI_OUTB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Outbound Deliveries
BAPI_OUTB_DELIVERY_SPLIT_DEC BAPI for Subsequent Outbound-Delivery Split from a Decentralized Syste
u have to CHANGE Delivery i.e in change mode u can ADD.
otherwise check user exits
* FORM-Routinen für Userexits
include mv50afzz.
include mv50afz1.
include mv50afz2.
include mv50afz3. "Userexit neu zu Release 3.0A
include mv50afzk. "Userexit 4.6A (KOMKG/KOMPG)
include mv50afzl. "Userexit 4.6A Liefergruppen
"n_693000
include mv50afzp. "Userexit for pricing screen input
Regards
Prabhu -
Purchase Order Line Item Creation DATE ?
Hi All ,
How can we fine the Line item creation date in PO ? I know EKPO-AEDAT but that is chaged date and its get updated if you chage the line Item after creating it . I need creation date for a perticular Line Item how can we get that ?. thanks in advance , I'll reward if useful.
Thanks ,
Lucky.Item creation is same as Order date of schedule line
EKET-BEDAT
Thanks
Seshu -
Automatic Service Order creation and OBD line item creation - Repair Order
Hi ALL,
I tried to run the Repair process based on the help document of SAP:
Configs Followed:
1) In Material master MRP3 view, strategy group is assigned as 84 (service orders). By default this str.grp is linked with Requirement type SERA and Requirement class 203.
2 ) Requirement class is assigned with appropriate Service order type.
SPRO>Sales and Distribution>Basic Functions>Availability Check and Transfer of Requirements>Transfer of Requirements-->Define Requirements Classes (OVZG)
Actual Assignment:
Reqt. Class Service Order Type
039 SM01
203 SM01
3) Task list is assigned to your Service material - Service product - OISD
Actual Assignment:
Service Pdt Work Centre Plant B Area Gen TL Group Counter Task List Type
R-1001 PC-SERV 1200 8000 62 1 A
4) Check the Requirement class setting indicator for configuration (cnfg)
Actual Assignment:
= mandatory
5) SPRO>Sales and Distribution>Basic Functions>Availability Check and Transfer of Requirements>Transfer of Requirements-->Define Requirements Classes --> Determination Of Requirement Types Using Transaction
Actual Assignment:
Item Category Reqt class Reqt. Type
IRRS 039 SE
IRRE 203 SERP
IRRP 203 SERP
IRAL 040 KE
6) Sales and Distribution>Sales>Sales Document Item-->Assign Item Categories for determining the item category based on usage
Actual Assignment:
Sal. Doc. Type Item Cat. Group Item Usage H. L . Item Cat Item Category
RAS NORM IRRS
RAS NORM R101 IRRS IRRE
RAS NORM R102 IRRS IRRP
RAS NORM R103 IRRS IRAL
Errors Faced:
1. Service Order is not getting created automatically.
Error in SAP - IDES :"A service order has not been found for action 'Repairs'"
2. Also im not getting the automatic creation of the 4th line item(Item Category - IRAL) in the repair order, which in turn stops me from creating the Outbound delivery.
Please HELP !
RegardsHi PeteA,
Sorry, here it is...
Let me explain the process that has been followed:
1) Initially to start with Service Notification was created with IW51 T-code.
In that, Sold to party and material # were entered. Then from there directly i go for Create Repair Order from the Action Box.
Order type for repair order - RAS, and when i save both Service Notification and the Repair gets saved.
Now, in the repair order, two line items were getting created automatically and the requirement Types for those line items are:
Line Item I : SE
Line Item II: SERP
2) After that i take the material in with the help of t-code VRRE.
3) Then, i do the acceptance of the stock ( Technical Check) with t-code QA11.
Once i do that, i get the Third line item in the Repair Order and the requirement Type for that line item is:
Line Item III: SERP
Now my query is, Once i do the QA11 transaction i need to get a Service Order automatically but thats not happening.
Also if i create a Service Order manually, and do the repair and do the technically completion of the service order, then i need to get a third line item (IRAL) in the repair order automatically and thats also not happening.
Regards -
Line item creation through user exit
Hi
I am creating a line item for a sales order when saving the sales order in transaction VA01 and VA02, using the userexit USEREXIT_SAVE_DOCUMENT_PREPARE. I am able to append the line item to the internal table XVBAP through my code in the user exit.
But after appending to the internal table the line item is not getting created.I am not getting any error message also.
Can anyone help me out in this regard.What could be the reason for this.Hi,
It is not a straight forward thing. Adding data to table XVBAP won't work. It will create inconsistency. There are so many other tables involve here too, like, VBPA, VBUP, VBKD, KONV. There can be other tables too based on how your sales order is configured.
Also, modifying these tables (XTAB, YTAB ) in this user-exit may cause database inconsistency.
Regards,
RS -
Hi,
I am trying to add new line item in quotation using BAPI_CUSTOMERQUOTATION_CHANGE in SE37 tcode.
i am passing quote number, line item update flag as I, item number 30, material number, quantity, and set the check boxes for these 3 fields as X in item check box table.
i did not get any error messages but it does not create any new line item.
i believe i am missing some key fields to insert in those tables.
can any one tell me which fields must pass to BAPI to create quotation or change quotaion?
GiriHI Giri,
check BAPISDORDER_GETDETAILEDLIST
in import parameters provide 'X' for desired details like header, item,.........
in tables provide sales document number.
Regards
Syed -
Line item creation in sales order
Hi
I am working on User Exit USER_EXIT_SAVE_DOCUMENT_PREPARE. On saving a sales order i need to do some validations and based on the validations i need to add a line item to the sales order in the user exit.
What are the ways that i can create the line items through the user exitHi,
It is not a straight forward thing. Adding data to table XVBAP won't work. It will create inconsistency. There are so many other tables involve here too, like, VBPA, VBUP, VBKD, KONV. There can be other tables too based on how your sales order is configured.
Also, modifying these tables (XTAB, YTAB ) in this user-exit may cause database inconsistency.
Regards,
RS -
Dynamic line items creation Programatically.
My requirement is to manually create Dynamic line items based on
some values from the existing dynamic line item.
During Dynamic Line Item processing; When the Last 3 chars of Z field
ZWBSMOD is changing; then insert a DLI with Material is
MODULE-<3 chars>.
Which the exit for creating DLI programatically ??Hi Amruta,
Your question is not clear, could you please explian where you want to add line item dynamically?
Regards,
Surender -
Too Many Line Items While Creating a PO
Dear All,
Here we have a scenario:
We are creating a PO which is having around 10000(ten thousand) line items, and while saving system is showing error message "Too Many PO Line Items" Message No: FI899. and not able to save it.
Kindly Let me know is there any limit for line item creation in a PO.
Regards,
Ravi BLimitations are limitations, you need a workaround or pay SAP for an extra developement. Probably worth, if you have such POs everyday.
( I cannot even imagine for what reason a PO should have more than 10000 items. Manual maintenance is impossible, the person would sit for a week and more to finish one PO. the CSR at your vendor is as well not able to put the items from your PO into their Sales order within a reasonable time frame - order entry should be ready before delivery date is arrived.
This sounds like you want buy a company and want create just one purchase order to buy any single material they have on stock. But for that purpose the PO is certainly not designed.
Can you give more background that makes my mind open ? ) -
BDC For Line Items In Sales Order
Hello,
I have an internal table of line items which i need it to pass it to BDC for sales order line items creation. Can anybody tell me how to do this like the logic which is used to pass the field names. I just have the material number and Quantity to be passed ..
Thanks
VikySee below code for Purchase Order :
report zpochange.
data : i_error like bdcmsgcoll occurs 0 with header line.
data : i_bdcdata like bdcdata occurs 0 with header line.
tables : ekko, ekpo.
data :c1(10) value 'ME22',
c2(1) value ',',c3(10).
data : var1(20). " LIKE EKKO-EBELN.
data : var2 like ekko-ebeln.
data : begin of i_ekko occurs 0,
header(2),
ebeln like ekko-ebeln,
end of i_ekko.
data : begin of i_ekpo occurs 0,
item(2),
ebeln like ekpo-ebeln,
ebelp like ekpo-ebelp,
menge(10), " LIKE EKPO-MENGE,
end of i_ekpo.
data : v like ekpo-ebelp.
data: begin of itab occurs 0,
text(300),
end of itab.
parameters: p_file like ibipparms-path.
*PARAMETERS: PONUMBER LIKE EKPO-EBELN.
at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
exporting
program_name = syst-cprog
dynpro_number = syst-dynnr
FIELD_NAME = ' '
importing
file_name = p_file
start-of-selection.
*SELECT EBELN FROM EKKO INTO TABLE I_EKKO WHERE EBELN = PONUMBER.
SELECT EBELN EBELP MENGE FROM EKPO INTO TABLE I_EKPO WHERE EBELN
*= PONUMBER.
perform get_data.
*LOOP AT ITAB.
WRITE :/ ITAB.
ENDLOOP.
loop at itab.
var1 = itab-text+0(1).
if var1 = 'H'.
*I_EKKO-EBELN = ITAB-TEXT.
split itab at c2 into i_ekko-header
i_ekko-ebeln.
SPLIT ITAB AT ',' INTO I_EKKO-EBELN.
" I_EKPO-EBELP
" I_EKPO-MENGE
" var1.
append i_ekko.
else.
split itab at c2 into i_ekpo-item
i_ekpo-ebeln
i_ekpo-ebelp
i_ekpo-menge.
append i_ekpo.
endif.
*var2 = i_ekpo-ebeln.
MOVE VAR1 TO I_EKPO-EBELN.
MOVE VAR1 TO I_EKKO-EBELN.
APPEND: I_EKPO.
*if not var1 is initial.
split var1 at ',' into i_ekpo-ebelp
i_ekpo-menge.
i_ekpo-ebeln = var2.
append i_ekpo.
*endif.
endloop.
loop at i_ekpo.
write :/ i_ekpo.
endloop.
loop at i_ekko.
perform fill_data. " TABLES I_EKPO.
endloop.
LOOP AT I_EKPO.
WRITE :/ I_EKPO.
ENDLOOP.
*& Form GET_DATA
text
--> p1 text
<-- p2 text
*LOOP AT I_ERROR.
WRITE :/ I_ERROR.
ENDLOOP.
form get_data.
call function 'WS_UPLOAD'
exporting
codepage = ' '
filename = p_file
filetype = 'ASC'
headlen = ' '
line_exit = ' '
trunclen = ' '
user_form = ' '
user_prog = ' '
dat_d_format = ' '
IMPORTING
FILELENGTH =
tables
data_tab = itab
exceptions
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
others = 10
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endform. " GET_DATA
*& Form FILL_DATA
text
-->P_I_EKPO text
form fill_data. " tables i_ekpo .
perform bdcscreen using 'SAPMM06E' '0105'.
perform bdcfield using 'RM06E-BSTNR' i_ekko-ebeln.
perform bdcfield using 'BDC_OKCODE' '/00'.
loop at i_ekpo where ebeln = i_ekko-ebeln.
V = I_EKPO-EBELP.
perform bdcscreen using 'SAPMM06E' 0120.
perform bdcfield using 'BDC_CURSOR' 'RM06E-EBELP'.
perform bdcfield using 'RM06E-EBELP' i_ekpo-ebelp.
perform bdcfield using 'BDC_OKCODE' '/00'.
perform bdcscreen using 'SAPMM06E' 0120.
perform bdcfield using 'BDC_CURSOR' 'EKPO-MENGE(01)'.
perform bdcfield using 'RM06E-EBELP' i_ekpo-ebelp.
perform bdcfield using 'EKPO-MENGE(01)' i_ekpo-menge.
perform bdcfield using 'BDC_OKCODE' '/00'.
*PERFORM BDCSCREEN USING 'SAPMM06E' 0120.
*PERFORM BDCFIELD USING 'BDC_CURSOR' 'RMO6E-EBELP'.
*CLEAR V.
endloop.
perform bdcfield using 'BDC_OKCODE' '=BU'.
call transaction c1 using i_bdcdata mode 'A'
messages into i_error.
refresh i_bdcdata.
endform. " FILL_DATA
*& Form BDCSCREEN
text
-->P_0140 text
-->P_0120 text
form bdcscreen using p_program p_screen.
i_bdcdata-program = p_program.
i_bdcdata-dynpro = p_screen.
i_bdcdata-dynbegin = 'X'.
append i_bdcdata.
clear i_bdcdata.
endform. " BDCSCREEN
*& Form BDCFIELD
text
-->P_0145 text
-->P_I_EKPO_EBELN text
form bdcfield using fnam fval.
i_bdcdata-fnam = fnam.
i_bdcdata-fval = fval.
append i_bdcdata.
clear i_bdcdata.
endform. " BDCFIELD
I hope same thing for sales order ,i mean both has Table control
Reward Points if it is helpful
Thanks
Seshu -
Hi Gurus,
i am creating ecatt with TCD recording. My requirement is if i record a sales order with one line item can i use the same ecatt for multiple line items.
for example if i create a test script z_va01 in this i record a sales order having one line item. For this i created test data and configaration. Can i use same ecatt to create a sales order having multiple line items.
Thanks in advace
anilHi guys,
I know it has been a long time since this thread was opened, but I'm facing with the same problem.
I created the sales order with SAPGUI REC, and added a loop for line item creation and schedule line creation.
*LINE ITEM NUMBER
DO ( V_LNIT_NO ).
SAPGUI ( VA02_2010_STEP_2 ). --> Adding line item
V_LI_ROW = V_LI_ROW + 1.
ENDDO.
And i amended the line item selection Guielement ID - (Changes are in bold)
'wnd[0]/usr/tabsTAXI_TABSTRIP_OVERVIEW/tabpT\02/ssubSUBSCREEN_BODY:SAPLJ3AD:2930/ssubSUBITEM_L2:SAPMJ3AS:2001/tblSAPMJ3ASTCTRL_LINE_ENTRY/ctxtJ_3ASZDI-MATNR[3,<!V_LI_ROW!>]'
so that the loop will make the line item selection to the next line.
My requirement is to upload the data through a excel file, so I created a test configuration with the relevant variables. But the data from the excel line wont populate the loop data, it only repeats the data from the same line over and over again.
How can I fix this? Please help.
Ps - I have tried to make the the MATNR_D to a table by adding [], --> MATNR_D[] - Table. And it becomes a <INITIAL>, and by clicking on the value column cell, it goes in to parameter I_MATNR (I defined this)
and you can add Parameter 1, 2, 3 etc and within the parameter you can add table-line. I read that this is the solution but, the variable is not recorded on the excel sheet as a column. Please help -
Delivery doc creation for a selected line item of the Sales order
Hi folks,
Can any one help me in how to create a delivery order for a selected line item of the Sales order.My requirement is the request comes from the web browser where a sales document and details of the items are shown the user select one line item and request for delivery create of that particular SO doc.I have used couple of FM to create delivery but the delivery create is depend on the schedule line dates so iam unable to figure out where exactly i can distinguish between the line items.
Example:
SO:- 11193645
Line item -1 has 2 schedule line 06/11
06/13
Line iteam-2 has 1 schedule line 06/12
so if i try to create Delivery doc for date 06/12
it creates partially for line 1 and line 2.
but my requirement is i wanted to create SO for only line item 1 as i wanted to process Del Doc for only line item 1.
If you have any idea please help me.hi ,
You can develop a customised FM to process the Idoc data .
1. Read the Idoc data into internal table for the line items which need to be delivered .
2. Run BDC for transaction 'VL01N' ( delivery creation ) through which eliminate the line items which are not in internal table and save the delivery document
Note : Because in VL01N , you specify the sales document with respect to which you want to perform delivery hence automatically all items are copied to the delivery document .
During BDC recording , select items by " MOVING TO TOP"
and then deleting the selected item
If you face problem in BDC recording , i can help u that too . -
Issue in creation of new line item in repair order-Reg
Hi all,
I have a query in Service Management Module of SAP while working in standard IDES System.
I followed the procedure given in the IDES material.
As per the standard system the fourth line item in the repair order should be automatically created, once the service order is technically confirmed and completed. In my case iam able to get the first three (Item Categories - IRRS,IRRE,IRRP) line items but even after completing the service order technically iam not gettin the fourth line item (IRAL). Only based on the Fourth line item we can create the Outbound delivery for the repaired item. After that the billing process need to be processed. My query is how to get the fourth line item automatically in the repair order after i technically complete the Service Order.
To brief you on the entire process that i have followed:
1. The QM Check need to be activated for the material.
2. Creating the Service Notification and the repair request.
3. Posting the GR of a piece of equipment to be repaired.
4. Processing the technical check.
5. Displaying the repair request and the service order.
6. Editing the Service Order.
7. Processing and Confirming the Service Order.
8. Technically Completing the Service Order.
9. Delivering the Repaired Piece of Equipment.
Then Comes the BILLING.....
In the above, after the eighth Step the Fourth Line item will be created automatically created but it DOESNT....
regards
VenuHi ,
Review your repair procedure and copy controls defined for this stage...mya be some thing is missing over there causing this behaviour.
As you told completion of Service order will determine the last item and enable us to delivery the item to customer...
Thanks,
sudhi -
Line item Ship-to Info is not the same in Header Ship-to Party During Sales Order Creation via IDOC
We have observed that during creation of sales order using idoc, the line item ship-to party is not the same with header ship-to. The ship-to party info in line item is equivalent to the header's sold to party. To give you a quick background, Sold to party info is given in idoc and ship to party is being determined using table EDPAR. In this specific scenario, sold to customer is not the same with ship to customer.
Initial checking on the code leads us in function module VIEW_KUAGV. This FM populates partner details of sales order header and line item in program LVEDAF1Z
Below is the code for Sales order Header. Notice that WE_INPUT parameter which contains Ship to party is passed as exporting parameter in FM VIEW_KUAGV. This is the reason why Ship to Party is populated correctly in sales order header but not in sales order item.
Initially, it first set to Sold-To Party. However, if WE_INPUT is given or provided, partner details is set to Ship-To Party.
Please advise on how we can make the ship to party info in header and line item be consistent. This is SAP Standard program which why we are hesitant to make change on the program. If there is a configuration to make this happen, kindly advise.
Regards,
RommelHi Jayesh,
If I understand you correctly, you want that when creating SO from Quoatation
the Ship to Party also follow/copy Ship to Party from Quotation, right?
Just to confirm with you, when you creating SO reference from Quotation, you
use copy/follow-up function, am I right?
You can do this by setting in configuration of Copy Control (like mentioned by Hui).
Step as follow :
1. Go to IMG->CRM->Transactions->Basic Settings->Copying Control for
Business Transactions
2. Create your BAdi (Business Add-In for Copying Control), such as get Ship to
Party value from source document and use it in current document
3. Use this Rule you have created in BAdi (no. 2), in copy control transaction type
IMG->CRM->Transactions->Basic Settings->Copying Control for
Business Transactions-> Define Copying Control for Transaction Types
4. Here you set Copying Routine for your transaction types (put name of your Badi
created in step no. 2)
Or alternatively, you can set it on access sequence in Partner Function
Ship to Party in configuration. You can define access sequence the Ship
to Party is taken from Preceeding Document -> Ship To Party
1. Go to Partner Function access sequence :
IMG->CRM->Basic Functions->Partner Processing->Define Access Sequence
2. Create new access sequence with following entry :
- Source COM_PARTNER_A (PrecedingPartner)
- Check Mapping for Partner Being search
- Partner Function in Source = Ship To Party
3. Assign this Access Sequence in you Partner Function used in Sales Order Transaction
Type.
Tell me if this is what you looking for
Gun. -
Few line items are not coming at the time of creation of delivery
Dear Experts,
When the user creating the delivery few line items are not picking in the delivery document
the following checks i verified,
Stock is available
shpping condition is differ from sold to party and sales document
Plants are same for all the line items
why the few line items are not coming in the delivery document creation,
please help me to sort out this issue
Thanks and Best Regards,
Muralidharan SHi,
Check below points.
Point 1:
When you create a delivery document, you create it for a Shipping Point.
So whatever the line that came in to one delivery has determined same shipping point that you entered in VL01N screen.
Others got a different shipping point and that's why it didn't come to the same delivery document.
Shipping point determined based on below criteria
- Shipping Condition - From customer master
- Loading Group - Material
- Plant - Delivery Plant of the sales order line item
You assign a proffered shipping point for above combination in configuration.
If that combination is not find, those line items are not going in to the delivery.
You can check the log of the delivery document for more information as well.
Point 2:
Check the line item Requested delivery date and the "Selection Date" you entered in the VL01N screen.
Al Requested delivery dates has to be on or before the "Selection Date" you entered in the VL01N screen.
Those line items which has a date more than that will dropped in the delivery.
Best regards,
Anupa
Maybe you are looking for
-
Music channels in Zone 2?
Hey all - hopefully someone here can help me out. I've also posted a similar question on avsforum. Here goes. My Fios DVR is connected to an Onkyo TX-SR 605 via HDMI. This receiver offers "Zone 2" functionality that allows me to listen to audio o
-
Crystal report Viewer Not Showing Control Bar Button Icons
Hi I am using Crystal report along with .net 2003 in web application. While executing, the report its not showing any errors,but the control bar buttons(print, export, next page last page, previous page, first page, etc ) are showing without there i
-
How can I make the font in the JDeveloper IDE biger? The current font is too small to deal well with it.
-
[Solved] Flashplugin skipping
Solution was to do a complete reinstall. When watching streaming flash videos while using awesome or i3, if the mouse is not moved for around 10 seconds the video freezes and the audio repeats the last second on loop until the mouse is moved. The vid
-
I have been using PSE 10 with no problems. Today I bought several new digital elements (different places) and the import fails on each one saying the file type is not supported or they are already in the catalog. These are new so they are not in the