MIGO BDC
i have developed BDC FOR the MIGO transaction with GOODS RECIEPTS against PURCHASE ORDER and i passed subcontract challan number and year it is given problem .please suggest me and send me sample program using bapi function module Name :BAPI_GOODSMVT_CREATE
Regards
Asish
Hi,
I used this Bapi for stock material Upload(MIGO). I will show some part of my code.
LOOP at it_data INTO wa_data.
on CHANGE OF wa_data-sgtxt.
MOVE-CORRESPONDING wa_data to wa_mat.
APPEND wa_mat to it_mat.
endon.
ENDLOOP.
loop at it_mat INTO wa_mat.
PERFORM date_conv USING wa_mat-bldat CHANGING bapi_head-PSTNG_DATE.
*bapi_head-PSTNG_DATE = wa_mat-bldat.
PERFORM date_conv USING wa_mat-budat CHANGING bapi_head-DOC_DATE.
*bapi_head-DOC_DATE = wa_mat-budat.
bapi_head-HEADER_TXT = wa_mat-bktxt.
bapi_code-GM_CODE = '05'.
LOOP at it_data INTO wa_data WHERE sgtxt = wa_mat-sgtxt.
wa_item-MATERIAL = wa_Data-matnr.
wa_item-PLANT = wa_data-werks.
wa_item-STGE_LOC = wa_data-lgort.
wa_item-BATCH = wa_data-charg.
wa_item-MOVE_TYPE = wa_data-bwart.
PERFORM date_conv USING wa_data-vfdat CHANGING wa_item-EXPIRYDATE.
*wa_item-EXPIRYDATE = wa_data-vfdat.
wa_item-ENTRY_QNT = wa_data-erfmg.
wa_item-ITEM_TEXT = wa_data-sgtxt.
wa_item-AMOUNT_LC = wa_data-amt_lc.
APPEND wa_item to it_item.
endloop.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = bapi_head
GOODSMVT_CODE = bapi_code
IMPORTING
MATERIALDOCUMENT = MATDOC
MATDOCUMENTYEAR = matyr
TABLES
GOODSMVT_ITEM = it_item
RETURN = it_ret
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
CLEAR:matdoc,matyr,bapi_head,bapi_code,wa_item,wa_ret,wa_data,wa_mat.
refresh:it_item,it_ret.
ENDLOOP.
Hope This Helps You.
Regards,
Manesh.R
Similar Messages
-
I have created one RFC Function in that i have called the MIGO BDC.
When i execute the RFC in SAP with the parametres the MIGO BDC works perfectly.
But when i call the RFC through Legacy System with the same data it is not working.
Can you pls. let me know if something has to be done, so that the BDC will also works from Legacy?go for mb01 instead of migo.
or else.
check the last two posts in this source
Re: Reg: Item ok check box in MIGO -
MIGO BDC is not working in Scheduled BG Job
Hello,
For Subcontracting Purchase Order Item, we are using the BDC Call Transaction method for the TCode
MIGO in the program 'ZMIGO_TEST'.
When we are testing the Program 'ZMIGO_TEST' through SE38 it is running successfuly and document is also posted but problem is when we schedule the same program 'ZMIGO_TEST' in SM36, same BDC code for MIGO Transaction is not working and giving the Error in IST_BDCMSGCOLL as folloow.
MSGID: - DC
MSGTYP: - S
MSGNR: - 006
DYNAME: - 0001
MSGV4: - SAPLMIGO
NOTE: - We can not use the BAPI 'BAPI_GOODSMVT_CREATE' because we have to update the Challan Number and Challan Year also for each PO Line Item and this BAPI does not have thses two fields in its Parameter Interface.
Please suggest.
Thanks & Regards
Jageshhi,
check below tcodes..
Subcontracting Process
Subcontracting without Payment of Duty
Creation of Subcontracting PO (ME21N)
Transfer Posting of Components to Subcontractor (Mvmt Type - 541) (MB1B/ME2O/MIGO)
Creation of Subcontracting Challan w.r.t. Transfer Posting Doc (J1IF01)
Goods Receipt w.r.t. Subcontracting PO and Refer Subcontracting Challan at the time of GR (MIGO) {GR with 101 and auto consumption of components with 543 movement}
Reconciliation of Subcontracting Challan (J1IFQ)
Completion of Subcontracting Challan (J1IF13)
Generation of Annexure IV (J1IFR)
Note: - In this case, you have to maintain the Assessable Value for the Components to be supplied to Vendor in J1ID and also Excise Tax rates for the Chapter IDs linked with these components. So during J1IF01, system will take the Assessable Value as Excise base Value and calculates the Excise Duties by taking Excise Tax Rates.
Subcontracting under Full Payment of Duty
Creation of Subcontracting PO (ME21N)
Transfer Posting of Components to Subcontractor (MB1B/ME2O/MIGO)
Creation of Outgoing Excise Invoice w.r.t. Transfer Posting Document (J1IS) - Used to send the components to Subcontractor's. Here 57F4 Challan is not created.
Accounting Entry: -
CENVAT Input BED - Cr
CENVAT Input ECS - Cr
CENVAT Input ECS - Cr
CENVAT Suspense A/c - Dr
Capture Vendor Excise Invoice at the time of GR of Finished Goods w.r.t. Subcontracting PO (MIGO)
Post Excise Invoice for FG received from Subcontractor (J1IEX)
Accounting Entry: -
CENVAT Input BED - Dr
CENVAT Input ECS - Dr
CENVAT Input ECS - Dr
CENVAT Clearing A/c - Cr
Master Data:-
MM01- Material Masters for Components and FG
XK01 - Vendor Master (Subcontractor)
CS01 - BOM for FG
ME11 - Purchase Info record for Subcontracting -
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? -
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.
-
Hi,
For Goods reciept for Kanban material there is transaction called PKBC. Inside this transaction we wrote two BDC's i.e One for MIGO (with only Part1) & J1iex(Capturing & posting the excise invoice). After running this we found that accounting document contains all the entries including Part2. But During MIRO we are not getting excise amount which is payable to the vendor.
Please help me to resolve this. Incase if you need any clarification please ket me know.
Thanks in advance
Regards,
Krishna A S Vwhy r u using two BDC
why dont u use only one and update Part I and Part II at a time
regards,
snb -
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 -
Dear all,
there is problem in BDC MIGO report. when i uploaded the p_file the bdc run but on some fields it gives the error message
S Field GOITEM-ERFME . is not an input field
S Field GOITEM-ERFMG . is not an input field
S Field GOITEM-LSMNG . is not an input field
S Field GOITEM-LSMEH . is not an input field
S Field GOITEM-BWART . is not an input field
S Field GOITEM-LGOBE . is not an input field
S Field GOITEM-WEMPF . is not an input field
S Field GOITEM-ABLAD . is not an input field
S Field GOITEM-SGTXT . is not an input field
these are all input fields and i defiend as
perform bdc_field using 'BDC_CURSOR'
'GOITEM-ERFME'.
perform bdc_field using 'GOITEM-ERFME'
IT_DATA-ERFME.
perform bdc_field using 'GOITEM-ERFMG'
IT_DATA-ERFMG.
perform bdc_field using 'GOITEM-LSMNG'
IT_DATA-LSMNG.
perform bdc_field using 'GOITEM-LSMEH'
IT_DATA-LSMEH.
*perform bdc_field using 'GOITEM-MIGO_ELIKZ'
'1'.
perform bdc_field using 'GOITEM-BWART'
'101'.
perform bdc_field using 'GOITEM-LGOBE'
IT_DATA-LGOBE.
perform bdc_field using 'GOITEM-WEMPF'
IT_DATA-WEMPF.
perform bdc_field using 'GOITEM-ABLAD'
IT_DATA-ABLAD.
perform bdc_field using 'GOITEM-SGTXT' "
IT_DATA-SGTXT.
please solve my problem.
Regards,
PankajHI,
May this will throw some light for u
Geting problem in BDC prog of MIGO transaction
Regards,
Aditya -
Hello Friends,
I have created LSMW (recording) for Migo Transaction .
After running the LSMW it is not storing data for fields BED,SED,ECS in Excise ItemTab in Migo.
I have also created a BDC and done recording through SHDB.
But still the problem remains the same.After running BDC also it is not storing data for fields BED,SED,ECS in Excise ItemTab in Migo.
I have run the BDC/LSMW in foreground mode where it places the values to the corresponding fields
but does not save it.
But Manually doing Migo Transaction it stores the values for above field.Hi,
WA_GOODSMVT_ITEM-MATERIAL = P_MATNR. "'000000000000001556'.
WA_GOODSMVT_ITEM-PLANT = P_WERK. " '1000'.
WA_GOODSMVT_ITEM-STGE_LOC = P_LGORT. " '0001'.
WA_GOODSMVT_ITEM-MOVE_TYPE = 'Z42'.
WA_GOODSMVT_ITEM-VENDOR = P_ZZORG. "'0000100224'.
WA_GOODSMVT_ITEM-ENTRY_QNT = P_BAG. " '1'.
WA_GOODSMVT_ITEM-ENTRY_UOM = S_MARA-MEINS.
WA_GOODSMVT_ITEM-ENTRY_UOM_ISO = S_MARA-MEINS.
WA_GOODSMVT_ITEM-MOVE_PLANT = P_WERKS.
APPEND WA_GOODSMVT_ITEM TO T_GOODSMVT_ITEM.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = T_GOODSMVT_HEADER
GOODSMVT_CODE = T_GOODSMVT_CODE
IMPORTING
MATERIALDOCUMENT = V_MATERIAL
TABLES
GOODSMVT_ITEM = T_GOODSMVT_ITEM
RETURN = T_RETURN.
EXPORT t_return to MEMORY ID '123'.
EXPORT V_MATERIAL TO MEMORY ID 'MAT'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ' '.
Thanks,
Shailaja Ainala. -
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 -
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 -
BDC for Goods Issue for movement 261 MIGO, Capturing Mat Doc No.
Hi All
I want to post Goods Mvmt for order fir mvmt 261 using BDC ( transaction MIGO ). However I need to get back the material Document no. which is generated after this posting and store it in Z table.
Can I get that material in BDC recording or do I need to add a select statement for this. Material document no is displayed just on status line below. How to get that ?
Amolcapture the MESSAGE after the BDC , there u will get the MAT.DOC.
<b> call transaction 'MIGO' using bdctab
mode 'E'
update 'S'
messages into msgtab .</b>
Regards
Prabhu -
Hi Experts,
While using BDC method to call MIGO, I am not getting desired output.
Find below the code snippet.
clear bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'GODYNPRO-ACTION'.
append bdcdata_wa to bdcdata_tab.
clear bdcdata_wa.
bdcdata_wa-fnam = 'GODYNPRO-ACTION'.
bdcdata_wa-fval = 'A01'.
append bdcdata_wa to bdcdata_tab.
clear bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'GODYNPRO-REFDOC'.
append bdcdata_wa to bdcdata_tab.
clear bdcdata_wa.
bdcdata_wa-fnam = 'GODYNPRO-REFDOC'.
bdcdata_wa-fval = 'R01'.
append bdcdata_wa to bdcdata_tab.
call transaction 'MIGO' using bdcdata_tab options from opt .
I am getting MIGO screen but Reference document type is not getting displayed properly.
Regards,
SibinrajHi
Try below code and change accordingly
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'
'R01'.
perform bdc_field using 'GODEFAULT_TV-BWART'
'101'.
perform bdc_field using 'BDC_CURSOR'
'GODYNPRO-PO_NUMBER'.
perform bdc_field using 'GOHEAD-BLDAT'
'20.09.2011'.
perform bdc_field using 'GOHEAD-BUDAT'
'20.09.2011'.
perform bdc_field using 'GOHEAD-WEVER'
'1'.
perform bdc_dynpro using 'SAPLMIGO' '0001'.
perform bdc_transaction using 'MIGO'.
Shiva -
BDC Calling MIGO transaction with different actions
Hi everyone,
i am doing a BDC for MIGO t-code....to create Good Receipt w.r.t Purchase Order.....
While executing the Pgm....if some other user has opened the MIGO t-code in DISPLAY mode then that pgm is not able to call the MIGO t-code...to create Good Receipt w.r.t Purchase Order.....
As this bdc pgm is witten to create the good receipt i.e. why it is not allowing to create the receipt as already someone else has opened it in DISPLAY mode....
The following code is to create Good Receipt w.r.t Purchase Order.....
perform bdc_field using 'GODYNPRO-ACTION'
'A01'. -
Good receipt
perform bdc_field using 'GODYNPRO-REFDOC'
'R01'.-----Purchase order
PLease if somebody can help me out with this code...or can send me any program related to this pgm.
With Regards,
Seevangi MishraTry using the bapi BAPI_GOODSMVT_CREATE.
Here is part of the code:
method create_goodsreceipt.
data: ls_header type bapi2017_gm_head_01.
data: lv_code type bapi2017_gm_code.
data: lv_document type bapi2017_gm_head_ret-mat_doc.
data: lv_year type bapi2017_gm_head_ret-doc_year.
field-symbols: <fsi> type bapi2017_gm_item_create.
data: lt_items type bapi2017_gm_item_create_t.
data: lt_ret type table of bapiret2.
data: ls_ret type bapiret2.
data: lv_error type xfeld.
data: ls_headout type bapi2017_gm_head_ret.
lt_items[] = items[].
* header position
ls_header-pstng_date = sy-datum.
ls_header-doc_date = sy-datum.
ls_header-ref_doc_no = 'ref do no'.
ls_header-pr_uname = sy-uname.
ls_header-header_txt = 'header test'.
* code invullen
move '01' to lv_code.
* aanpassen items table
loop at lt_items assigning <fsi>.
<fsi>-move_type = '101'.
<fsi>-mvt_ind = 'B'.
<fsi>-po_number = me->ebeln.
<fsi>-plant = me->bukrs.
endloop.
* bapi oproepen
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = ls_header
goodsmvt_code = lv_code
testrun = testrun
importing
goodsmvt_headret = ls_headout
materialdocument = lv_document
matdocumentyear = lv_year
tables
goodsmvt_item = lt_items
return = lt_ret.
* commit
if testrun = space .
lv_error = zcl_bapi=>check_for_errors( lt_ret ).
if lv_error is initial.
ls_ret-type = 'S'.
ls_ret-id = 'CREATED'.
ls_ret-message = ls_headout.
ls_ret-message_v1 = ls_headout-mat_doc.
append ls_ret to lt_ret.
call function 'BAPI_TRANSACTION_COMMIT'.
endif.
endif.
returntable[] = lt_ret[].
endmethod.
Hope it helps you,
Bert -
I want to put bdc code in MIGO save time.
Hi all
I have one problem with migo badi at time of migo goods issue in post method i want to run background bdc.and i want to change user status with tht bdc..but perform is not permitted so how could i solve this..
Thanks.Hi,
u need to enhance the BADI u r using, find the User Exits or Enhancement Points in the BADI and paste your code over there.
hope this solves the issue ...
all the best!!
thanks
ravi
Maybe you are looking for
-
How to get out of Recovery Mode? Please help!!
Hello all, I have a Nomad Muvo^2 that is stuck in Reocvery Mode. Turns out that when i loaded recovery mode, i didn't really need it cuz it was just my computer that was messed up. Now with a new computer and me being able to access the E dri've for
-
Unable to read list price in CRM order
Dear Experts i have a scenario where my client maintained new pricing procedure for which he has maintained a list price?(ZPRC) by using reference condition type (PR00) in r/3 i runned all customizing objects relating to pricing and even runned arequ
-
Since updating to the newest Aperture, it will occasionally go mad when without internet connection (e.g. when waking from sleep) and spew out an endless stream of alerts that it can't connect to Flickr. Very annoying!
-
ME51N: Print out for Purchase Requisition
Hi ABAP-developer, I looked within the forum for a customer solution to print out a purchase requisition (no export to Excel or list printing!). Because the PRs are internal documents there's no standard solution for this. Do I need to copy the formu
-
Merge issue : page numbering
hi all, does anybody know how to add "total pages" after merging pdf documents adding "page <?>" works fine in other words , i need to add at the bottom of the merge document "page <?> from <total pages>" ---- code sample --- the code provide only pa