Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create an RFC for MIGO transaction?

Former Member
0 Kudos

How to create an RFC for MIGO transaction?

I want my RFC to accept all details as accepted in MIGO transaction.

For the entered PO no, display the materials against it and allow user to enter the quantity for the same.

Then the user should be able to post the PO by executing the RFC.

Kindly revert asap.

Thanx in advance,

Bhakti

4 REPLIES 4

Former Member
0 Kudos

Hi,

Use BAPI BAPI_PO_RELEASE. no need to create RFC

Reward if it helps,

Satish

Former Member
0 Kudos

Hi Bhakti,

you can use this BAPI "BAPI_GOODSMVT_CREATE" for goods movement...In fact this will post good through transaction MB1A.... This will solve your purpose.....Just try with this Bapi it will work for you....

Above Bapi have solve my purpose of good movement......

IF any other query please let me know....This will work for you...I don't think you have to Develop RFC....

If you want to create a RFC then goto SE37 create a functio module and in that in attribute check radio button for Remote Enable.....

Reward the points...

Cheers....

Sagun Desai.....

Former Member
0 Kudos
  • Put good movement header data in structure header

l_header-pstng_date = sy-datum.

l_header-doc_date = sy-datum.

l_header-ver_gr_gi_slip = space.

  • Assign goods movement code

l_wa_goodsmvt_code-gm_code = c_gm_code.

  • Add material, plant, and other line item details in

  • goods movement item table

l_wa_goodsmvt_item-material = l_wa_selected-matnr.

l_wa_goodsmvt_item-plant = l_wa_selected-werks.

l_wa_goodsmvt_item-stge_loc = l_wa_selected-lgort.

l_wa_goodsmvt_item-batch = l_wa_selected-charg.

l_wa_goodsmvt_item-move_type = l_wa_selected-mov_type.

l_wa_goodsmvt_item-entry_qnt = l_wa_selected-deviceid.

l_wa_goodsmvt_item-entry_uom = l_wa_selected-meins.

l_wa_goodsmvt_item-move_plant = l_wa_selected-zwerks.

l_wa_goodsmvt_item-move_stloc = l_wa_selected-zsloc.

l_wa_goodsmvt_item-move_batch = l_wa_selected-rec_batch.

l_wa_goodsmvt_item-serialno_auto_numberassignment = space.

APPEND l_wa_goodsmvt_item TO l_i_goodsmvt_item.

CLEAR l_wa_goodsmvt_item.

l_wa_serial_num-matdoc_itm = l_c_mat_doc_item.

l_wa_serial_num-serialno = l_wa_selected-sernr.

APPEND l_wa_serial_num TO l_i_serial_num.

CLEAR l_wa_serial_num.

  • To call BAPI BAPI_GOODSMVT_CREATE to transfer material of transfer

  • type one step

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

goodsmvt_header = l_header

goodsmvt_code = l_wa_goodsmvt_code

IMPORTING

goodsmvt_headret = l_goodsmvt_headret

TABLES

goodsmvt_item = l_i_goodsmvt_item

goodsmvt_serialnumber = l_i_serial_num

return = l_i_return.

cheers

Aveek

Former Member
0 Kudos

Hi Bhakti,

Please clear about your requirement.

Q1: You are requesting a RFC for MIGO.

Ans: MIGO is a SAP transaction which can be executed only using a SAP Gui or using a WEBDYNPRO. It is not possible to create a RFC for any TCODE in SAP.

Q2: Are you requesting for a RFC function module?

Ans: RFC stands for Remote Function Call. A function module which can be called remotely from another system (Application) is called a RFC function module. So if this is u r requirement you need to search a Standrd BAPI for MIGO and can be called from another system using RFC destination. If no standard BAPI found, you can develop a custom RFC function module by calling Normal SAP Standard function module. Please contact any ABAP consultant to clearly know about RFC calls.

Regards

Vijayanand Poreddy

Message was edited by:

Vijayanand Poreddy