MB_CREATE_GOODS_MOVEMENT and BAPI_GOODSMVT_CREATE
Hello all,
Ive been asked to modify a program to create inspection lots. The change involved adding a prompt to supply the serial numbers for the parts to be moved to inspection.
Previously it was using MB_CREATE_GOODS_MOVEMENT but try as I may, there appeared to be no means of adding the serial numbers. There is a flag for automaticly generating serial numbers but this would not work (The items already have serial numbers anyway.....the user identifies them)
So I substituted MB_CREATE_GOODS_MOVEMENT with BAPI_GOODSMVT_CREATE and added a table of serial numbers. This worked, giving the mesages Id expect if the user entered an invalid number or one that had already been assigned.
Document numbers produced and the BAPI works.
However, the next step of the program uses 'QPL1_LOT_GET_BY_TABIX_NO' to get the insprecton lot number from memory. I can only assume that this number is written by MB_CREATE_GOODS_MOVEMENT because I find no reference anywhere else.
The BAPI does not seem to do this even though MB_CREATE_GOODS_MOVEMENT is part of its code (the mysteries of SAP!)
The CTCOD (txn code) in the FM was 'MB11' and Ive used '06' as the movement code in the BAPI.
Nothing is going to post without the inspection lot number. Can anyone tell me how this number is generated (and why is it written to memory?)
Many thanks in advance
This is the code I used to resolve the issue. This code AFTER the BAPI_GOODSMVT_CREATE
1) Create a lot number
2) Write it to memory (I dont know why it has to do this)
3) Extract from memory.
CALL FUNCTION 'QPL1_INITIALIZE'
EXPORTING
i_lot_data_only = 'X'.
DATA: wa_qals_imp TYPE qals,
wa_rmqed_imp TYPE rmqed,
lv_qplos TYPE qplos,
wa_qals TYPE qals,
lv_subrc TYPE sy-subrc.
CLEAR: wa_qals_imp, wa_rmqed_imp, lv_qplos, wa_qals, lv_subrc.
wa_qals_imp-mandant = sy-mandt.
wa_qals_imp-werk = l_imseg-werks.
wa_qals_imp-werkvorg = l_imseg-werks.
wa_qals_imp-matnr = l_imseg-matnr.
wa_qals_imp-lifnr = l_imseg-lifnr.
wa_qals_imp-art = 'XXXXXX'. "This should be in table QMAT...See below
wa_qals_imp-ebeln = g_imp_ebeln.
wa_qals_imp-ebelp = g_imp_ebelp.
wa_qals_imp-charg = viqmel-charg.
wa_qals_imp-herkunft = '08'. "01
wa_qals_imp-stat01 = 'X'.
wa_qals_imp-losmenge = viqmel-rkmng.
wa_qals_imp-mengeneinh = 'EA'.
MOVE '01' TO wa_rmqed_imp-dbs_steuer.
MOVE 'X' TO wa_rmqed_imp-dbs_flag.
MOVE 'X' TO wa_rmqed_imp-dbs_nochg.
MOVE 'X' TO wa_rmqed_imp-dbs_nowrn.
MOVE ' ' TO wa_rmqed_imp-dbs_noerr.
Create a Lot number
CALL FUNCTION 'QPL1_INSPECTION_LOT_CREATE'
EXPORTING
qals_imp = wa_qals_imp
rmqed_imp = wa_rmqed_imp
IMPORTING
e_prueflos = lv_qplos
e_qals = wa_qals_imp
subrc = lv_subrc.
If a lot number has been created then lv_subrc will be < 8
IF lv_subrc LT 8.
CALL FUNCTION 'QPL1_UPDATE_MEMORY'
EXPORTING
i_qals = wa_qals_imp
i_updkz = 'I'.
ENDIF.
get insp. lot number
CALL FUNCTION 'QPL1_LOT_GET_BY_TABIX_NO'
EXPORTING
i_tabix = '1'
IMPORTING
e_qals = g_qals
EXCEPTIONS
x_no_entry_in_memory = 1
x_tabix_too_small = 2
x_tabix_too_big = 3
OTHERS = 4.
IF sy-subrc = 0.
IF ( g_qals-matnr = viqmel-matnr )
AND ( g_qals-werk = viqmel-mawerk ).
g_notification_not_saved = c_kreuz.
MOVE g_qals-objnr TO g_insplot_objnr.
MOVE g_qals-prueflos TO viqmel-prueflos.
MOVE g_qals-prueflos TO e_qnqmaqmel0-prueflos.
ENDIF.
ELSE.
MESSAGE i162(qm).
RAISE action_stopped.
ENDIF.
*wa_qals_imp-art
This is the inspection type (ART) you get from table QMAT.
Took a while to get this solution working and I know a number of people looking for an answer to this......Hope it helps.
Similar Messages
-
Batch determination and BAPI_GOODSMVT_CREATE
Hi experts!
I'm new to batch determination and I'm facing an issue. I've set up a batch determination configuration and it works fine when I post a goods movement in dialog process (MB11) entering * in the batch field.
Now I'm trying to do the same with BAPI_GOODSMVT_CREATE, but if I enter * in the batch parameter I get an error message M7116: "The storage location/batch function * is not defined here". If I leave it blank i get the error message "Enter batch".
Hope somebody has any clue.
Thanks
Fabio ScaravelliHi Fabio,
I'm facing the same problem. Did you get a solution to this problem? Please let me know.
Thanks. -
Movement type 701 and BAPI_GOODSMVT_CREATE
Hi all,
I am workling on a interface with IDOC MBGMCR02 that uses BAPI_GOODSMVT_CREATE. The problem I have is that I can't find the right GM_CODE for movement types 701 and 702. I have tried all of them but I get an error "Goods movement not possible with mvmt type 701". I know it is possible to use this BAPI for this movement type, but I don't know how to do it, is there any special treatment? any ideas?
Thanks for your help.These are physical inventory movement types. Are you sure you were able to use this BAPI directly? The following BAPIs work with physical inventory movements
BAPI_MATPHYSINV_CHANGECOUNT
BAPI_MATPHYSINV_COUNT
BAPI_MATPHYSINV_CREATE
BAPI_MATPHYSINV_CREATE_MULT
BAPI_MATPHYSINV_GETDETAIL
BAPI_MATPHYSINV_GETITEMS
BAPI_MATPHYSINV_GETLIST
BAPI_MATPHYSINV_POSTDIFF
The following IDoc types are for the same.
MATERIALPHYSINV_COUNT01 Enter Inventory Count (MaterialPhysInv)
MATERIALPHYSINV_CREATEMULTIP01 Create physical inventory document
MATERIALPHYSINV_POSTDIFFEREN01 Post Differences (MaterialPhysInv)
And the message types are
MATERIALPHYSINV_COUNT Enter Inventory Count (MaterialPhysInv)
MATERIALPHYSINV_CREATEMULTIPLE Create Physical Inventory Document
MATERIALPHYSINV_POSTDIFFERENCE Post Differences (MaterialPhysInv) -
Inbound delivery and BAPI_GOODSMVT_CREATE
Hi experts,
If I know PO#, I can call BAPI_GOODSMVT_CREATE to post GR.
Now I know inbound delivery only, how to call BAPI_GOODSMVT_CREATE?
Thanks in advance!Hello Vinod
I have the same kind of requirement, for me i am having PO number and i need to get the inbound delivery number from SAP for that PO and substitute the PO number with that inbound delivery document number and create a IDOC. i have copied the FM into 'ZIDOC_INPUT_MBGMCR' and wrote a code to get the inbound delivery document number and done the mapping to the item segment PO field also. IDOC is geting created but that PO number only is displaying in the IDOC, so please suggest me how to change the PO field value in the idoc segments and create a idoc.
Regards
Sree -
Hi Friends,
I need to create a goods receipt for an inbound delivery.
Iam planning to use either MB_CREATE_GOODS_MOVEMENT or BAPI_GOODSMVT_CREATE.
But every time iam getting the error saying that the 101 movement type cant be used.
In my case i need to use both the movement types 101 and 543.
Basically i need to populate both the main item and component material information.
If any one has done this, Can you please give me the sample code.
Regards
SasiHi,
Iam usig the gm_code as 05.
I am paasing the movement indicator ,in that particular field.
lw_goodsmvt_item-material = lw_imseg-matnr.
lw_goodsmvt_item-plant = lw_imseg-werks.
lw_goodsmvt_item-batch = lw_imseg-charg.
IF lw_imseg-sgtxt = 'F'.
lw_goodsmvt_item-move_type = '101'.
lw_goodsmvt_item-mvt_ind = 'B'.
lw_goodsmvt_item-NO_MORE_GR = 1.
lw_goodsmvt_item-stge_loc = lw_imseg-lgort.
ELSEIF lw_imseg-sgtxt = 'C'.
lw_goodsmvt_item-move_type = '543'.
endif.
lw_goodsmvt_item-entry_qnt = lw_imseg-erfmg.
lw_goodsmvt_item-entry_uom = lw_imseg-erfme.
lw_goodsmvt_item-expirydate = lw_imseg-mhdat.
lw_goodsmvt_item-DELIV_NUMB =
lw_goodsmvt_item-DELIV_ITEM =
am i doing something wrong here.
iam gettign the following error message
Goods movement not possible with mvmt type 101
Goods movement not possible with mvmt type 543 -
Parameters for Yield and Scrap quantities in BAPI MB_CREATE_GOODS_MOVEMENT
Hi All,
I am using BAPI MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT to carry out the confirmation and Unplanned Goods Reciept.
Which parameters in MB_CREATE_GOODS_MOVEMENT i have to use for passing Yield and Scrap quantities.
And from which table i can fetch the Material for the Order? Can i use AFKO for the material number.
Please give some inputs on how to use these Function Modules.
Can i use only MB_CREATE_GOODS_MOVEMENT for the confirmation.
Thanks,
Anil.Hi,
I presume you are referring to production order confirmation. Refer these:
BAPI_PRODORDCONF_CREATE_ACT Enter activity confirmation
BAPI_PRODORDCONF_CREATE_HDR Enter Order Confirmations
BAPI_PRODORDCONF_CREATE_TE Enter Time Event Confirmation
BAPI_PRODORDCONF_CREATE_TT Enter Time Ticket Confirmation
Regards -
Help in BAPI_GOODSMVT_CREATE
Hi frnds,
I m facing problem while calling bapi BAPI_GOODSMVT_CREATE in my badi , i m passing all the required parameter, and after that perform commit operation,
but it is giving error message as follows,
The function module MB_CREATE_GOODS_MOVEMENT is called up for the
second time. After it was called up the first time, the function
module MB_POST_GOODS_MOVEMENT was called, but a COMMIT WORK was not
carried out in the calling program.
As running the two function modules again would result in the
database being incorrectly updated, processing is terminated.
System Response Procedure Please ensure that a COMMIT WORK is set
after you call up the function module MB_POST_GOODS_MOVEMENT.
Thanks and Regards,
Mahesh.Hi,
iF you are working for IS-OIL Reqirement there is no BAPI will work as per OSS note 607156.
Please go thru
17.02.2007 Page 1 of 4
SAP Note Number 607156
Goods movements in IS OIL: MB_CREATE_GOODS_MOVEMENT
Note Language: English Version: 3 Validity: Valid from 23.01.2006
Summary
Symptom
WARNING: This is an IS-OIL / IS-MINE-specific note. If you DON'T *
have IS-OIL / IS-MINE installed on your system, this note does *
not apply to you. If this note is applied and you do not have *
IS-OIL / IS-MINE installed, you could cause serious damage to *
your system. *
This note provides information on how function module
MB_CREATE_GOODS_MOVEMENT is used in IS-Oil systems in conjunction with
IS-Oil materials (that is, those materials that carry a UoM group in the
oil-specific view in the material master data, MARA-CMETH = 1 or 2).
A ) In general, in the case of goods movements for IS-Oil materials, the
additional quantities for these materials must be posted in parallel for
every goods movement. The additional stock levels must also be updated
using these quantity values.
There are two possible ways to do this:
a) The additional quantities and parameters are passed to
function module MB_CREATE_GOODS_MOVEMENT through the following IS-Oil
specific table parameters:
T_MS1INT STRUCTURE MSEGO1 OPTIONAL
T_MS2INT STRUCTURE MSEGO2 OPTIONAL
b) The additional quantities are CALCULATED and posted through function
module
MB_CREATE_GOODS_MOVEMENT and processed using the default parameters
that are determined for each line item that contains an IS-Oil material.
In general, SAP does NOT support the second way (b) for calling function
module MB_CREATE_GOODS_MOVEMENT. In the past there have been some
exceptions to this to ensure seamless integration of important
business processes used in the oil & gas industry.
With 4.6C Service Pack 2, these exceptions are delivered as entries
in an SAP table:
Table TOIBCALC_INTRN is delivered with 8 entries that enable
posting of IS-Oil material movements through function module
MB_CREATE_GOODS_MOVEMENT, without passing the additional quantities
(and parameters) through the interface of MB_CREATE_GOODS_MOVEMENT.
The entries delivered with table TOIBCALC_INTRN are:
PROG1 EVENT1 PROG2 EVENT2
RM06ELLB POST_GOODS_ISSUE RM06ELLB ATUSER-COMMAND
SAPLCOCI COCI_CONFIRM_MATERIAL_CONS
SAPLCOCI COCI_CONFIRM_MATERIAL_PROD
SAPLCOFW CO_FW_GOODS_MOVEMENTS_BY_AFFW
17.02.2007 Page 2 of 4
SAP Note Number 607156
Goods movements in IS OIL: MB_CREATE_GOODS_MOVEMENT
SAPLCORF CO_RU_GOODS_MOVEMENT
SAPLWPUE POS_SALES_DOCUMENT_PROCESS
SAPLWPUE POS_SALES_TURNOVER_PROCESS
SAPMQEVA BUCHE_BESTAENDE
NOCALC BLTIME_SET
D X
D X
D X
D X
D X
X X
X X
D X
The call stack of a calling program is analyzed (PROG1, EVENT1, PROG2,
EVENT2) and if it is found in the table as a valid entry, the
additional quantities are calculated, either in the background
(NOCALC = X) or whereby the classic dialog box appears on the screen
(NOCALC = D). The posting time is either left unchanged
(BLTIME_SET = INITIAL) or determined based on the logic that can be
found in include OI_LMBWLFOI_HPM (BLTIME_SET = X).
B) SAP core BAPI using function module MB_CREATE_GOODS_MOVEMENT:
SAP has - so far - not enhanced all core BAPIs to enable the processing
of additional industry solution specific (IS-OIL) data fields.
(see SAP Note 365386 for important details).
However, due to the fact that some core BAPIs use function module
MB_CREATE_GOODS_MOVEMENT from different calling applilcations, the
customer may observe that with one BAPI, postings for IS-Oil materials
are possible, yet with another BAPI, the postings are rejected.
Example:
You can execute the BAPI BAPI_PRODORDCONF_CREATE_HDR using an IS-Oil
material but not BAPI BAPI_GOODSMVT_CREATE.
Since BAPI BAPI_PRODORDCONF_CREATE_HDR calls function module
CO_RU_GOODS_MOVEMENT, which is contained in table TOIBCALC_INTRN,
the posting is based on the default data and additional quantities
are calculated. In this case, you have to set the conversion mode to
'Background', otherwise a 'Dynpro not found' error causes a short dump
(because the entry MOCALC is set to 'D' for dialog).
As a result of this, the system has been designed to run as it does. In
general, customers are advised to proceed as outlined in SAP Note 365386.
On a case by case basis, customers can use table TOIBCALC_INTRN
and either remove, change, or add entries to achieve consistent
system behavior.
17.02.2007 Page 3 of 4
SAP Note Number 607156
Goods movements in IS OIL: MB_CREATE_GOODS_MOVEMENT
With note 736980, the announcement of a new BAPI GoodsMovementOil is made, and
new BAPI methods are delivered which enable goods movement postings for IS-OIL
materials.
More Terms
o General keywords: add-on, IS-Oil, industry solution,...
o Problem-specific key words: BAPI, HPM, QCI, additional quantities
Cause and Prerequisites
Solution
Although it is possible to post goods movements for IS-Oil materials (as
above), SAP does not currently support any core
BAPIs for posting goods movements with IS-Oil materials.
Calculating additional quantities in the background is not seen as a
a general solution.
On a case by case basis, customers can use table TOIBCALC_INTRN
and either remove, change, or add entries to achieve consistent
system behavior.
Header Data
Release Status: Released for Customer
Released on: 23.01.2006 13:26:07
Priority: Recommendations/additional info
Category: Consulting
Main Component IS-OIL-DS-HPM Hydrocarbon Product Management
Valid Releases
Software Component Release From
Release
To Release and
Subsequent
IS-OIL 46C 46C 46C
IS-OIL 472 472 472
Related Notes
17.02.2007 Page 4 of 4
SAP Note Number 607156
Goods movements in IS OIL: MB_CREATE_GOODS_MOVEMENT
Number Short Text
870106 IS-OIL TDP LI21 postings from WM to MM
736980 Enhancement of BAPI GoodsMovement for IS OIL
546569 FAQ : HPM - Hydrocarbon Product Management
<b>Reward points</b>
Regards -
BAPI_GOODSMVT_CREATE not working. help me...
Hai,
(Its an user exit. when saving the CO11N this should work).
I am using BAPI_GOODSMVT_CREATE for CO11N transaction for posting the scrap material to the relevant material for MB1C and movement type 531. When i am doing this , i am getting an error saying that "Function module MB_CREATE_GOODS_MOVEMENT cannot be
executed".
Please help me..
thanks.
Ashokin source code of the bapi function module bapi_goodsmvt create ..................u will find MB_CREATE_GOODS_MOVEMENT [ this is again a function module] .........might be the problem is with MB_CREATE_GOODS_MOVEMENT ......
go to se37 open the MB_CREATE_GOODS_MOVEMENT and see weather this function module is active or not................... -
Created PO, Delivery and GI all in one.
Hi
We need to have a process where we create Purchase Order followed by Delivery followed by the Goods Issue all in the background.
(We want to have an IDOC created based on all three of these documents u2013 and if only 1 or 2 are created the and the other fails, the IDOC is hanging and a manual intervention is needed. We want to have everything completely automated)
The thing is that we need to create them in a way that if one of them fail - non gets created. In other words u2013 if a PO and a Delivery were successful but the GI failed everything should roll back and no PO or Delivery created.
Now if you create a PO and do not commit it u2013 when you try to create a delivery in the regular way it fails because it cannot find any of the data it needs in the database.
If you do commit it u2013 you have a PO that you donu2019t want to exist if the delivery fail.
So I needed a way to make the delivery BAPI and the GI FM looked at the data in temporary tables before a commit is done.
To do this tried to use BAPIu2019s BAPI_PO_CREATE1, for the PO, BAPI_DELIVERYPROCESSING_EXEC for the Delivery, and FM SD_DELIVERY_UPDATE_PICKING for the GI.
I have put them all in a Function Module that I call in Update Task (To create the temporary tables to work from).
The problem I run into is that SD_DELIVERY_UPDATE_PICKING is using FM MB_CREATE_GOODS_MOVEMENT and that FM runs a series of checks in the end and is calling a program with a SUBMIT. (A SUBMIT cannot be used in an update task.), so the whole process does not work.
My question is u2013 whether anyone out there had try to do the same thing successfully u2013 and if yes how?
Is there a way to make it work in the UPDATE TASK FM or maybe a different way to do this altogether?
It seems like a simple process that should not be so difficult u2013 but I am running into a lot of problems trying to make it work.
Any anwers or help would be greatly appreciated.
Thanks
ElonaHi Elona,
I have the very same problem with similar BAPI-sequence. I need to create Purchase Order and after it Goods Movement.
Have you solved that issue somehow ? I'll be very grateful for every help or tip.
Thanks in advance -
Hi,
Can anybody send me some sample code to handle multiple files in application server. My requirement is to create an interface to create PO and GR from the file residing in Application server. Multiple files will be in application server. No selection screens are there. BAPI used are BAPI_PO_CREATE1 and BAPI_GOODSMVT_CREATE. And If anyone has already created this interface, please give me some idea of how to read multiple files and if possible send some sample code.
Any help will be greatly appreciated.
Regards,
NaveenHi Naveen,
Go through this link.
BAPI_PO_CREATE1
Re: Proble in Creating Multiple Item PO using BAPI_PO_CREATE1
BAPI_GOODSMVT_CREATE
http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
http://www.4ap.de/abap/bapi_goodsmvt_create.php
Reward Points For the Helpful.
Regards,
Harini.S -
SD Document Flow is not been Updated
Hi,
I am using MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT to create Goods Movement.
These FMs create the Material Document, but they don't update the Delivery flow.
Manuaaly goods issue is done through VL02N and it updates the document flow.
Note:- Bapi_goodsmvt_create cannot be used as it doesnot support movement types 643 and 644.
Please help.
Regards,
Nitesh.hi , run this fm in a series like
se37 : in menu tool bar ; function module -
> then test ---> test sequence enter your function module in the next sequence enter fm name as bapi_transcation_commit . end run the fm then it may slove the prb
why because data base table are not updated with out using commit work . some times orders created means fm are executed successfully and it generate order number s but those are not avalible in Data Base tables . so please try it once
if your problem is sloved plesae close the thread
Regards
Siva -
Plz tell me What is in the OSS
Hi
plz give me the document that wht is in OSS note
send me the document to
thanks
Message was edited by:
skkHi,
Please go thru
17.02.2007 Page 1 of 4
SAP Note Number 607156
Goods movements in IS OIL: MB_CREATE_GOODS_MOVEMENT
Note Language: English Version: 3 Validity: Valid from 23.01.2006
Summary
Symptom
WARNING: This is an IS-OIL / IS-MINE-specific note. If you DON'T *
have IS-OIL / IS-MINE installed on your system, this note does *
not apply to you. If this note is applied and you do not have *
IS-OIL / IS-MINE installed, you could cause serious damage to *
your system. *
This note provides information on how function module
MB_CREATE_GOODS_MOVEMENT is used in IS-Oil systems in conjunction with
IS-Oil materials (that is, those materials that carry a UoM group in the
oil-specific view in the material master data, MARA-CMETH = 1 or 2).
A ) In general, in the case of goods movements for IS-Oil materials, the
additional quantities for these materials must be posted in parallel for
every goods movement. The additional stock levels must also be updated
using these quantity values.
There are two possible ways to do this:
a) The additional quantities and parameters are passed to
function module MB_CREATE_GOODS_MOVEMENT through the following IS-Oil
specific table parameters:
T_MS1INT STRUCTURE MSEGO1 OPTIONAL
T_MS2INT STRUCTURE MSEGO2 OPTIONAL
b) The additional quantities are CALCULATED and posted through function
module
MB_CREATE_GOODS_MOVEMENT and processed using the default parameters
that are determined for each line item that contains an IS-Oil material.
In general, SAP does NOT support the second way (b) for calling function
module MB_CREATE_GOODS_MOVEMENT. In the past there have been some
exceptions to this to ensure seamless integration of important
business processes used in the oil & gas industry.
With 4.6C Service Pack 2, these exceptions are delivered as entries
in an SAP table:
Table TOIBCALC_INTRN is delivered with 8 entries that enable
posting of IS-Oil material movements through function module
MB_CREATE_GOODS_MOVEMENT, without passing the additional quantities
(and parameters) through the interface of MB_CREATE_GOODS_MOVEMENT.
The entries delivered with table TOIBCALC_INTRN are:
PROG1 EVENT1 PROG2 EVENT2
RM06ELLB POST_GOODS_ISSUE RM06ELLB ATUSER-COMMAND
SAPLCOCI COCI_CONFIRM_MATERIAL_CONS
SAPLCOCI COCI_CONFIRM_MATERIAL_PROD
SAPLCOFW CO_FW_GOODS_MOVEMENTS_BY_AFFW
17.02.2007 Page 2 of 4
SAP Note Number 607156
Goods movements in IS OIL: MB_CREATE_GOODS_MOVEMENT
SAPLCORF CO_RU_GOODS_MOVEMENT
SAPLWPUE POS_SALES_DOCUMENT_PROCESS
SAPLWPUE POS_SALES_TURNOVER_PROCESS
SAPMQEVA BUCHE_BESTAENDE
NOCALC BLTIME_SET
D X
D X
D X
D X
D X
X X
X X
D X
The call stack of a calling program is analyzed (PROG1, EVENT1, PROG2,
EVENT2) and if it is found in the table as a valid entry, the
additional quantities are calculated, either in the background
(NOCALC = X) or whereby the classic dialog box appears on the screen
(NOCALC = D). The posting time is either left unchanged
(BLTIME_SET = INITIAL) or determined based on the logic that can be
found in include OI_LMBWLFOI_HPM (BLTIME_SET = X).
B) SAP core BAPI using function module MB_CREATE_GOODS_MOVEMENT:
SAP has - so far - not enhanced all core BAPIs to enable the processing
of additional industry solution specific (IS-OIL) data fields.
(see SAP Note 365386 for important details).
However, due to the fact that some core BAPIs use function module
MB_CREATE_GOODS_MOVEMENT from different calling applilcations, the
customer may observe that with one BAPI, postings for IS-Oil materials
are possible, yet with another BAPI, the postings are rejected.
Example:
You can execute the BAPI BAPI_PRODORDCONF_CREATE_HDR using an IS-Oil
material but not BAPI BAPI_GOODSMVT_CREATE.
Since BAPI BAPI_PRODORDCONF_CREATE_HDR calls function module
CO_RU_GOODS_MOVEMENT, which is contained in table TOIBCALC_INTRN,
the posting is based on the default data and additional quantities
are calculated. In this case, you have to set the conversion mode to
'Background', otherwise a 'Dynpro not found' error causes a short dump
(because the entry MOCALC is set to 'D' for dialog).
As a result of this, the system has been designed to run as it does. In
general, customers are advised to proceed as outlined in SAP Note 365386.
On a case by case basis, customers can use table TOIBCALC_INTRN
and either remove, change, or add entries to achieve consistent
system behavior.
17.02.2007 Page 3 of 4
SAP Note Number 607156
Goods movements in IS OIL: MB_CREATE_GOODS_MOVEMENT
With note 736980, the announcement of a new BAPI GoodsMovementOil is made, and
new BAPI methods are delivered which enable goods movement postings for IS-OIL
materials.
More Terms
o General keywords: add-on, IS-Oil, industry solution,...
o Problem-specific key words: BAPI, HPM, QCI, additional quantities
Cause and Prerequisites
Solution
Although it is possible to post goods movements for IS-Oil materials (as
above), SAP does not currently support any core
BAPIs for posting goods movements with IS-Oil materials.
Calculating additional quantities in the background is not seen as a
a general solution.
On a case by case basis, customers can use table TOIBCALC_INTRN
and either remove, change, or add entries to achieve consistent
system behavior.
Header Data
Release Status: Released for Customer
Released on: 23.01.2006 13:26:07
Priority: Recommendations/additional info
Category: Consulting
Main Component IS-OIL-DS-HPM Hydrocarbon Product Management
Valid Releases
Software Component Release From
Release
To Release and
Subsequent
IS-OIL 46C 46C 46C
IS-OIL 472 472 472
Related Notes
17.02.2007 Page 4 of 4
SAP Note Number 607156
Goods movements in IS OIL: MB_CREATE_GOODS_MOVEMENT
Number Short Text
870106 IS-OIL TDP LI21 postings from WM to MM
736980 Enhancement of BAPI GoodsMovement for IS OIL
546569 FAQ : HPM - Hydrocarbon Product Management
Regards
Shiva -
Hi,
I am using BAPI 'BAPI_GOODSMVT_CREATE' to create goods receipt.
I want to make goods movement for IS OIL materials - meaning those materials that carry a UoM group in the oil-specific view in the material master data, MARA-CMETH = 1 or 2.
I have read that we can make that happen using function MB_CREATE_GOODS_MOVEMENT through the IS-OIL specific table parameters:
T_MS1INT and T_MS2INT.
I have tried that, but it doesn't work. Does anyone know how to fill out these tables?
Or any other good tips on how to make Goods movement on IS-OIL materials in a report. Batch input on MIGO is not possible.
Best Regards,
Anne M JohannessenWe are using BAPI_GOODSMVT_CREATE_OIL for MARA-MATKL
And BAPI_GOODSMVT_CREATE for Non IS oil material
U can try.
Thanx
Dipak
[email protected] -
Estimated,
I have to make a move between storage location of material that is blocked with status (movement 325). For that I'm trying on the Bapi MB_CREATE_GOODS_MOVEMENT and run with the same parameters as when I review the transaction MIGO_TR, but the structure EMSEG gives me the message number M7096 "Goods movement not possible with mvmt type 325". What could be wrong? and tried doing the Bapi commit, but still gives me error. It also showed the Bapi BAPI_GOODSMVT_CREATE and throws me the same message. Please I am desperate.
Thanks.Hi,
You can't use function module MB_CREATE_GOODS_MOVEMENT for movement 325, since that function module is used for Goods Issue for delivery.
You should use bapi "BAPI_GOODSMVT_CREATE" for this movement 325 instead.
Passing GOODSMVT_CODE = 04 (for Transfer Posting)
The following thread has a sample code of above BAPI, then do adjustment accordingly as per your requirement.
Re: i want to Stock upload with movement 561 and t code is mb1c
Cheers, -
Need help about Post goods movement with refernece to Inbound delivery
Hi All,
I am using FMs MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT and commit to create a goods movement. I am successfully creating the MM doc and also posting.But still the Inbound delivery is open for GR.Is there any other function module or BAPI that creates GR with reference to Inbound delivery and update the document flow?Or is there any parameter in the above FM that sets the inbound delivery.Kindly provide your guidance on the same.
Best Regards,
Sailaja.I used BAPI_GOODSMVT_CREATE and it posted the GR successfully and the document flow was updated also.
You have to use GM_code '01' and give the delivery number / item number w/o PO (if I gave the PO additionally, it also worked).
If still your document flow is not updated then have a look at OSS note 1050944 and check your config.
Maybe you are looking for
-
Is anyone suddenly having trouble using Adobe Digital Editions on a Mac to download library books? I have been using this to load books on to my Nook and suddenly, out of nowhere, everything is downloading to the Finder app. ADE pops up like it alw
-
PM delta changes in ECC 5.0 from 4.6
Hi Can you let me know the functional enhancements / delta changes that has been made by SAP in ECC 5.0 compared to 4.6 version. regards jafffer
-
Hi friends, my requirement is to develop a program which automatically creates InfoRecord and Sourcelist for a given material number, the required input fields for the info record and sourcelist will be brought from other ztables. Now the problem is
-
My new iphone 4S camera is not functioning. When I click the phone icon, the shutter appears. Then the screen only shows the shutter. When I go back to the home screen and click the phone icon again. The photo screen only shows a black screen. T
-
Passing parameter in href to a different Portal page
Hello All, I have requirement where I have a portlet A in portal page 1. Portlet A is a JSP which has a href pointing to the url of a different portal page (page 2) having the portlet B. <a href=".../pls/portal30/url/page/page2 When I click on the li