BDC for MIGO-inbound delivery
Dear Gurus,
I want to create a BDC for GR-INBOUND DELIVERY.Is there any process that we have to upload two text files one at header level & one at item level.Pls suggest if there is any other method.
Regards,
Prasad.
1)Create a recording of inbound delivery creation if u want to create in mass.
2) Make a note of all the filds recorded and make a excel sheet then convert it in notepad.
3) Upload it by LSMW.
Similar Messages
-
Please Help me How write the BDC program for the MIGO inbound Delivery
Please help me how to write bdc program for the MIGO Inbound Delivery in 4.7EE Version. Please help me.
Not in LSMW. Required call transaction or Session Method. Please help me.
MohanRun transaction BAPI . Select Logistics Execution/Shipping/InboundDelivery/SaveReplica.. You can use function module BAPI_INB_DELIVERY_SAVEREPLICA in your ABAP program.
-
Error while posting MIGO for HU-Inbound Delivery
Hi All
When am trying to post the MIGO for HU Inbound Delivery Creation, am getting an error saying "Required parameters missing when calling up module MARV_SINGLE_READ".
Following areas I have verifed:
The posting periods in MMRV shows current period.
The Number range for HU ID and Delivery type HID is maintained.
Now am looking for your expert opinion to resolve this issue.
Regards
K. ViswanathanAre you getting the same error in transaction MB1C to create the delivery.Try in MB1C
-
BDC for MIGO for GR OutBound Delivery( A01 & R05 ) from Movement Type 107 to 109
Hi,
I am stuck with a very typical situation need all your expertise and advices for a solution.
We are basically trying to create change the movement type from 107 to 109 through MIGO.
I have made a BDC recording for MIGO ( because we would like to track each delivery specifically under shipment , I know that there is a BAPI which is there to do this but it works fine if we do the shipment with Purchase Order as input which dont want in that manner )
Process:
1. Creating Production Order
2. Creating Purchase Order
3. Creating STO
4. Deliveries
5. PGI for Deliveries
6. Shipment for group of outbound Deliveries
I have created a z program where i am passing shipment number in the selection screen.
Then it would take all the deliveries for that shipment and pass each delivery to MIGO and process it and change the status from 107 to 109.
Interesting part here is, the code works absolutely perfect only from my ID. But when I test from other ID it is not executing, so to check where is the problem I have added mess_tab to the CALL TRANSACTION to capture what message is been populated for my ID comparing with others
Message Captured on Others ID's:
MSGID: 00
MSGNR: 344
MSGV1: SAPLMIGO
MSGV2: 1300
Message Captured on MY ID:
MSGID: MIGO
MSGNR: 012
MSGV1: 5000005802
MSGV2: (empty)
This is the problem this program is executing only on MY ID, rest all ID's it is not processing.
We have cross verified with security and basis regarding any authorization issues but nothing came up.
Please help me what could be the issue ( WHY it is processing successfully for my and WHY NOT for other ID's)
Below is the main code :
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL' " Converting Date format to DD/MM/YYYY
EXPORTING
DATE_INTERNAL = sy-datum
IMPORTING
DATE_EXTERNAL = lv_date_external
EXCEPTIONS
DATE_INTERNAL_IS_INVALID = 1
OTHERS = 2.
IF SY-SUBRC <> 0. "#EC NEEDED
* Implement suitable error handling here
ENDIF.
* Validating input shipment number with database table VTTP
SELECT VTTP~TKNUM
VTTP~TPNUM
VTTP~VBELN
FROM VTTP INNER JOIN VTTK
ON VTTP~TKNUM = VTTK~TKNUM
INTO TABLE IT_VTTP
WHERE VTTK~TKNUM = P_TKNUM
AND VTTK~STDIS = 'X'.
IF sy-subrc = 0.
* Validating all deliveries having same Delivery type or not
SELECT * FROM likp INTO TABLE it_likp FOR ALL ENTRIES IN it_vttp WHERE vbeln = it_vttp-vbeln
AND vbtyp = 'J'.
IF sy-subrc = 0.
CLEAR lv_lines.
LOOP AT it_likp INTO wa_likp.
REFRESH:it_vbfa,BDCDATA.
* Validating if Delivery Type = 109 (GR already done), or Delivery Type = 107 (must process for GR )
SELECT * FROM vbfa INTO TABLE it_vbfa WHERE vbelv = wa_likp-vbeln
* AND vbtyp_v = 'J'
AND bwart = '109'.
IF sy-subrc = 0.
lv_flag1 = 'X'.
ELSE.
SELECT * FROM vbfa INTO TABLE it_vbfa WHERE vbelv = wa_likp-vbeln
* AND vbtyp_v = 'J'
AND bwart = '107'.
IF sy-subrc NE 0.
MESSAGE 'No Deliveries with Movement Type "107" ' TYPE 'I'.
ELSE.
lv_flag2 = 'X'.
lv_lines = lv_lines + 1.
** BDC for MIGO
perform bdc_dynpro using 'SAPLMIGO' '0001'.
perform bdc_field using 'BDC_OKCODE'
'=OK_GO'.
perform bdc_field using 'GODYNPRO-ACTION'
'A01'.
perform bdc_field using 'GODYNPRO-REFDOC'
'R05'.
perform bdc_field using 'GODEFAULT_TV-BWART'
'109'.
perform bdc_field using 'BDC_CURSOR'
'GODYNPRO-OUTBOUND_DELIVERY'.
perform bdc_field using 'GODYNPRO-OUTBOUND_DELIVERY'
wa_likp-vbeln. "'80019574'.
perform bdc_field using 'GOHEAD-BLDAT'
lv_date_external. "'04/29/2015'.
perform bdc_field using 'GOHEAD-BUDAT'
lv_date_external. "'04/29/2015'.
perform bdc_field using 'GOHEAD-WEVER'
'1'.
perform bdc_dynpro using 'SAPLMIGO' '0001'.
perform bdc_field using 'BDC_OKCODE'
'=OK_POST1'.
perform bdc_field using 'GODEFAULT_TV-BWART'
'109'.
perform bdc_field using 'GOHEAD-BLDAT'
lv_date_external. "'04/29/2015'.
perform bdc_field using 'GOHEAD-LFSNR'
wa_likp-vbeln. "'0080019574'.
perform bdc_field using 'GOHEAD-BUDAT'
lv_date_external. "'04/29/2015'.
perform bdc_field using 'GOHEAD-WEVER'
'1'.
perform bdc_field using 'GODYNPRO-DETAIL_ZEILE'
' 1'.
perform bdc_field using 'GOITEM-ERFME'
'EA'.
perform bdc_field using 'GOITEM-ERFMG'
'1'.
perform bdc_field using 'GOITEM-LSMNG'
'1'.
perform bdc_field using 'GOITEM-LSMEH'
'EA'.
perform bdc_field using 'GOITEM-MIGO_ELIKZ'
'1'.
perform bdc_field using 'GOITEM-BWART'
'109'.
perform bdc_field using 'GOITEM-LGOBE'
'RX Cross-docking'.
perform bdc_field using 'BDC_CURSOR'
'GODYNPRO-DETAIL_TAKE'.
perform bdc_field using 'GODYNPRO-DETAIL_TAKE'
'X'.
PERFORM bdc_dynpro USING 'SAPLMIGO' '1300'.
PERFORM bdc_field USING 'BDC_CURSOR'
'G_TIP_DONT_SHOW_AGAIN'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=OK_TIP_GO'.
PERFORM bdc_field USING 'G_TIP_DONT_SHOW_AGAIN'
'X'.
*& Avoid unncessary screens to populate while processing background.
LV_OPTIONS-DISMODE = 'N'.
LV_OPTIONS-UPDMODE = 'S'.
LV_OPTIONS-NOBINPT = 'X'.
CALL TRANSACTION 'MIGO' USING BDCDATA OPTIONS FROM LV_OPTIONS MESSAGES INTO IT_MESSTAB1 .
WAIT UP TO 1 SECONDS.
DELETE IT_MESSTAB1 WHERE MSGTYP NE 'E'.
IF IT_MESSTAB1[] IS NOT INITIAL.
APPEND LINES OF IT_MESSTAB1 TO IT_MESSTAB.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ELSE.
MESSAGE 'Shipment Number does not exists Or not Planned' TYPE 'E'.
ENDIF.
ELSE.
MESSAGE 'Please insert Shipment Number' TYPE 'E'.
ENDIF.
IF lv_flag1 = 'X' AND lv_flag2 = 'X'.
MESSAGE 'This shipment is processed with an inconsistent goods receipt' TYPE 'I'.
ELSEIF lv_flag1 = 'X'.
MESSAGE 'Shipment already been processed for these deliveries' TYPE 'I'.
ELSEIF lv_flag2 = 'X'.
lv_lines1 = lv_lines.
CONDENSE lv_lines1 NO-GAPS .
CONCATENATE lv_lines1 'Goods Receipt are posted for the shipment '
INTO lv_message SEPARATED BY space.
MESSAGE lv_message TYPE 'I'.
ENDIF.
* Display Messages from Message TAB.
DELETE ADJACENT DUPLICATES FROM IT_MESSTAB.
DATA:lv_msg TYPE string.
LOOP AT IT_MESSTAB INTO WA_MESSTAB.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = WA_MESSTAB-MSGID
NO = WA_MESSTAB-MSGNR
V1 = WA_MESSTAB-MSGV1
V2 = WA_MESSTAB-MSGV2
V3 = WA_MESSTAB-MSGV3
V4 = WA_MESSTAB-MSGV4
IMPORTING
MSG = lv_msg
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
WRITE:/ lv_msg.
ENDLOOP.
* Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO. "#EC PF_NO_TYPE
CLEAR BDCDATA.
BDCDATA-PROGRAM = PROGRAM.
BDCDATA-DYNPRO = DYNPRO.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
ENDFORM.
* Insert field *
FORM BDC_FIELD USING FNAM FVAL. "#EC PF_NO_TYPE
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
ENDFORM.
Thanks,
SriniHi Rob,
Thanks for quick reply.
I have checked the NOTE : 304122
But there in the NOTE it says ( " BAPI, BAPI_GOODSMVT_CANCEL, BAPI_GOODSMVT_CREATE, CNTL_ERROR" )
These BAPI's work perfectly for (purchase order as input type), but here out type is ( A01 & R05 ) we are giving DELIVERY NUMBER as input to MIGO.
So for this scenario we cannot use those BAPI's mentioned in the NOTE.
Also as stated earlier in the message interesting part is
"The code works absolutely perfect only from my ID. But when I test from other ID it is not executing. Code is working exactly as expected ONLY to my ID. When i try to execute the same code from another's ID it is not working"
So what do you think might be the issue? -
BDC FOR MIGO (Out Bond Delivery)
Hello Experts ,
I am trying to Make new BDC for Migo A01 -
R05(Outbond Delivery) , Every Thing Is going Fine But in last whn i am trying to change Excise Invoice(03 only capture excise invoice -
to----> 05 only part1) its not working .At the time of Recording everything was ok . but when i am trying to process the recording its shows 05 only part 1 but not disable the fields of 03 capture excise .
Thanks.
Regards: Hemant Gulati(A1)Sorry Experts It Solved. Actually I was also Passing Excise Group.
Thread Closed -
Hi All,
I am trying to create BDC for MIGO T-code.But in recording part i am facing some problem
recording steps : 1 .I am putting putting Purchasing Document Number.
2. Press enter.
3 Delivery Note
4. Bill of lading
5. GR/GI Slip No
6. then in second part of screen i select batch tab and click on classification here i am
geeting problem in normal way when we click this classification button new screen open in which we put values and then new batch is create but in recording after click on classification
that screen is not coming so please can any body tell how can i populate this classification screen.
and put my values so migo process end.
Regards
AnkitUse this code
l_meins = 'EA'.
l_wa_goodsmvt_header-pstng_date = sy-datum.
l_wa_goodsmvt_header-doc_date = sy-datum.
l_wa_goodsmvt_item-move_type = '555'.
l_wa_goodsmvt_item-move_plant = '2000' " Receiving plant
l_wa_goodsmvt_item-move_stloc = '0700'. " Receiving SLoc
l_wa_goodsmvt_item-material = wa_ret_order-zzmat_no.
l_wa_goodsmvt_item-entry_qnt = wa_ret_order-zzqty_entered.
l_wa_goodsmvt_item-plant = wa_ret_order-zzissu_plant. " Plant
l_wa_goodsmvt_item-stge_loc = wa_ret_order-zzissu_strg_loc.
l_wa_goodsmvt_item-entry_uom = l_meins.
l_wa_goodsmvt_item-entry_uom_iso = l_meins.
l_wa_goodsmvt_item-costcenter = wa_ret_order-kostl.
APPEND l_wa_goodsmvt_item TO l_i_goodsmvt_item.
l_goodsmvt_code-gm_code = '03'.
* Migo posting
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = l_wa_goodsmvt_header
goodsmvt_code = l_goodsmvt_code
IMPORTING
goodsmvt_headret = l_wa_goodsmvt_headret
materialdocument = l_materialdocument
TABLES
goodsmvt_item = l_i_goodsmvt_item
return = l_i_return.
* Commit the changes
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = c_check.
This code is mainly for creating STO
Thanks
Amitava -
Finding FM/BAPI/RFC for Create Inbound Delivery(vl31n).
Hi all,
i need for a FM/BAPI/RFC for Create Inbound Delivery(vl31n) or ASN
where in import Parameter i have to pass -
*vendor no*
*PO no*
*External ID no*
*Delivery date*
*TransPlanngDate*
*BillOfLad*
*GR/GI Slip*
in Export i need ASN no and in tables we can use ITEM details.
Regards,
Sunil sahoo.Hi,
Check the below link
[https://forums.sdn.sap.com/click.jspa?searchID=16938983&messageID=5780492]
Regards,
Surinder -
How to post good receipt for an inbound delivery with HU in the stock?
Hello,
We have an inbound delivery of a purchase order with 10 Handling Units inside on.
The HU's has been put in a storage bin (by transport order + confirmation) before a good receipt has been posted for the whole delivery.
Due to this it's not possible to post good receipt for the inbound delivery, and the available stock quantity is in minus on zone: '902-GR Area External Rcpts' since the handling units are already in a storage bin.
Can anyone help me on this matter?
ThanksHi,
my situation is:
- a WM managed warehouse, society A;
- a HU managed warehouse (without WM), society B;
- a purchasing process of HU from society A towards society B.
Society B have a scheduling agreement; when a delivery schedule appears, in society A born a sales order and a delivery. After the registration of the delivery good issue, an idoc transfer information for inbound delivery creation.
This process is ok without WM, but with a WM managed warehouse the idoc has the following problem:
"V51VP - item was not found - process cancelled".
Can you help me to transfer these HU? -
How to create HUs and input SNs for a Inbound Delivery by BDC or Function?
I need to create HUs and input SNs for Inbound Delivery Order as VL32N.
At first, I create a BDC program using T-code VL32N, it does work for a few HUs in one Order, but when there are more than 5 HUs in one order, the later can't be input by this program, because the table control of HUs only display 5 records in my screen, so it need page down during BDC process, while in Ttl content, there 16 rows displayed, it need page down after 8 records. But different user have different screen size, so my program doesn't work for all user.
What should we do for turn page in BDC program?
OR
Is there any function can be used for creating HUs and input SNs for Inbound Delivery?How did you solve this issue, Can you give me some clue?
Regards,
Mohan -
Hi,
Can i write a BDC for Automatic good recipt in MIGO on the save of inbound delivery.
Regards.Hello,
It is hard to do BDC on Enjoy transactions based on Control Framework. For MIGO, you can use BAPI_GOODSMVT_CREATE.
Thanks,
Venu -
Pending GR no for existing inbound delivery
We create inbound delivey using VL31n. after that Goods receipt ( Migo ) is done.
is it possible to display the list of pending GR's whose corresponding inbound delivery's are
done but Gr's are pending ?
Already gone through sdn .Hi Explore,
if you want to display inbound deliveries without GR postings, please see the previous answers where the colleagues mentioned couple of transactions.
Please also note: they can only help if you post your goods receipts with transaction VL32N. "The functional things that links the inbound delivery and Goods reciept number in migo" is the document flow, otherwise known as table VBFA. As I said before, to populate that table with the material document you have to post the GR in the aforementioned VL32N. If you post the GR in MIGO, even if you choose inbound delivery as a reference, VBFA will NOT be updated, thus there will not be a link between the delivery and the material document. The inbound delivery is used merely as a reference to find the purchase order.
I wrote about the field MKPF-XBLNR. It gets filled automatically only if you post the GR over VL32N. If you post over MIGO, you're out of luck unless you enter it manually. Of course, you can make the field a required entry to ensure it's populated by the user. Then you can "manually" link to the LIKP/LIPS tables in ABAP for example.
Regards,
Attila -
BAPI for VL31N (Inbound Delivery Creation
Hi,
My requirement is I need to write a program create a inbound delivery based on multiple Purchase orders. Usually Inbound deliveries are created through transaction VL31N. As it is SAP njoy transaction, we can write a BDC code for this. I searched a suitable BAPI, but i found none.
Anyone have any idea on this ?
Regards,
GaneshUse the below function module to create a inbound delivery with the PO number
DATA: IS_INB_DELIVERY_HEADER LIKE BBP_INBD_L.
IS_INB_DELIVERY_HEADER-DELIV_EXT = 12121
IS_INB_DELIVERY_HEADER-DELIV_DATE = 08/16/2006
DATA: T_DETAIL LIKE LIKE BBP_INBD_D OCCURS 0 WITH HEADER LINE.
T_DETAIL-MATERIAL = 'xxx'.
T_DETAIL-DELIV_QTY = '10.000'.
T_DETAIL-UNIT = 'EA'.
T_DETAIL-PO_NUMBER = '45XXXXXX.
T_DETAIL-PO_ITEM = '000010'.
APPEND T_DETAIL.
DATA: T_RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE.
DATA: V_VBELN TYPE VBELN_VL.
CALL FUNCTION 'BBP_INB_DELIVERY_CREATE'
EXPORTING
is_inb_delivery_header = is_inb_delivery_header
IMPORTING
EF_DELIVERY = V_VBELN
tables
it_inb_delivery_detail = T_DETAIL
return = T_RETURN
Regards, -
BAPI for GR ( Inbound Delivery )
Hi,
My requirement is that I need a BAPI or FM to create a Goods Receipt (MIGO document) for Inbound delivery. I need to even pass the FREIGHT Details in it. I had checked BAPI_GOODSMVT_CREATE, but i dont have the Parameter where i can pass the Freight details.
Please provide me the correct way to create GR with FREIGHT Details.
Thanks,
RaviHi David,
Actually there are 2 condition types in Purchase Order (ZHC3 & ZTC3) which are related Freight details. Now when I create a GR with refrence to Inbound delivery(which is related to PO), we will be getting a FREIGHT Tab in MIGO screen, so automatically 2 line items in FREIGHT tab will be appended with the PO Vendor number. I need to change the Vendor's for both the line items in FREIGHT Tab.
Please let me know how to change the vendor details.
Thanks,
Ravi -
Hi all,
What is the main difference between the MIGO and Inbound delivery?
regards
RPHi,
Inbound processing covers the physical inbound delivery processing that succeeds the procurement process. It includes ASN processing, physical Goods Receipt and put away of materials in Warehouse Management up to sending the proof of delivery to the business partners.
Outbound processing comprises the preparation of goods to be delivered from a warehouse to a receiving location. Outbound processing within the scope of warehouse management typically comprises activities like the notification of goods to be supplied from a warehouse to a customer for which the outbound delivery serves as the reference document, picking, packing, physical goods issue in warehouse, loading, goods issue and goods issue posting to IM, advising advanced shipping notifications to business partners and, obtaining a proof-of-delivery from the receiving business partner
For more check the links:
http://www50.sap.com/businessmaps/503FC98E125841BABC365D208D214617.htm
http://erp.esworkplace.sap.com/socoview(bD1kZSZjPTgwMCZkPW1pbg==)/smdisplay.asp?id=7E1E658E603711DA36BB000F20DAC9EF&fragID=&packageid=CBD4F2B708B8144DAEA05442D8FD491E&iv=
http://esoadocu.sap.com/socoview(bD1lbiZjPTgwMCZkPW1pbg==)/render.asp?packageid=DBBB6D8AA3B382F191E0000F20F64781&id=6E8A57AE47AF11DA36BB000F20DAC9EF
Were as Inbound Delivery is
In its role as central object of the inbound process, the inbound delivery supports all activities such as putaway, packing, transportation and goods receipt. During the inbound delivery process, planning information is recorded, the status of different activities is monitored, and data accumulated during inbound shipment processing is documented. When the inbound delivery is created, activities such as putaway or scheduling are initiated, and data that is generated during processing of the inbound delivery is included in the delivery.
Process flow
An inbound delivery can be created as follows:
With reference to a purchase order
With collective processing for several purchase orders
With reference to a stock transport order
With reference to a customer return
Depending on your requirements, you can create inbound deliveries automatically using work lists, or manually. Overviews allow you to monitor the inbound deliveries that were created and activities relating to those deliveries that are due to be carried out.
The system carries out the following activities when an inbound delivery is created:
Checks the order and materials to make sure an inbound delivery is possible
Determines the delivery quantity of an item
Calculates the weight and volume of the delivery
Calculates work expenditure
Assigns a storage location for putaway
Updates order processing
You can subsequently make changes in a delivery in order to report the quantity that was put away or if the delivery situation changes in any way. In addition, you can use the display function to access inbound-delivery information in a delivery.
Regards,
Prem.
Edited by: prem cherukuri on Jun 11, 2008 1:00 PM -
Step for creating inbound delivery in case of customer return.
Hi,
When I start vl31N I can create with reference to vendor or PO an inbound delivery.
How to create inbound delivery with reference to a customer return?
What to do?
Thank you in advance,
Eric van Zundert.Hi,
You can try to create a copy control for return sales order to inbound delivery document. Depending on business requirements like combining vendor PO and returns sales orders, you can try to use VL31N.
If it is only returns sales orders that needs to be processed, then SAP standard document types and its associated copy control would help.
Regards
P.S: Does your scenario relate to import process? I am in the same boat.
Edited by: Shiva Ram on Jan 22, 2008 2:17 PM
Maybe you are looking for
-
ITunes 9.2 causes fatal error and "blue screen of death"
I installed Itunes 9.2 this morning and whenever I tried accessing this version of Itunes, my system hangs and showed me the infamous "blue screen of death". I have tried uninstalling and reinstalling Itunes but nothing seems to work. Anyone encounte
-
Hi Ingo and others, I have two situations and need your input I have configured the SNC between BOBJ and SAP by exchange of certificates. I am able to create Universe thru a connection as u201Cuse SSO when refreshing the report on runtimeu201D Or by
-
Lines Running Together When Editing Form PDFs
I created a form/fillable PDF in Acrobat XI Pro. I want to use it on an iPad app called PDF Expert, where I can fill in the fields and save it. When I do so and have the form sync back to my MacBook and open it, the lines of text in a fillable text
-
Currency Field on the custom sceen
Hi Friends I have developed a custom screen and the input fields are the custom table fields. I have created a work are in the program for that custom table and placed them on the screen, now my problem is I have to currency fields (WRBTR and DMBTR),
-
Time Machine does not show after installing Lion?!
I upgraded to Lion and now my Time Machine does not work. When I connect the disk it starts and then shuts down. It does not show neither on desktop or on Time Machine. Any ideas. I hate the thought of reinstalling Snow Leopard but... Thank you in ad