‎2010 Mar 11 7:59 AM
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
‎2010 Mar 11 12:14 PM
you can see the code for this bapi by typeing the bapi name in se37.....
‎2010 Mar 11 12:17 PM
you can see the code for this bapi by typeing the bapi name in se37.....
this is how this bapi looks when called
CALL FUNCTION 'BAPI_EXCINV_CREATE_FROMDATA'
EXPORTING
obj_header =
process_flag =
tables
obj_item =
return =
‎2010 Mar 12 10:55 AM
Hi,
Check the BOR Object J_1IEXCINV and the method CreateFromData has the detailed code you require.
cheers
Aveek
‎2010 Mar 13 7:49 AM
no coding availble the function J_1IEXCINV in in non released status in 4.6 C . can u provide me the code of BAPI_EXCINV_CREATE_FROMDATA .when i see the code its like this in se37 :
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
*"----
*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
ENDFUNCTION.
‎2010 Mar 13 7:50 AM
Aveek,
no coding availble the function J_1IEXCINV in in non released status in 4.6 C . can u provide me the code of BAPI_EXCINV_CREATE_FROMDATA .when i see the code its like this in se37 :
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
*"----
*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
‎2010 Mar 13 8:37 AM
Hi,
You need access to SAP ECC 6.0 system. I will have access on Monday and will be able tp provide the details.
cheers
Aveek
‎2010 Mar 15 6:57 AM
Hi,
This is all that is available in the system:
BEGIN_METHOD CREATEFROMDATA CHANGING CONTAINER.
DATA:
OBJHEADER LIKE BAPI_J_1IEXCHDR,
PROCESSFLAG LIKE BAPI_J_1IEXCHDR-REF_INDICATOR,
OBJITEM LIKE BAPI_J_1IEXCDTL OCCURS 0,
RETURN LIKE BAPIRET2 OCCURS 0.
SWC_GET_ELEMENT CONTAINER 'ObjHeader' OBJHEADER.
SWC_GET_ELEMENT CONTAINER 'ProcessFlag' PROCESSFLAG.
SWC_GET_TABLE CONTAINER 'ObjItem' OBJITEM.
CALL FUNCTION 'BAPI_EXCINV_CREATE_FROMDATA'
EXPORTING
OBJ_HEADER = OBJHEADER
PROCESS_FLAG = PROCESSFLAG
TABLES
OBJ_ITEM = OBJITEM
RETURN = RETURN
EXCEPTIONS
OTHERS = 01.
CASE SY-SUBRC.
WHEN 0. " OK
WHEN OTHERS. " to be implemented
ENDCASE.
SWC_SET_TABLE CONTAINER 'Return' RETURN.
END_METHOD.
cheers
Aveek
‎2010 Mar 18 6:26 AM
hi Aveek
but this doesnt help as the function is having no code.
is there any other function available to capture excise invoice
not bdc plz
thanks in advance
Deepika
‎2010 Mar 18 7:03 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
‎2010 Mar 20 5:25 PM
Dear Ghose,
Hi . Previously i got good solutions from your side . I have an issue with tcode 'cu50' . Our materials have almost 35 characteristics. When i create a quotation or order i can see only few of them . We give only few characteristics as a option for customer to select. Our consultants are maintained this at cu50 .
I am trying to create a sales order quotation from external system . I have to give the default characteristics for the customer first then he can select the options. There are some standard bapis are there which give the characteristics .
These bapis are giving all the characteristics but i need only which is maintained at CU50 . I tried a lot with different fm and not get a solution. Please give me some idea on this.
Regards,
Madhu.
Edited by: madhurao123 on Mar 20, 2010 6:29 PM
‎2011 Dec 28 7:29 AM