Goods receipt for import material
Dear all,
The excise tab does not appear during goods receipt of imported material. But when are doing the goods receipt for domestic material the tab does appear.
Even after posting goods receipt and while trying to capture excise details in J1IEX i.e. incase of imports CVD, CVD-Ecess, CVD-HEcess and additional duty, the system asks for the invoice number and then throws a message that PO does not contain any selectable items. We have defined as separate pricing procedure for imports.Have maintained the material and vendor details in J1ID.
Request to kindly suggest any settings that we need to check so that the excise tab appears for imported material also.
regards,
mahesh.
Hi,
Import Process: -
1. ME21N - Create Import PO
2. MIRO - Customs Invoice
3. J1IEX - Capture Bill of Entry
4. MIGO - Goods Receipt
5. J1IEX - Post Bill of Entry
6. MIRO - LIV for Vendor Invoice
7. MIRO - LIV for Clearing Agent
Following condition types to be used in MM Pricing.
JCDB IN:Basic Custom Duty
JCV1 IN : CVD
JECV IN : Ed Cess on CVD
J1CV IN : H&SECess on CVD
JEDB IN : Ed Cess on BCD
JSDB IN : H&SECess on BCD
JADC Addnl Duty of Custom
Mandatorily, use a Zero % Tax Code in Import PO.
Import Duties will not come from J1ID, in J1ID only you have to mainatin material and Vendor (Customs Office and Import both) excise details.
Above all, check the Excise Defaults for CVD conditions in SPRO > LO > Tax on Goods Movement > India > Basic Settings > Mainatin Excise Deafults
Similar Messages
-
Good receipt for serialized material
Hi
We are using Serial number functionality. When we do good receipt for serialized material, we canu2019t enter more than 6 serial no together. Generally we used to procure 50 -100 materials. We will get serial no to excel sheet by barcode scanner. But when we entered in SAP, system allows only 6 material .
Is there anyway we can copy from excel sheet and paste it in SAP all materials together.
Thanks
JenyHi
Yes there is a way of uploading more than 6 materials at a time in MIGO screen,
You need to first upload or create the serial numbers for the material using an LSMW for IQ01 & here donot give any plant or storage location specific details
At the time of Goods receipt Copy the material serial numbers by clicking on find in MIGO in serial number tab, you need to enter the material & serial numbers copying from the excel sheet & click execute this will list all the serail number , you can select them all & copy into the MIGO screen.
This is how we didi it in our system.
Thanks & Regards
Kishore -
Goods Receipt for packaging material - Item cat. ELP
Hi expert,
I am facing a problem regarding receive Packaging Material Item i MIGO via inbound. Problem detail as below hope you can advise me:
1. I create PO order 1pc of Throttle
2. In Inbound Delivery Screen I do Packing for Throttle by using Handling Unit Function, packaging Material is Carton Box.
3. After Pack complete, Item for packaging material is auto generated in inbound screen:
- Item Cat. of Throttle = ELN
- Item Cat. of Carton Box (Packaging Material) = ELP
4. When i do MIGO via Inbound: there is only 1 item for Throttle is displayed. How to do Goods Receipt for Carton Box item? Do i Miss any setting for that?
Thanks.i thnk u sould maintain material master with two units one is throttle and second is cartoon.
u shud maintain that how many throttle is equal to 1 cartoon.
this u can maintain directlt in PO (In condition tab, with these two field : OUN and UN). in PO as a OUN ,give throttle n UN , give cartoon in item overview as well as condition tab.
and during delivery change the unit in cartoon. then while migo, material will show in cartoon.
hope it will be helpful.
Thanks
Nisha -
Goods receipt for subcontracting material
Hello friends,
i am doing operation subcontractiing. My first operation is subcontracted. So, I have assigned PP02 control key to first operation (external processing and no auto goods receipt indicator) and maintained external processing data for opration in routing. When i saved the order, for that operation PR gets generated.
Now, I converted PR into PO and assigned raw material that has to be send to vendor. By 541 mvt. type material is issued to vendor. When i do goods receipt in MIGO, system is not showing storage location field. I dont find material in stock anywhere.
But i can see quantity received in external processing tab of first operation in routing overveiw in order.
Then how can i issue the material from storage for second operation if it is not in stock?
How can i get stock of subcontracted material by MIGO?
Please help me.
Thanks in advance!Kiran,
Since your scenario is Subcontract of operations, you will not find a material referance in your PR/PO, so there is no GR of Material happening, in this Scenario GR means delivery of the operation.
If you really want to track, then you need to create an additional material number and assign that material number with Special Procurement key "30", here in this case you can recieve the product after subcontract as this is product sub contract process. In this case Production order is not relevant.
Regards,
Prasobh -
Good receipt for process material.
Hi PP Gurus,
In process material scenario (Material type PROC) when I create a process order (cor1) for the same. In good receipt tab "Good receipt, non valuated" check box getting activated be default. As a result order is not getting credit of any co-product produced from above process order.
My requirement is tick should be there in "Good Receipt" instead of "Good receipt, non valuated".I think the issue is getting diverted. Please understand I don't want to maintain price. The reply I have given as a feed back to the earlier reply. My issue is different. Pl go thro intial question. Pl do not go by chain and comment.
-
Good receipt for indirect material using MIGO
Hi all, our company has a trouble in receiving PO for indirect material.
We would use the MIGO transaction for these order but withouth having an inventory movements (since they are indirect material)
I don't know how normally these PO are managed, if we're using a wrong process or we need a customization of the normal procedure.
thanks in advance for any helpIf you want to track Inventory then you need the material code & Quantity updating to be managed for those material type in OMS2 , If you are doing purchase without any Material code & against the cost center then those items directly get consumed after GRN, So now you have to decide which process you want to follow , Normally both are Standard Process.
-
Goods Receipt for Different Material
Hi Gurus,
I've created PO for Material A,while MIGO when inspected found different Material,
But Package of the material shows Material A only,how to accept this Misc Material While MIGO??
thanksIf you are Sure that the Material is Different to Po material then You can send it back to Vendor.
Or Keep this material in GR Blocked Stock 103 until Situation is Resolved.
Else Inward the material with out referring po in migo with 501 mov type.
I would suggest you to follow the First option.
Regards,
Ashok -
Last purchase order and goods receipt for material
Hello to everyone,
is there any standard report where I can see the last purchase order and goods receipt for a material?
RegardsHi,
Latest PO you can get from ME2M, by giving input as material and scope of list as best.
Latest GR date can be get from MB51, by giving input as Material and movement type as 101.
Regards,
Prabu -
Doing a goods receipt for a customer material that is ASEQ status
We are needing to find a way to be able to do a goods receipt for a child part in ASEQ status. Most of our customers will send in their part after disassembling it themselves. Since we can not receive the part our present process is to dismantle so the system status changes to ESTO and we can receive. The problem with this is that the end user forgets to assemble the part back and we end up breaking the linkage.
We have looked into using User Status in the equipment master and have configured that. However the user status button, nor name shows up in the equipment master. I have looked at the field selection in IMG and it is not hidden. I am assuming it is being supressed by a user exit we have.
Can anyone give me any suggestions on how we can improve the process using SAP for material that is ASEQ status and being able to create an inbound delivery so we can receive in our warehouse for this status without dismatling the unit?
We are on ECCHello Kimberly
You lost me while describing your current process, so please provide more details as to how you dismantle and reinstall etc. Also how the part goes back to the customer.
However I can provide you clarifications to some questions you raised..
You see both system and user statuses in the field 'Status' itself. This is the 3rd row in the Equipment display screen under Equipment number and Description. If you see carefully you will see 2 sections, the one on left is system status and the one on right is User status. If you click on the i (info) icon, you will be taken to a screen where you see more info like status and business processes etc.
ASEQ is a system status and it is determined by what you did ( example dismantling) and can't be changed by you (user). If you see the 'Business Processes' tab, you will also see the this won't allow assignment to a Delivery and so on. So my point is having a user status will not help you. Based on the combination of system and user statuses, some processes are permitted, some not. For example if Goods Receipts are allowed, may be you can receive without an Inbound delivery. I am mentioning this as a thought initiator, I know you will have a Return/Repair order process including a return delivery.
I guess you have to systematically prevent the user from doing whatever they are doing out of turn, e.g., forgetting to reassemble (install?) and for this User statuses can help.
Let us know your process more in detail and I am sure SAP will have a standard way to receive a child part of a big assembly. Other members will share their practices also.
Take care. -
MPN Material Field in Goods Receipt for Purchase Order
Hi,
I have created PO for MPN material "MFG-A" for IM material " 123". ( ECC 6.0)
Already the material "123" is maintained with other MPN material "MFG-B"
The have checked the " MPN Change" check box in the respective Mfg Part profile( IMG: OMPN)
While I am doing goods receipt, the MPN material field is in display mode.
But in other system the field is in change mode.
Default the system will show "MFG-A" as the MPN material is maintained in PO.
But I need to change the MPN materail at the time of GR.
I would like to change the MPN material from "MFG-A" to "MFG-B" while doing GR time.
kindly guide me what are the settings required to change MPN Material Field in Goods Receipt.
Thanks in Advance,
Kumar.Hi,
I have maintained all the settings.
But the issue was, I have not put the field "MPN material" (GOITEM-EMATN) as input field in field selection group in Inventory management.( it was in display mode )
Once I have changed to input option, I can able to change the MPN material while GR.
Regards,
Kumar -
Call BAPI_GOODSMVT_CREATE to create a goods receipt for purchase order
Hi,
I'm calling the bapi BAPI_GOODSMVT_CREATE to create a goods receipt for purchase order, but the following code doesn't work. It doesn't give me any kind of error message but it does nothing as well...
Can anyone help me please?
Thank You
Hugo
Code
DATA: wa_goodsmvt_header LIKE bapi2017_gm_head_01,
wa_goodsmvt_code LIKE bapi2017_gm_code,
wa_bapi2017_gm_head TYPE bapi2017_gm_head_ret-mat_doc.
DATA: it_goodsmvt_item LIKE bapi2017_gm_item_create OCCURS 0 WITH HEADER LINE,
it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
wa_goodsmvt_header-pstng_date = SY-DATUM.
wa_goodsmvt_header-doc_date = SY-DATUM.
wa_goodsmvt_header-ref_doc_no = '4500000020'.
wa_goodsmvt_code-gm_code = '01'. "Goods receipt for purchase Order
it_goodsmvt_item-stge_loc = 'BPF2'.
it_goodsmvt_item-move_type = '101' .
it_goodsmvt_item-entry_qnt = 17.
it_goodsmvt_item-entry_uom = 'KG'.
it_goodsmvt_item-mvt_ind = 'B'.
it_goodsmvt_item-po_number = '4500000020'.
it_goodsmvt_item-po_item = '00010'.
it_goodsmvt_item-material = '50'.
APPEND it_goodsmvt_item.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = wa_goodsmvt_header
goodsmvt_code = wa_goodsmvt_code
IMPORTING
materialdocument = wa_bapi2017_gm_head
TABLES
goodsmvt_item = it_goodsmvt_item
return = it_return.
data: begin of errmsg occurs 10.
include structure bapiret2.
data: end of errmsg.
data: wmenge like iseg-menge,
errflag.
clear errflag.
loop at errmsg.
if errmsg-type eq 'E'.
write:/'Error in function', errmsg-message.
errflag = 'X'.
else.
write:/ errmsg-message.
endif.
endloop.
if errflag is initial.
commit work and wait.
if sy-subrc ne 0.
write:/ 'Error in updating'.
exit.
else.
write:/ 'Ok'.
endif.
endif.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = ' '.Hi,
Thank you for the asnwer! I'm a rookie at ABAP so please forgive my stupid questions
I've changed the code to:
DATA: wa_goodsmvt_header LIKE bapi2017_gm_head_01,
wa_goodsmvt_code LIKE bapi2017_gm_code,
wa_bapi2017_gm_head TYPE bapi2017_gm_head_ret-mat_doc.
DATA: it_goodsmvt_item LIKE bapi2017_gm_item_create OCCURS 0 WITH HEADER LINE,
it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
wa_goodsmvt_header-pstng_date = SY-DATUM.
wa_goodsmvt_header-doc_date = SY-DATUM.
wa_goodsmvt_header-ref_doc_no = '4500000020'.
wa_goodsmvt_code-gm_code = '01'. "Goods receipt for purchase Order
it_goodsmvt_item-plant = 'BP01'.
it_goodsmvt_item-stge_loc = 'BPF2'.
it_goodsmvt_item-move_type = '101' .
it_goodsmvt_item-entry_qnt = 10.
it_goodsmvt_item-entry_uom = 'KG'.
it_goodsmvt_item-mvt_ind = 'B'.
it_goodsmvt_item-po_number = '4500000020'.
it_goodsmvt_item-po_item = '10'.
it_goodsmvt_item-material = '50'.
APPEND it_goodsmvt_item.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = wa_goodsmvt_header
goodsmvt_code = wa_goodsmvt_code
IMPORTING
materialdocument = wa_bapi2017_gm_head
TABLES
goodsmvt_item = it_goodsmvt_item
return = it_return.
write:/ it_return-message.
And the return message is : Material document data and PO data do not match (Material)
Any idea of what might be the problem?
Thanks -
Goods receipt for subcontracting order! BAPI_GOODSMVT_CREATE
I wanna use BAPI "BAPI_GOODSMVT_CREATE" to create goods receipt for subcontracting order.
But it says that this combination is not possible. Combination of my movement type and this BAPI.
What can i do to solve it?
thanks in advance.>
Julia Nikiforva wrote:
> I wanna use BAPI "BAPI_GOODSMVT_CREATE" to create goods receipt for subcontracting order.
> But it says that this combination is not possible. Combination of my movement type and this BAPI.
>
> What can i do to solve it?
>
> thanks in advance.
Might work
report zbapi_goodsmovement.
parameters: p-file like rlgrap-filename default
'c:\sapdata\TEST.txt'.
parameters: e-file like rlgrap-filename default
'c:\sapdata\gdsmvterror.txt'.
parameters: xpost like sy-datum default sy-datum.
data: begin of gmhead.
include structure bapi2017_gm_head_01.
data: end of gmhead.
data: begin of gmcode.
include structure bapi2017_gm_code.
data: end of gmcode.
data: begin of mthead.
include structure bapi2017_gm_head_ret.
data: end of mthead.
data: begin of itab occurs 100.
include structure bapi2017_gm_item_create.
data: end of itab.
data: begin of errmsg occurs 10.
include structure bapiret2.
data: end of errmsg.
data: wmenge like iseg-menge,
errflag.
data: begin of pcitab occurs 100,
ext_doc(10), "External Document Number
mvt_type(3), "Movement Type
doc_date(8), "Document Date
post_date(8), "Posting Date
plant(4), "Plant
material(18), "Material Number
qty(13), "Quantity
recv_loc(4), "Receiving Location
issue_loc(4), "Issuing Location
pur_doc(10), "Purchase Document No
po_item(3), "Purchase Document Item No
del_no(10), "Delivery Purchase Order Number
del_item(3), "Delivery Item
prod_doc(10), "Production Document No
scrap_reason(10), "Scrap Reason
upd_sta(1), "Update Status
end of pcitab.
call function 'WS_UPLOAD'
exporting
filename = p-file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
gmhead-pstng_date = sy-datum.
gmhead-doc_date = sy-datum.
gmhead-pr_uname = sy-uname.
gmcode-gm_code = '01'. "01 - MB01 - Goods Receipts for Purchase Order
loop at pcitab.
itab-move_type = pcitab-mvt_type.
itab-mvt_ind = 'B'.
itab-plant = pcitab-plant.
itab-material = pcitab-material.
itab-entry_qnt = pcitab-qty.
itab-move_stloc = pcitab-recv_loc.
itab-stge_loc = pcitab-issue_loc.
itab-po_number = pcitab-pur_doc.
itab-po_item = pcitab-po_item.
concatenate pcitab-del_no pcitab-del_item into itab-item_text.
itab-move_reas = pcitab-scrap_reason.
append itab.
endloop.
loop at itab.
write:/ itab-material, itab-plant, itab-stge_loc,
itab-move_type, itab-entry_qnt, itab-entry_uom,
itab-entry_uom_iso, itab-po_number, itab-po_item,
pcitab-ext_doc.
endloop.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gmhead
goodsmvt_code = gmcode
TESTRUN = ' '
IMPORTING
goodsmvt_headret = mthead
MATERIALDOCUMENT =
MATDOCUMENTYEAR =
tables
goodsmvt_item = itab
GOODSMVT_SERIALNUMBER =
return = errmsg
clear errflag.
loop at errmsg.
if errmsg-type eq 'E'.
write:/'Error in function', errmsg-message.
errflag = 'X'.
else.
write:/ errmsg-message.
endif.
endloop.
if errflag is initial.
commit work and wait.
if sy-subrc ne 0.
write:/ 'Error in updating'.
exit.
else.
write:/ mthead-mat_doc, mthead-doc_year.
perform upd_sta.
endif.
endif.
FORM UPD_STA *
form upd_sta.
loop at pcitab.
pcitab-upd_sta = 'X'.
modify pcitab.
endloop.
call function 'WS_DOWNLOAD'
exporting
filename = p-file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
endform. -
Goods Receipts for Purchase Order using BAPI_GOODSMVT_CREAT
Hi experts,
I am working on the a program where am generating Goods Receipts for Purchase Order. the BAPI_GOODSMVT_CREAT returns an error saying "Material 6003022 not maintained in plant 1001"
Can any one assist? is there a field I may be missing?
Here is a sample code.
DATA: gm_header TYPE bapi2017_gm_head_01.
DATA: gm_code TYPE bapi2017_gm_code.
DATA: gm_headret TYPE bapi2017_gm_head_ret.
DATA: gm_item TYPE TABLE OF bapi2017_gm_item_create WITH HEADER LINE.
DATA: gm_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: gm_retmtd TYPE bapi2017_gm_head_ret-mat_doc.
CLEAR: gm_return, gm_retmtd.
REFRESH gm_return.
Setup BAPI header
"data
gm_header-pstng_date = sy-datum.
gm_header-doc_date = sy-datum.
gm_code-gm_code = '02'.
" MB1A * Write 971 movement to table CLEAR GM_ITEM.
MOVE '101' TO gm_item-move_type .
" MOVE 'Q' TO GM_ITEM-SPEC_STOCK.
MOVE '6003022' TO gm_item-material.
MOVE '10' TO gm_item-entry_qnt.
MOVE 'EA' TO gm_item-entry_uom.
MOVE '1001' TO gm_item-plant.
MOVE '' TO gm_item-stge_loc.
MOVE '0901' TO gm_item-move_reas.
" MOVE '4500006877' TO GM_ITEM-WBS_ELEM.
" MOVE '0020' TO GM_ITEM-VAL_WBS_ELEM.
MOVE '0020' TO gm_item-deliv_numb.
MOVE '4500006881' TO gm_item-po_number.
MOVE '0010' TO gm_item-po_item.
APPEND gm_item.
Call goods movement BAPI
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gm_header
goodsmvt_code = gm_code
IMPORTING
goodsmvt_headret = gm_headret
materialdocument = gm_retmtd
TABLES
goodsmvt_item = gm_item
return = gm_return.
IF NOT gm_retmtd IS INITIAL.
COMMIT WORK AND WAIT.
CALL FUNCTION 'DEQUEUE_ALL'.
ELSE.
COMMIT WORK AND WAIT.
CALL FUNCTION 'DEQUEUE_ALL'.
ENDIF.>
Spark842 wrote:
> Hi experts,
> I am working on the a program where am generating Goods Receipts for Purchase Order. the BAPI_GOODSMVT_CREAT returns an error saying "Material 6003022 not maintained in plant 1001"
> Can any one assist? is there a field I may be missing?
>
> Here is a sample code.
>
> DATA: gm_header TYPE bapi2017_gm_head_01.
> DATA: gm_code TYPE bapi2017_gm_code.
> DATA: gm_headret TYPE bapi2017_gm_head_ret.
> DATA: gm_item TYPE TABLE OF bapi2017_gm_item_create WITH HEADER LINE.
> DATA: gm_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE.
> DATA: gm_retmtd TYPE bapi2017_gm_head_ret-mat_doc.
> CLEAR: gm_return, gm_retmtd.
> REFRESH gm_return.
> * Setup BAPI header
> "data
> gm_header-pstng_date = sy-datum.
> gm_header-doc_date = sy-datum.
> gm_code-gm_code = '02'.
>
>
> " MB1A * Write 971 movement to table CLEAR GM_ITEM.
> MOVE '101' TO gm_item-move_type .
> " MOVE 'Q' TO GM_ITEM-SPEC_STOCK.
> MOVE '6003022' TO gm_item-material.
> MOVE '10' TO gm_item-entry_qnt.
> MOVE 'EA' TO gm_item-entry_uom.
> MOVE '1001' TO gm_item-plant.
> MOVE '' TO gm_item-stge_loc.
> MOVE '0901' TO gm_item-move_reas.
> " MOVE '4500006877' TO GM_ITEM-WBS_ELEM.
> " MOVE '0020' TO GM_ITEM-VAL_WBS_ELEM.
> MOVE '0020' TO gm_item-deliv_numb.
> MOVE '4500006881' TO gm_item-po_number.
> MOVE '0010' TO gm_item-po_item.
> APPEND gm_item.
>
> * Call goods movement BAPI
>
> CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
> EXPORTING
> goodsmvt_header = gm_header
> goodsmvt_code = gm_code
> IMPORTING
> goodsmvt_headret = gm_headret
> materialdocument = gm_retmtd
> TABLES
> goodsmvt_item = gm_item
> return = gm_return.
>
> IF NOT gm_retmtd IS INITIAL.
>
> COMMIT WORK AND WAIT.
> CALL FUNCTION 'DEQUEUE_ALL'.
> ELSE.
> COMMIT WORK AND WAIT.
>
> CALL FUNCTION 'DEQUEUE_ALL'.
> ENDIF.
My guess, is that this material is not really maintained in the Plant '1001', to be on the safer side, get the exact values from EKPO itself, also check if this material exists in the table MARC for the plant and storage location.
MOVE '1001' TO gm_item-plant. "<< Hard coded
MOVE '' TO gm_item-stge_loc.
Replace the above hardcodes to something like this to get the actual value from EKPO.
select werks lgort into (gm_item-plant, gm_item-stge_loc) from ekpo
where ebeln = gm_item-po_number
and ebelp = gm_item-po_item. -
Goods Receipt for PO using BAPI
Hello,
I need to do a goods receipt for a purchase order using bapi_goodsmvt_create for movement type 101. My function module does not return the material document number. Can someone help me with my code?
Thanks,
A.P.
FUNCTION Z_GR_BAPI.
""Local interface:
*" IMPORTING
*" REFERENCE(I_CODE) TYPE GM_CODE
*" REFERENCE(I_MOVE_TYPE) TYPE CHAR3
*" REFERENCE(I_EKKO) TYPE EKKO
*" EXPORTING
*" REFERENCE(E_DOCUMENT) TYPE BAPI2017_GM_HEAD_RET-MAT_DOC
*" REFERENCE(E_RETURN) TYPE BAPIRET2
*" TABLES
*" T_EKPO STRUCTURE EKPO
Structures for BAPI
data: gm_header type bapi2017_gm_head_01.
data: gm_code type bapi2017_gm_code.
data: gm_headret type bapi2017_gm_head_ret.
data: gm_item type table of
bapi2017_gm_item_create with header line.
data: gm_return type bapiret2 occurs 0.
data: gm_retmtd type bapi2017_gm_head_ret-mat_doc.
data: x_ekpo type table of ekpo with header line.
x_ekpo[] = t_ekpo[].
clear: gm_return, gm_retmtd.
refresh gm_return.
gm_code-gm_code = i_code.
gm_header-pstng_date = sy-datum.
gm_header-doc_date = sy-datum.
gm_header-pr_uname = sy-uname.
loop at x_ekpo.
gm_item-material = x_ekpo-matnr.
gm_item-plant = x_ekpo-werks.
gm_item-stge_loc = x_ekpo-lgort.
gm_item-move_type = i_move_type.
gm_item-mvt_ind = 'B'.
gm_item-stck_type = space.
gm_item-entry_qnt = x_ekpo-menge.
gm_item-entry_uom = x_ekpo-meins.
append gm_item.
endloop.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = gm_header
GOODSMVT_CODE = gm_code
TESTRUN = ' '
IMPORTING
GOODSMVT_HEADRET = gm_headret
MATERIALDOCUMENT = gm_retmtd
MATDOCUMENTYEAR =
TABLES
GOODSMVT_ITEM = gm_item
GOODSMVT_SERIALNUMBER =
RETURN = gm_return.
e_document = gm_retmtd.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
IMPORTING
RETURN =
ENDFUNCTION.Hi,
This piece of code may be helpful.
Structures for BAPI
data: gm_header type bapi2017_gm_head_01.
data: gm_code type bapi2017_gm_code.
data: gm_headret type bapi2017_gm_head_ret.
data: gm_item type table of
bapi2017_gm_item_create with header line.
data: gm_return type bapiret2 occurs 0.
data: gm_retmtd type bapi2017_gm_head_ret-mat_doc.
clear: gm_return, gm_retmtd. refresh gm_return.
Setup BAPI header data.
gm_header-pstng_date = sy-datum.
gm_header-doc_date = sy-datum.
gm_code-gm_code = '06'. " MB11
Write 551 movement to table
clear gm_item.
move '551' to gm_item-move_type .
move '000000000040001234' to gm_item-material.
move '1' to gm_item-entry_qnt.
move 'EA' to gm_item-entry_uom.
move '0004' to gm_item-plant.
move '4000' to gm_item-stge_loc.
move '201' to gm_item-move_reas.
Determine cost center per plant
case xresb-werks.
when '0004'.
move '0000041430' to gm_item-costcenter.
when '0006'.
move '0000041630' to gm_item-costcenter.
when '0007'.
move '0000041731' to gm_item-costcenter.
when '0008'.
move '0000041830' to gm_item-costcenter.
endcase.
append gm_item.
Call goods movement BAPI
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gm_header
goodsmvt_code = gm_code
importing
goodsmvt_headret = gm_headret
materialdocument = gm_retmtd
tables
goodsmvt_item = gm_item
return = gm_return.
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
regards,
keerthi. -
How to pass MIRO for imported material
Dear all
HI
i want to make a miro for imported material
all the custom,cvd,cess,frw charges etc were alredy paid by clearing agent
i want to pass miro for that agent
material supplier vendor is diffrent one i want to pass miro for it also
ple tell me the procedure for MIRO
thanks
prakashDear Prakash,
While Creating Import PO, u have to maintain the Condition for clearing agent. Go for the Item detail -> condition tab,select condition one by one for which u want to pay amount to clearing agent like condition custom,cvd,cess,Freight,etc, go for detail icon and maintain the vendor (Clearing agent) .
After Receipt of goods,while making Miro, for Clearing agent ,select Planned delivery cost at right side and select Purchase order no.it shows all the condition amount for clearing agent.clear the amount by posting MIRO.
and for main vendor make the Miro by normal process ,it shows only basic amount and condition amont for which u did not maintain vendor(Clearing agent) at condition detail tab.
This is the right process,I was allready work by this way.
Rewards.....
Regards
Sanjay L
Maybe you are looking for
-
Error message while creating a structure
Hello Friends I am trying to create a simple structure using Tr.Code.SE11. In the second TAB Components I have entered the following info Component = BUSINESS_PARTNER Component Type = KUNN2 Short Description Column automatically got filled up with "C
-
How to make a pause between an Alert and a plateformRequest ?
Hello, I' programming a class which realize a download from an URL called downloadURL. An overview of my code is : public class SoundDownloader implements CommandListener{ private Alert downloadAlert2; private String downloa
-
On starting BI Server Report is showing 0 Result
I have facing a strange problem.One report is showing 0 Result on starting server,checked back end query,it shows it is hitting some other fact,tht'why measure is not found and cast Null as 0 is happening. Strange thing is when I pull some other colu
-
I know this is basic but I am lost
I have not used DVDSP in a while (I am using DVDSP-4) so I am a bit fuzzy. I have created the project and set the first play to menu-1. When I play the simulator it plays the first play but at the end of the first play does not jump to my main menu i
-
Why has the Tecra M11-11M only got the 32-bit version of Windows 7?
Why has the Tecra M11-11M only got the 32-bit version of windows 7 and not the 64-bit? Surely the i7 and 4gb can cope with the demands and the 64-bit version would allow more efficient use of the computing power. Many thanks,