BAPI for doing MIGO along with capturing excise values.
i am doing good reciept for stock transfer through MB01 through BAPI_GOODSMVT_CREATE . In BAPI_EXCINV_CREATE_FROMDATA there is no code AVAILABLE as this bapi is not released . HOW TO GET CODE FOR IT
how to do this with bapi only TO UPDATE EXCISE INV VALUES IN GOOD RECIEPT DOCUMENT
Edited by: deepika jain on Mar 11, 2010 8:59 AM
Hi,
Here is the code for the FM and Country India Version:
FUNCTION BAPI_EXCINV_CREATE_FROMDATA .
""Local interface:
*" IMPORTING
*" VALUE(OBJ_HEADER) LIKE BAPI_J_1IEXCHDR STRUCTURE
*" BAPI_J_1IEXCHDR
*" VALUE(PROCESS_FLAG) LIKE BAPI_J_1IEXCHDR-REF_INDICATOR
*" TABLES
*" OBJ_ITEM STRUCTURE BAPI_J_1IEXCDTL
*" RETURN STRUCTURE BAPIRET2
ENHANCEMENT-POINT BAPI_EXCINV_CREATE_FROMDATA_G8 SPOTS ES_SAPLJ1IBAPI STATIC.
$$-Start: BAPI_EXCINV_CREATE_FROMDATA_G8----
$$
ENHANCEMENT 5 MGV_GENERATED_SAPLJ1IBAPI. "active version
DATA: T_MGV_FNAMES1 LIKE MGVBAPIFNAMES OCCURS 0 WITH HEADER LINE.
ENDENHANCEMENT.
$$-End: BAPI_EXCINV_CREATE_FROMDATA_G8----
$$
ENHANCEMENT-POINT BAPI_EXCINV_CREATE_FROMDATA_G6 SPOTS ES_SAPLJ1IBAPI.
$$-Start: BAPI_EXCINV_CREATE_FROMDATA_G6----
$$
ENHANCEMENT 1 MGV_GENERATED_SAPLJ1IBAPI. "active version
*{BAPI Begin} generation http://intranet.sap.com/materialversion
*Do not change coding between begin and end comments. ANI 20050118
T_MGV_FNAMES1-INT = 'MATERIAL'.
T_MGV_FNAMES1-EXT = 'MATERIAL_EXTERNAL'.
T_MGV_FNAMES1-VERS = 'MATERIAL_VERSION'.
T_MGV_FNAMES1-GUID = 'MATERIAL_GUID'.
APPEND T_MGV_FNAMES1.
CALL FUNCTION 'MATNR_BAPI_TABLES_CONVERSION'
EXPORTING
INT_TO_EXTERNAL = ' '
TABLES
T_FNAMES = T_MGV_FNAMES1
T_MATNR = OBJ_ITEM
*{BAPI End} generation
ENDENHANCEMENT.
$$-End: BAPI_EXCINV_CREATE_FROMDATA_G6----
$$
*This function takes input from external system regarding the
Excise invoice header and item. The process_flag tells whether
*the invoice is incoming or outging. The transaction type is to be
*set accordingly. Excise invoice number is generated externally
*This function generates an internal number, Part 2 numbers and
*creates an FI document for the CENVAT posting. The logical system
*details coming from the external application needs to be updated
*into the excise data as well as accounting data
ENHANCEMENT-POINT BAPI_EXCINV_CREATE_FROMDATA_G7 SPOTS ES_SAPLJ1IBAPI.
$$-Start: BAPI_EXCINV_CREATE_FROMDATA_G7----
$$
ENHANCEMENT 2 MGV_GENERATED_SAPLJ1IBAPI. "active version
*{BAPI Begin} generation http://intranet.sap.com/materialversion
CALL FUNCTION 'MATNR_BAPI_TABLES_CONVERSION'
EXPORTING
INT_TO_EXTERNAL = 'X'
TABLES
T_FNAMES = T_MGV_FNAMES1
T_MATNR = OBJ_ITEM
*{BAPI End} generation
ENDENHANCEMENT.
$$-End: BAPI_EXCINV_CREATE_FROMDATA_G7----
$$
ENDFUNCTION.
cheers
Aveek
Similar Messages
-
BAPI for Order Confirmation along with measurement reading entry
Hello Experts,
I would like to know if there is any BAPI for PM Order completion Confirmation along with measurement reading entry?
Thanks in advance.[BAPI for TECO|Function Module for TECO(technically complete) a maintenance work order;
[BAPI to create Measurement document|BAPI or Function Module for creating measuring point;
Based on the business transaction, by using user exit, you can accomplish these. -
MIGO : Detailed steps for doing MIGO.
Hi,
Please help me with detailed steps for doing MIGO for the delivery.
Thanks,
Edited by: hemaraaja on Jul 23, 2008 6:58 AMHi,
Enter MIGO in SAP Easy Access screen and press ENTER
Please Ensure Goods Receipt and Purchase order is selected in Drop down Box.
Enter PO number next to PO number drop down box.Also ensure whether 101 movement type in screen right top.
Press enter
In Header,in General Tab ensure document date posting date.
Enter Delivery note number(which will be useful for tracebility)
In Item detail,in Quantity tab enter quantity in unit of entry and in Where tab enter storage location and tick Item OK and click the check button.
If any error found enter the data as shown in error and click check button again and ensure no error messages found.
Then SAVE and note the GRN number in the Delivery paper which received from vendor
reward if useful
Regards -
BAPI for creating scheduling agreement with reference to Contract agreement
Hi All ,
Can anyone please suggest if there is any BAPI for creating scheduling agreement with reference to the contract agreement number.
Thanks for your help.
VadivukkarasiHi,
Check this BAPI <b>BAPI_AGREEMENT_MAINTAIN.</b>
check these
BAPI_CUSTSCHEDULAGREE_CONFDELV Customer Sched. Agreement: Confirmation of Delivery; Document Flow Upd
BAPI_SALES_DEL_SCHEDULE_CREATE BAPI for creation of releases in scheduling agreements
Regards -
BAPI for Outbound Delivery Creation with reference to Sales Order
Dear all,
I'm on R/3 4.6B platform and to develop an RFC for outbound Delivery creation instead of using the standard VL01N transaction.
I've review BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N thread which suggest BAPI_DELIVERYPROCESSING_EXEC .
However, in 4.6B, that function module doesn't exist. Appreciate any suggestion and or workaround.
Thanks.
Steven
Edited by: Steven Khoo on Mar 25, 2010 7:13 AM
Edited by: Steven Khoo on Mar 25, 2010 7:14 AMNot required anymore
-
BAPI For listing alternative routing with sequence details.
Dear all,
I want to use BAPI For listing alternative routing with sequence details.
Pl' tell BAPI function Module for routing .
Thanks.I am not sure ,but check with BAPI_ROUTING_CREATE
-
Capturing Excise values while using BAPI_GOODSMVT_CREATE
Hi,
I am able to successfully create the GR using BAPI_GOODSMVT_CREATE taking PO as the reference but unable to capture the excise values.
I am trying to use BAPI_EXCINV_CREATE_FROMDATA to capture excise values but without success.
I have already checked the forum but have not found any suitable answer.
pls guide me through this....
murali.c
Edited by: murali ch on Nov 25, 2009 4:24 AMHi Murali,
Could you Let me know how you sort out this issue. I am facing a similar problem.
I created the Goods movement for MIGO with 101 and I am trying to post excise details with the bapi
BAPI_EXCINV_CREATE_FROMDATA,
The Return messsage are zero but its actually not posting to excise tables.
Regards
Aromal R -
Bapi for partial good issue with ref to reservation
I have check the bapi for goods issue with ref to reservation. But how to take care scenario where good issue qty is less than reservation qty. How to map this in bapi.
Please provide input its urgent
Thanks
JENAHi Jena,
Implement a check in your program calling BAPI_GOODSMVT_CREATE.
If you call BAPI_GOODSMVT_CREATE in your own program you have to fill the interface of it (GOODSMVT_HEADER, GOODSMVT_ITEM ...).
So in the first step you have to select/colect all the required data for the interface. If you want to post a goods-issue with
reference to a reservation you can implement a quantity-check in you own program similar to the checks in transaction MB1A or transaction MIGO which lead to message M7064. All the required informations are stored in the table "RESB - Items of reservation".
This is the quantity-check implemented in transaction MIGO (... see note 409754):
Take only reservation items with open quantity > 0 or
or flag 'propose all items' is set (->default settings)
l_open_quantity = ls_resitem-bdmng - ls_resitem-enmng. >(1)
CHECK l_open_quantity > 0 OR
s_defaults-propose_all_items = abap_true.
l_open_quantity = open quantity -> is calulated here
ls_resitem-bdmng = Requirement Quantity ->
table RESB / field BDMNG
ls_resitem-enmng = Quantity withdrawn ->
table RESB / field ENMNG
Furthermore you could check, whether the quantity you want to post now is larger than the (remaining) open quantity. If this
not the case you could add this item to the interface-data. Otherwise you can ignore it and send a corresponding message or add the item to an error-log.
After the check has been carried out and the interface has been filled with the valid items you can call BAPI_GOODSMVT_CREATE.
In the customizing-transaction OMCQ you can maintain the category of messages. If you set the message M7 362 to the category "E - error message" the BAPI_GOODSMVT_CREATE will return with this (error-)message as soon as the requirement quantity is exceeded by the goods-issue("Reserved quantity exceeded by ...").
But: other processes/applications are using these settings too.
This means: these processes/applications might have a different behaviour after your changes (error-message instead of a warning- message ... for example).
I hope this helps,
Elaine. -
Procedure for gate pass along with billing document?
Hi
any body know the procedure about "issueing gatepass along with billing document" ..?
anybody can suggest me ..regarding gatepass configuration procedure..?
thanks and regards
sesidharthis is not for excise materials
for general materials ....
when PGI of materials ..automatically can issue the gate pass
mean at delivery time
regards
seidhar -
BAPI for Maintenance Plan Scheduling with EHP5
Hello.
In documentation for LOG_EAM_CI_4 mentioned that: [API functions have been developed for the scheduling of maintenance plans. These APIs provide the same functions as transaction IP10: the creation of maintenance calls or the changing of existing maintenance calls|http://help.sap.com/erp2005_ehp_05/helpdata/EN/33/46AC67364447A3BA2F4EFA65B8C014/frameset.htm].
We have activated EHP5 and all LOG_EAM_CI* business functions in our system, but still can't find this "magic" BAPI.
Does anybody know its name?
BR,
Pavel
Edited by: Pavel Nedvijaev on Nov 7, 2011 5:37 PMMaheswaran.K thanks for your reply, but as i wrote above we have activated all LOG_EAM_CI* including LOG_EAM_CI_3.
Version of software components SAP_APPL, EA-APPL is 605 as it needed. -
BAPI For CREATE SALES ORDER WITH REFERENCE TO ORDER
Hi ,
I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order -
Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change
but couldn't find for create with reference to Order ...
Thanks in advance ...
Regards
Rajesh.Hi,
You can use this FM "/SAPNEA/SMAPI_ORDER_CREATE". I haven;t tried this but you can still give it a try. Mention the Reference Order Type and other data in the header work area and pass it to the FM.
Reward if it's useful.
Thanks,
Anil -
BAPI FOR CREATING SALES ORDER WITH REFFERENCE TO QUOTATION
Hi All,
I am creating sales order with refference to quotation by using bapi "BAPI_SALESORDER_CREATEFROMDATA".Able to create sales order but its not refferencing qutation.Is there any other bapi for this scenario.Please guide me.
Regards,
SureshHi ,
Thank you for giving reply I tried by using bapi BAPI_SALESORDER_CREATEFROMDAT2 after execution it giving sales order number but when I am trying to see that sales order system is giving error message as document is not exist.
Please guide me.
Suresh -
BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N
Hi Everybody,
We are in ECC 5.0 version.
I want to create a enhancement for Outbound Delivery Creation with reference to a Sales Order.
Is any BAPI available for this ?
Any input on this will be very much helpfull.
Please suggest any BAPI available for this, or should I go for BDC using VL01N or VL04 ?
Thanks in advance.
regards,
Nagarajan.JHi Nagarajan,
The BAPI BAPI_DELIVERYPROCESSING_EXEC meets your requirement. You can create delivery with reference to sales order.
The below is the sample code...
data:lt_request like bapideliciousrequest
occurs 0 with header line,
lt_createditems like bapideliciouscreateditems
occurs 0 with header line,
lt_return like bapiret2
occurs 0 with header line.
lt_request-document_type = 'A'.
lt_request-document_numb = vbeln.
lt_request-document_item = posnr.
lt_request-material = matnr.
lt_request-plant = werks.
lt_request-stge_loc = lgort.
lt_request-quantity_base__uom = base_uom_qty.
lt_request-delivery_date = sy-datum.
append lt_request.
call function 'BAPI_DELIVERYPROCESSING_EXEC'
EXPORTING
DELIVERY_EXTEND =
TECHN_CONTROL =
tables
request = lt_request
createditems = lt_createditems
return = lt_return.
loop at lt_return where type = 'A'
or type = 'E'.
exit.
endloop.
if sy-subrc <> 0.
Use the BAPI for Commit
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'H'.
endif.
Thanks
Ramakrishna -
Query to find out controls displayed as in UI for an applet,along with view
Hi,
I am looking for a query to find out list of all the controls as displayed in UI applet along with applet's view.
Please note that in the query only mapped controls (those displayed in UI ) should come up.
Regards,
KunalHi,
If the EUL is an apps mode (EBS) EUL then the eu_username column is the apps user id or apps resp id. If you want to show only the responsibilities and convert those ids to names then you need to use the EUL5_GET_APPS_USERRESP function like this:
select ba_name, ba_developer_key, EUL5_GET_APPS_USERRESP(eu.eu_username, 'R') responsibility_name
from eul5_bas ba
, eul5_access_privs ap
, eul5_eul_users eu
where ba.ba_id = ap.gba_ba_id
and ap.ap_type = 'GBA'
and ap.ap_eu_id = eu.eu_id
and eu.eu_role_flag=1
order by 1,2,3Rod West -
Table for Analysis authorization along with values for authorization fields
Hi,
I am looking for table that contains the Analysis Authorization name along with values for all the authorization fields within this Analysis Authorization. Individually i can go to PFCG or Rsecadmin but since i need all the Analysis auth objects, i need to get this info into excel, so need a table.Hi Prashanth
You can check RSECVAL that is appropriate for your requirement please let us know if any further help is needed.
Thanks & Regards
Santosh Varada
Maybe you are looking for
-
Regarding Header And Footer in Data type Creation
Hi All, Can Any One Please Send me One Screen Shot Developed with Header And Footer in the Data type Creation I want to Know How to Create And where to create that in DT Creation And Why Do we need Both of these in DT Creation Regards Vamsi
-
How do I use a specific host directory in the ftp setup?
I am reestablishing links in CS4 to my websites after an upgrade from Vista to 7. I use Go Daddy and the subdirectory capability. I had a difficult time setting up the ftp connection and saw in another posting that the Host directory should be left b
-
Hi, We are using dsee 6.3.1 in a mutli-master configuration. We are using insync in a script to monitor our replication status. We have an alert which is sent anytime a delay of more than 30 seconds between 2 replicated instances occur. We have this
-
Why are none of the Best Buys in my area carrying the Fatal1
I li've in Lonng Island NY. I have called every Best buy out here (got to be about 0 of them) and not one carries the Fatalty card. They all carry the 2 lower end ones though (ExtremeMusic + Platinum). And then to boot you can't order through Creativ
-
My brand new ipad mini is slow (retina edition)
My new ipad mini that I just got today from the apple store is slow it has 64-bit A7 processor but it's no faster than an old ipad 2 that I have in my house. What can I do to maybe speed it up or maybe it just hasn't warmed up enough after my 3 hours