FM to create subcontracting delivery lines
Hi Folks,
We are using one custom function module to create subcontracting delivery lines. Inside this custom FM, we are using ME_COMPONENTS_MAINTAIN function module first to maintain the components and then ME_UPDATE_SCHEDULES_DISPO to create delivery lines for the schedule agreement. Actually the ME_COMPONENTS_MAINTAIN is displaying a screen where you have to maintain the material, wquantit etc. manually. But we dont want that. We need to create subcontracting delivery lines without manual intervention. Is there any FM available for this requorement? Or else can I use ME_UPDATE_SCHEDULES_DISPO directly to create subcontracting delivery lines? I know this query is more functional than technical. Kindly provide your inputs.
Thanks,
Mani
http://scn.sap.com/thread/175138
(about halfway down, Stefan Berger's post)
I've not completely tested this yet, but whilst investigating a similar problem, I came across the above thread. ME_COMPONENTS_MAINTAIN has a paramater "I_FCALL" which if you set to 'X' doesn't call the screens, and just runs in background.
You can also see the variable population by putting a breakpoint in the top of this fm, and then running the frontend transaction.
Similar Messages
-
Tcode to create single delivery document for all line items in PO
Hi all,
Sorry if it is a simple question, But I am from SD module. What is Tcode to create a single delivery documents for all line items in PO. I have 3 line items with Different materials having diffent quantities and there are different delivery dates and different delivery schedule dates. I need to create single delivery. Could you please tell me how to do it? What is the Tcode?
Thanks
AnilHi,
Inbound delivery T.code VL31N.
Regards,
JS -
Public API's to create delivery for each delivery line
I've requirement to create unique delivery for each delivery line using API. Can any body use public API to meet this requirement. Please ! any idea and thought !
R12.
Thanks in Advance,
RamanaTry the WSH_DELIVERIES_PUB.Create_Update_Delivery API. The API creates a new delivery record or updates an existing delivery record in WSH_NEW_DELIVERIES table. The DELIVERY_ID, NAME and return status of a new delivery are passed as OUT parameters, while the DELIVERY_ID or NAME of an existing delivery for update is passed as an IN parameter.
Pass IN parameter p_action_code value UPDATE ---> incase you want to update existing delivery.
Pass IN parameter p_action_code value CREATE --> incase you want to create a new dleivery.
Parameter Usage Type Required
p_api_version_number IN Number x
p_init_msg_list IN Varchar2 -
x_return_status OUT Varchar2 -
x_msg_count OUT Number -
x_msg_data OUT Varchar2 -
p_action_code IN Varchar2 x
p_delivery_info IN OUT Record x
p_delivery_name IN Varchar2 -
x_delivery_id OUT Number -
x_name OUT Varchar2 -
I hope all this infor. comes handy.
-Dhawang -
Creating inbound delivery for the purchase order line items
Hi Experts,
Please let me know how can I create inbound delivery for the purchase order line items? Say, I have a purchase order with 5 line items in it. I wanted to create an inbound delivery for only 2 line items at this point of time. Which SAP Standard transaction I have to use and what all data I need to populate? I would appreciate any help on this and will reward the right answer. Please let me know.
Thank you in advance.
with regards,
Muthu Ganapathy.Hi,
While creating the inbound delivery (VL31N), intially all the items will be shown, see the advance shipping notfication - from the vendor for which he has send confirmation & rest items you can delete simply & save. & next time when the vendor sends rest advance shipping notifcation (confirmation), you can receive them.
Hope this answers your query.
Regards
Irfan. -
Exclude line items with has no batch when we create a delivery
Hi All,
How can i Exclude line items with has no batch(Batch determination not found)when we create a delivery from sales order. Is there any user exit to prevent line items with has no batch number. I appreciate your help.
thanks,
Nara.Hi
Can you try by putting some custom code in the include MV50AFZZ/mv50afz1/mv50afz2/mv50afz3/mv50afzk/mv50afzl. These are all exit.
Thanks
Chinmoy
Message was edited by: Chinmoy Ghosh -
How to create a separate invoice for each delivery line?
Hello,
Our customer is requesting a separate invoice for each delivery line. Is there a way to configure this? Or a customization?
Thanks,
JoyHello,
You need to do this through copy controls. in the transaction code VTFL, you need to develop a new routine and attach it in the area "Data VBRK/VBRP"
attach your custom designed routine and it will split the invoice according to each line item.
check the standard routines available for hints to develop the routine with your abap. there are several standard rotuines available
Hope this helps
Thanks
akasha -
Released Schedule Delivery lines display
Hi Gurus,
I have a scenario in my client place. User wants to display scheduled delivery lines which will sum all the released schedule delivery lines and will display the total quantity in a smart form which will be sent to the vendor. I.E Scheduling agreement Qty - 100. Schedule lines 10 Qty per day and it will hve 10 delivery lines(100Qty=10 qty per day x 10 days). output document will show only the total qty of released schedule lines(sum of all released qty).Is there any standard form/ output type available for this requirement.Kindly advice.As far as Db link is concern , I dont remember exactly , but 3 years before I had written a report which see Sales order schedule lines and devilry note lines against sales order. If you see process wise . when ever you create PO ( production order you assign some qty using 101 movement type .. and against production order you also give sales order . When you do delivery ( run seclude run ) it delivers against that material number , its movement is 601 ...
but I remember theres a link between these tables, VBAP,VBFA AND VBEP , LIPS ... against every sales order you can see sales invoice ( VBRP,VBRK) and you can also see your delivery note number in document flow .
I hope thisll give you some guide line, as right now I can not tell you the exact business process but I remember I written a report in SD 4 years before , in which they required Delivery against production order and sales order ... One more thing you also have production order reference on delivery item number. ( field :Empst ) . I think in my project they were maintaining this field .
Thanks -
Is there a DIRECT link between SD schedule lines and delivery lines?
Is there a direct link (db table) between schedule lines on a sales order (VBEP) and the delivery lines (LIPS)?
Is there a function module to retrieve the data?
Example-
One order line with 3 schedule lines.
Each schedule line is for 2 units (total of 6 units).
Three deliveries made. 1st is for 2 units, 2nd is for 1 unit (backorder), 3rd is for 3 units.
You can use document flow (table VBFA) or examine the SD document in the delivery line (LIPS) and link the delivery line to the order line. The schedule line already references the order line.
I am using math to decrement the schedule lines used and make the link between VBEP and LIPS. It works fine. I need four records back....
1st schedule line for 2 units uses delivery 123
2nd schedule line for 1 unit (partial) uses delivery 124
2nd schedule line for 1 unit (partial) uses delivery 125
3rd schedule line for 2 units uses delivery 125
Like I said, it works. Just wondering if I missed a more direct link.As far as Db link is concern , I dont remember exactly , but 3 years before I had written a report which see Sales order schedule lines and devilry note lines against sales order. If you see process wise . when ever you create PO ( production order you assign some qty using 101 movement type .. and against production order you also give sales order . When you do delivery ( run seclude run ) it delivers against that material number , its movement is 601 ...
but I remember theres a link between these tables, VBAP,VBFA AND VBEP , LIPS ... against every sales order you can see sales invoice ( VBRP,VBRK) and you can also see your delivery note number in document flow .
I hope thisll give you some guide line, as right now I can not tell you the exact business process but I remember I written a report in SD 4 years before , in which they required Delivery against production order and sales order ... One more thing you also have production order reference on delivery item number. ( field :Empst ) . I think in my project they were maintaining this field .
Thanks -
MRP create more Schedule Lines than target quantity
We already follow the OSS note 83343, we create a Schedule agreeement and validity date is the same as the Source List and Quota arrangement, also the Target Quanity is the same in the quota arrangement in the maximun quantity and Maximun release qty fields.
After maintaining that data, we run the MRP as follow:
Processing key NETCH Net change for total horizon
Create purchase req. 2 Purchase requisitions in opening period
Delivery schedules 3 Schedule lines
Create MRP list 1 MRP list
Planning mode 1 Adapt planning data (normal mode)
Scheduling 1 Basic dates will be determined for plann
After that, still in teh schedule agreement was created more schedule lines that the quantoty is bigger that the target quantity in the sched Agreement.
What else we miss??Thanks for your not help.
That I can investigate is the quota arrenagement is incorrect but for some reason the QA is not working. -
What is the direct link between Schedule Line item and Delivery line item?
Hi SAP SD Gurus,
The question is simple. I would like to calculate the Open order quantity for a particular month based on the Schedule Line Date.
I am taking all the Schedule lines falling below the running date of the month and sum up that and look for the deliveries happened for that Schedule lines.
I am unable to link that Schedule line with that Delivery line item.
The only link is Schedule Line Number in VBEP table which is not available in LIPS. I would like sum up the Schdule line Quantities and Subtract the sum of the Delivery quantities which will give me the Open orders for the particular day of the month.
Can anyone help me to link this VBEP table to LIPS table to connect the Schedule line number with the Delivery line item?
Thanks in advance for your help..
AugustineAnuj,
I am aware of the Functional Modules.
I wanted to know for this Schedule Line, this is Delivery document created.
Where in SAP through Tables it is linked? Because, I need to source the Tables to calulate the open orders by way of external report through Business Object.
The table link from VBEP to LIPS is not directly linked. It is linked from Sales order line item level. Because we are capturing all the Sales order Line tiems through the Delivery Status which is not equalled to C. But if there are partial deliveries against the Scheuld Line item level, we need to identify. The only common joint should be Scheldule line number which is not available in LIPS.
If we are developing report inside SAP, we can use the said Functional Modules to capture through Structures VBEPD. Since it is a external reporting , we need to give correct tables and the joints. Hence I am looking for any other way to solve this.
Thanks
Augustine Ponraj -
Need BAPI Name for updation of Subcontracting scheduling line agreement
Hi All,
Can anybody please tell me BAPI Name for updation of Subcontracting scheduling line agreement from EKET table?
Note: BAPI_PO_CHANGE is not useful for me.
Thanks and Regards,
Atul.Hi Muralidhara,
Can you please give some more details for this BAPI..
I tried using it , but getting an error "No instance of object type PurchSchedAgreement has been created. External reference:"
and "Enter G/L Account" (Infact I did specify G/L account in account assignment table)
with regards,
Kirti -
Hi
I am trying to create a delivery note form a sales order in B1 V9 PL8 and I am getting the following error -
Internal error (-2010) occurred
The code has been working but we seem to be getting problems now
Can anyone suggest anything please ?
Copy of the code attached
Thanks
AndyHi Andrew,
Try replacing this line:
odel.Lines.BaseLine = lineno - 1
with this:
odel.Lines.BaseLine = oorder.Lines.LineNum
Beni. -
ABAP dump(SAPSQL_ARRAY_INSERT_DUPREC) while creating a delivery
Hello Friends,
I am getting the dump while creating the delivery .The error details are as follows.
The ABAP/4 Open SQL array insert results in duplicate database record
What happened?
The current ABAP/4 program "SAPLV05I " had to be terminated because
one of the statements could not be executed.
How to correct the error
Use an ABAP/4 Open SQL array insert only if you are sure that none of
the records passed already exists in the database.
If the error occurred in a non-modified SAP program, you may be
able to find a solution in the SAP note system.
If you have access to the note system yourself, use the following
search criteria:
"SAPSQL_ARRAY_INSERT_DUPREC"
"SAPLV05I " or "LV05IU15 "
"SD_PARTNER_UPDATE"
Source code extract
004500 POSNR = I_XVBPA-POSNR
004510 PARVW = I_XVBPA-PARVW.
004520 IF I_YVBPA-STCD1 <> I_XVBPA-STCD1 OR
004530 I_YVBPA-STCD2 <> I_XVBPA-STCD2 OR
004540 I_YVBPA-STCD3 <> I_XVBPA-STCD3 OR
004550 I_YVBPA-STCD4 <> I_XVBPA-STCD4 OR
004560 I_YVBPA-STCDT <> I_XVBPA-STCDT OR
004570 I_YVBPA-STKZN <> I_XVBPA-STKZN OR
004580 I_YVBPA-J_1KFREPRE <> I_XVBPA-J_1KFREPRE OR
004590 I_YVBPA-J_1KFTBUS <> I_XVBPA-J_1KFTBUS OR
004600 I_YVBPA-J_1KFTIND <> I_XVBPA-J_1KFTIND.
004610 MOVE-CORRESPONDING I_XVBPA TO WA_XVBPA3I.
004620 APPEND WA_XVBPA3I TO DA_XVBPA3I.
004630 ENDIF.
004640 ENDIF.
004650 ENDIF.
004660 WHEN UPDKZ_OLD.
004670 IF DA_VBPA-ADRDA CA GCF_ADDR_IND_COMB_MAN_OLD OR
004680 DA_VBPA-ADRDA CA GCF_ADDR_IND_COMB_MAN_ADRC.
004690 YADR-ADRNR = DA_VBPA-ADRNR. COLLECT YADR.
004700 ENDIF.
004710 IF DA_VBPA-ADRDA CA GCF_ADDR_IND_COMB_MAN_OLD OR
004720 DA_VBPA-ADRDA CA GCF_ADDR_IND_COMB_MAN_ADRC.
004730 XADR-ADRNR = DA_VBPA-ADRNR. COLLECT XADR.
004740 ENDIF.
004750 ENDCASE.
004760 ENDLOOP.
004770 UPDATE (OBJECT) FROM TABLE DA_XVBPAU.
004780 UPDATE VBPA3 FROM TABLE DA_XVBPA3U.
004790
> INSERT (OBJECT) FROM TABLE DA_XVBPAI.
004810 INSERT VBPA3 FROM TABLE DA_XVBPA3I.
004820
004830 IF SY-SUBRC > 0.
Could you please suggest me ,what could be the reason for dump and how to avoid dump?
<REMOVED BY MODERATOR>
Thank you in advance,
Arvind.
Edited by: Alvaro Tejada Galindo on Apr 22, 2008 5:16 PM
Edited by: Alvaro Tejada Galindo on Apr 22, 2008 5:16 PMHello, I have very same error
Runtime Errors SAPSQL_ARRAY_INSERT_DUPREC
Exception CX_SY_OPEN_SQL_DB
Transaction......... "VL01N "
Program............. "SAPLV05I"
Screen.............. "RSM13000 3000"
Screen line......... 2
SAP kernel....... 700
Patch level. 75
Database............. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"
SAP database version. 700
Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"
The ABAP/4 Open SQL array insert results in duplicate database records.
The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught in procedure "SD_PARTNER_UPDATE" "(FUNCTION)", nor was it propagated by a RAISING clause.
I use SAP_APPL SAPKH60006 Support Package
The NUMBER RANGE OBJECT HAS NO ERRORS!
I went trough the zillions of notes all of them affect the old releases.... Please advice.
Patiently yours,
SAP User -
BAPI or FM to create outbound delivery from Sales order
Hello All,
My requirement is to create a outbound delivery from sales order. Also i need the batch number and texts to be updated in the delivery.
For this i need a single FM. The catch is that we don't have the batch number and texts in the sales order. That i have to take from some other delivery. I can get all the information .
The problem is that i can not find a FM through which i can create the delivery from the order and update the same.
I should not use two FM.
Could you please tell me some FM which does both in one go?
Thanks and Regards,
Rahul SinhaHi
Hi,
You can use the BAPI BAPI_DELIVERYPROCESSING_EXEC.
Check this sample code..
PARAMETERS: p_vbeln LIKE vbak-vbeln.
DATA: BEGIN OF t_vbap OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
matnr LIKE vbap-matnr,
werks LIKE vbap-werks,
END OF t_vbap.
DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
WITH HEADER LINE.
DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
WITH HEADER LINE.
DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
SELECT vbeln posnr kwmeng matnr werks
INTO TABLE t_vbap
FROM vbap
WHERE vbeln = p_vbeln.
LOOP AT t_vbap.
t_request-document_numb = t_vbap-vbeln.
t_request-document_item = t_vbap-posnr.
t_request-quantity_sales_uom = t_vbap-kwmeng.
t_request-id = 1.
t_request-document_type = 'A'.
t_request-delivery_date = sy-datum.
t_request-material = t_vbap-matnr.
t_request-plant = t_vbap-werks.
t_request-date = sy-datum.
t_request-goods_issue_date = sy-datum.
t_request-goods_issue_time = sy-uzeit.
APPEND t_request.
ENDLOOP.
CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
TABLES
request = t_request
createditems = t_created
return = t_return
READ TABLE t_return WITH KEY type = 'E'.
IF sy-subrc = 0.
MESSAGE e208(00) WITH 'Delivery creation error'.
ENDIF.
COMMIT WORK.
READ TABLE t_created INDEX 1.
Write: / 'Delivery ', t_created-document_numb.
Regards,
Sreeram -
EKET-FIXKZ set after partial goods receipt of subcontract delivery schedule
Dear all,
when booking a partial goods receipt (via MIGO) of the finished product of a subcontract delivery schedule the schedule line becomes fixed (EKET-FIXKZ = 'X'), which hinders the next MRP run to modify the delivery schedule according to the new requirements.
I have tested to change the fixing indicator via SE16 and the next MRP run will then replan the sub contract delivery schedule correctly. But this is no solution.
Is there a way to modify this setting via an EXIT or BADI in MIGO ?
Many thanky for your help
Rabanus DiehlDear all,
when booking a partial goods receipt (via MIGO) of the finished product of a subcontract delivery schedule the schedule line becomes fixed (EKET-FIXKZ = 'X'), which hinders the next MRP run to modify the delivery schedule according to the new requirements.
I have tested to change the fixing indicator via SE16 and the next MRP run will then replan the sub contract delivery schedule correctly. But this is no solution.
Is there a way to modify this setting via an EXIT or BADI in MIGO ?
Many thanky for your help
Rabanus Diehl
Maybe you are looking for
-
I've forgotten my passcode and can't get into the phone to turn off "find my iphone" in order to restore it... Can anyone help?
-
10g listener cannot start after install 11g
Hi, I install 11g R2 into one of 10g windows 2003 server, but I did not perform upgrade, I want the 11g coexists with 10g. But after I install 11g and create a new 11g instance, I found that the listener cannot be started, until I change the environm
-
I just downloaded lastes version Itunes and signed in with my password. Where is all my music? Doesn't Itunes store items I purchased from them?
-
ERP Sales Orders - authorization
Hello, I've added the logical link for searching ERP Sales Orders in the CRM Webclient UI. I want to limit the user to only view the ERP Sales Orders, thus not allowing creation of new orders or changing existing orders. Which authorization object ca
-
I am trying to create a table in the task detail page of the human work flow . The table is not fetching the data. the table is displayed without any data. I created the table from a view object . the table is a read only table. Please help me.