How to post Excise Invoice in GR using BAPI BAPI_GOODSMVT_CREATE ?
Hi,
I want to post Goods Receipt job (MB01) through BAPI 'BAPI_GOODSMVT_CREATE'.
But is there any parameter to post 'Excise Information' through (this/any) BAPI ?
Pls...... answer me soon.
thanks by advance.
SEE THE FOLLOWING EXAMPLE
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.
Similar Messages
-
How to post vnedor invoice by fb60 using special gl indicator
HI guys,
I want to post an vendor invoice by t-code FB60 using Special GL Indicator but system
"Posting key 31 does not permit specification of a special G/L indicator".
How can I resolve this issue.
Thanks
KhalidHi,
Down payment
T-Code PK Description Gl Doc Type Amount
F-47 Cr 39 KA F -1000
F110 Dr 29 Vendor (Spl G/L) 1222152 ZP A 1000
Cr 50 Bank 1311401 -1000
FB01Cr 31 Vendor 1420139 KR -1000
Dr 50 Expenses 4110302 1000
F-54 Cr 50 Vendor (Spl Gl) 1222152 KA A -1000
Dr 50 Vendor 1420139 KA 1000
F110 Dr 50 Vendor 1420139 AB -1000
Cr 50 Vendor 1420139 1000
BOE
T-Code PK Description Gl Doc Type Amount
FB01 Cr 31 Vendor 1420139 KR -1000
Dr 40 Expenses 4110302 1000
F-40 Cr 39 Bank Vendor 1311401 KZ -1000
Dr 25 Vendor 1420139 1000
F-40 Cr 39 Bank Vendor 1311401 KZ L -1000
Dr 25 Vendor 1420139 1000
SKS -
Problem in posting excise invoice(part2)
hello gurus,
i am facing one serious problem. i am using 46c version.
in case of import procurement . i am not able to post excise invoice .the step i am following are as follows
1.after doing MIRO i captured excise for CVD through j1iex with refernce to purchase order , pop up menu appears , i put MIRO number and years. system generated internal excise invoice no.
2.GR process done with refernce to PO.
3.than i create part1 through j1i5.
than after i am trying to post part2 by tcode j1iex again but it shows message that no part1 exist .
how i can solve this problem, can any one tell me whole cycle for import purchase in sap 46c.
one more question while making MIGO with refernce to PO one pop up screen should appear for entring MIRO no for reference (as it appears in SAP47c and above), but it is not coming in sap46c. can any one help me whether it is possible in sap46c or not.
regards
ashwani tripathiHi,
Generally, for Import procedure folowed is.
- PO created without GR/IR Unchecked and for Customs duties conditons are correctd with Custom vendor number
- MIRO done for the Customs Vendor ( after the receipt of Goods )
- MIGO done for the Goods ( when Tcode is excuted it will display the Doc number Generated in the MIRO run, or you have to input the correct number )
- J1IEX done for the part2 posting
Regards -
Error while posting Excise Invoice
Hi Experts,
I have captured incoming excise invoice for an Import PO of Asset material.
GR has been made.
Also partial payment to vendor has been done through MIRO.
During check it do not show any ERROR message
While posting Excise invoice , error message is displayed "ACCOUNTING DOCUMENTS NOT GENERATED"
and immediately current session is closed
How to solve the problem?
Regards
JaiHi,
Import cycle :-
1. MIRO-Bill of Entry
2. Excise Invoice capture
3. Goods Receipt
4. Excise Invoice posting
5. MIRO -Vendor settelement
Tcode you used for capturing excise invoice - j1iex
posting the excise invoice. j1iex
Thanks
jai -
Cancellation of posted excise invoice
Dear All,
How to cancel posted incoming excise invoice without cancelling the GRN.
User had posted the excise invoice wrogly so now they want to cancel that. For this we have to first reverse GRN but stock also get consumed meanwhile so system is not allowing to reverse GRN. How to resolve this?
ManojDear All,
We can cancel the posted excise invoice for purchase also.
But for that we have to first revers the GRN.
Now in out case it is not possible to revers the GRN.
How to solve this?
Manoj -
How to cancel excise invoice when mov type is 122
Hello,
We are creating the PO for one material. and make the GR for that material (material is Quality inspection material)
so i,e the reason the material is goes to Quality inspection.
Till then we are Made the J1IEX create the Part1 and Part2 entry.
So in mean while in Quality all the material's are rejected so, now how to reverse the Part1 and Part2 entries.?
How to cancel excise invoice when material is qulaity inpspection.
What i made:
Made the Return delivery means 122 mov doc and Try to cancell the excise invoice......but no successful
Regards
sapman manHi
Cancelling of excise invoice will be done in the following ways depending on the situation.
Case 1:
Create PO
Do MIGO (create and post excise invoice)
Create return delivery in quality inspection.
Now we have to create a rejection inmvoice in J1IS with reference to the return delivery wherein the excise values gets reversed.
If u try to reverse part 2 entries in J1IEX it will not come.
Case2:
Create PO
Do MIGO (create and post excise invoice)
Do cancellation of MIGO (102 mvt)
With ref to vendor or internal excise invoice number just post the transaction. excise part 2 entries will get reversed. This will happen only if 102 entry exist for the PO line item.
In a nutshell excise entries cancellation comes only if we cancel the material document. If we do return delivery then we have to create rejection excise invoice.
Hope u get cleared in this regards
Reg
Raja -
How to create Excise Invoice.
Hi SD Guru's
How to create excise invoice and what is the use of this one and sd point what are the setting required.
Thanks
RajendraIn Indian Manufacturing scenario, Excise Invoice is required when goods move out of factory premises. The process is as under:
Inquiry / Document type IN
Tcode: VA11,VA12,VA13. tables VBAK,VBAP
Quotation / QT
Tcode: VA21,VA22,VA23. tables VBAK,VBAP
Sales Order OR
Tcode: VA01,VA02,VA03. tables VBAK,VBAP
Delivery LF
Tcode: VL01,VL02,VL03. tables LIKP,LIPS
Billing F2
Tcode: VF01,VF02,VF03. tables VBRK,VBRP
Excise Invoice
Tcode: J1IIN
Configuration of CIN Settings:
1.1 Maintain Excise Registration
Logistics general SAP Ref. IMG SPRO Maintain Excise Basic setting India tax on Goods Movements Registrations
1.2 Maintain Company Code Settings
SPRO Basic settingIndia tax on Goods Movements Logistics general SAP Ref. IMG Maintain Company Code Settings
1.3 Maintain Plant Settings
tax on Goods Logistics general SAP Ref. IMG SPRO Maintain Plant Basic setting India Movements Settings
1.4 Maintain Excise Groups
SAP Ref. IMGSPRO Maintain Basic setting India tax on Goods Movements Logistics general Excise Groups
1.5 Maintain Series Groups
SAPSPRO Basic setting India tax on Goods Movements Logistics general Ref. IMG Maintain Series Groups
1.6 Maintain Excise Duty Indicators
tax on Goods Logistics general SAP Ref. IMG SPRO Maintain Excise Duty Basic setting India Movements Indicators
1.7 Maintain Subtransaction Type with Text
India tax on Goods Movements Logistics general SAP Ref. IMG SPRO Maintain Subtransaction Type with TextBasic setting
1.8 Determination of Excise Duty
tax Logistics general SAP Ref. IMG SPRO Select Tax Calculation Determination of Excise DutyIndia on Goods Movements Procedure
1.9 Maintain Excise Defaults
SAP Ref.SPRO Determination of ExciseIndia tax on Goods Movements Logistics general IMG Maintain Excise DefaultsDuty
1.10 Condition-Based Excise Determination
tax on Goods Logistics general SAP Ref. IMG SPRO Define Tax Code for Condition-Based Excise DeterminationIndia Movements Purchasing Documents
1.11 Condition-Based Excise Determination
tax on Goods Logistics general SAP Ref. IMG SPRO Assign Tax Code to Condition-Based Excise DeterminationIndia Movements Company Codes
1.12 Classify Condition Types
SAPSPRO Condition-BasedIndia tax on Goods Movements Logistics general Ref. IMG Classify Condition TypesExcise Determination
1.13 Maintain Chapter IDs
tax on Goods Logistics general SAP Ref. IMG SPRO Maintain Chapter ids Master dataIndia Movements
1.14 Assign Users to Material Master Screen Sequence for Excise Duty
SPRO Master dataIndia tax on Goods Movements Logistics general SAP Ref. IMG Assign Users to Material Master Screen Sequence for Excise Duty
1.15 Specify Excise Accounts per Excise Transaction
tax on Goods Logistics general SAP Ref. IMG SPRO Specify Excise Accounts per Excise Account determinationIndia Movements Transaction
1.16 Specify G/L Accounts per Excise Transaction
tax on Goods Logistics general SAP Ref. IMG SPRO Specify G/L Accounts per Excise Account determinationIndia Movements Transaction
1.17 Incoming Excise Invoices
SAPSPRO BusinessIndia tax on Goods Movements Logistics general Ref. IMG Incoming Excise InvoicesTransactions
1.18 Define Processing Modes Per Transaction
Logistics general SAP Ref. IMG SPRO Define Processing Modes Business TransactionsIndia tax on Goods Movements Per Transaction
1.19 Define Reference Documents Per Transaction
tax on Goods Logistics general SAP Ref. IMG SPRO Define Reference Documents Per Business TransactionsIndia Movements Transaction
1.20 Maintain Rejection Codes
SAPSPRO BusinessIndia tax on Goods Movements Logistics general Ref. IMG Maintain Rejection CodesTransactions
1.21 Specify Which Movement Types Involve Excise Invoices
Logistics SAP Ref. IMG SPRO Specify Which Business TransactionsIndia tax on Goods Movementsgeneral Movement Types Involve Excise Invoices
1.22 Outgoing Excise Invoices
tax on Goods Logistics general SAP Ref. IMG SPRO Assign Outgoing Excise Invoices Business TransactionsIndia Movements Billing Types to Delivery Types
1.23 Maintain Default Excise Groups and Series Groups
Logistics general SAP Ref. IMG SPRO Outgoing Excise Invoices Business TransactionsIndia tax on Goods Movements Maintain Default Excise Groups and Series Groups
1.24 Subcontracting Attributes
tax on Logistics general SAP Ref. IMG SPRO Subcontrac Subcontracting Business TransactionsIndia Goods Movementsting Attributes
1.25 Maintain Movement Type Groups
SPRO BusinessIndia tax on Goods Movements Logistics general SAP Ref. IMG Subcontracting SubcontractingTransactions Attributes
1.26 Utilization Determination
SAPSPRO BusinessIndia tax on Goods Movements Logistics general Ref. IMG Utilization Determination UtilizationTransactions
1.27 Specify SAPscript Forms
tax on Logistics general SAP Ref. IMG SPRO Specify Excise Registers Business TransactionsIndia Goods Movements SAPscript Forms
1.28 Number Ranges
SAP Ref. IMGSPRO Number ToolsIndia tax on Goods Movements Logistics general Ranges
1.29 Message Control
SAP Ref. IMG SPRO Message ToolsIndia tax on Goods MovementsLogistics general Control
Regards,
Rajesh Banka -
Problem in Capturing & Posting Excise Invoice
Dear Experts,
As my client is facing problem to post Excise Invoice.
User has done Import PO, Invoice Verification for custom duties(BOE) and GRN. When i am going to capture excise invoice reference with Material Document i found that Part I entry is already created but Internal Number and Year showing Zero i.e.not generated.
User already dispatched material so we cant cancel GRN and update RG23A Part I entry through J1I5. Now i need to Post excise invoice but i dont have Vendor Excise Invoice and Internal Excise Invoice Number. Please tell me procedure that how to Update RG23A Part II entry.
Immediate reply appreciated.
Sachi,
there seems to be some problem at the time of GR.
Since Part1 has been created , its a bit difficult to take part1 because as u told internal no. & year is bank.
How ever you can folow one of the paths below to serve your purpose of cenvat credit availament.
1. Capture against GRN -J1IEX and save. Check whether part1 link is available with the ID.
If not take the credit through J1IH->additional Excise & give ID no. as reference doc no there.
2. If Part1 tab is present after creation of ID but credit available is zero, try changing the material type & saving the ID which will trigger A part1 cancellation so that correct part1 can be done later & credit can be availed through j1iex itself.
These steps may involve a solution other possibility which is always open is debug but thats not suggested. -
How to print Excise invoice?
Hello Experts,
I have not worked on Excise invoice.
How to print excise invoice ? Kindly tell me the path /t-code to print single excise invoice.
ThanksMoved from SAP ERP Sales and Distribution (SAP SD) to Internationalization and Unicode.
As indicated already, whenever you want any information related to CIN, please post here. Moreover, being an old member, you should be aware of forum rules where it has been clearly indicated not to post basic or repeated query here. Please search the forum or Google it, take the inputs and still if you face, post here
G. Lakshmipathi -
Hi friends,
How to cancel posted excise invoice(GR is completed) ?
Regards,
ChetanHi friends,
I have already tried it in quality system.
1.After cancellation of GR.I tried to post excise invoice but system showing the messege that No Part I exists for availing credit in excise invoice TEST 1 2007
2.J1IH reverse the entry but system is not showing these entries in excise invoice.
so due to this while entering Vendor invoice in miro system showing tax amount from excise invoice.if reduce tax amount then system showing balance in transaction currency.please suggest me whst to do ?
Regards,
Chetan. -
Excise Invoice at Depot using J1IG.
Dear Gurus,
I am doing Excise invoice at Depot using T.COde- J1IG for Material documents.
I created a Stock Transport Order,created Delivery using VL10D and done PGI.I captured Excise using J1In and Cretaed BIlling Document.
I have done Multiple GR for a Single delivery. When i do Excise Invoice at Depot (J1IG) i provided the details for Excise Group,Material Doc, Factory Excise Invoice No, Series Grp and Excise Date. Excise Invoice at Depot get created for the first material document and for rest of the material documents for the same delivery it is throwing an error "Excise Invoice has no Matching lines"
please advice any settings need to be made for making it possible to do Excise Invoice at Depot using the same Factory Excise Invoice number.And also please advice any Business Process needs to be followed for adopting the above said situation.
Thanks in Advance,
Nambi.NDear Gurus
I have checked the setting for CIN Customization --> Tax on Goods Movements
Basic Settings
Maintain Excise Groups , check "No. GRs per EI" what is the option you have selected, select 1 i.e. Multiple Goods Receipts, Single Credit
even in J1ID-> Material and Chapter id combination, select 1 i.e. Multiple Goods Receipts, Single Credit against that material and plant
I have checked all the settings but still i m getting the same error "NO matching lines for excise invoice"
What may be the problem apart from configuration in J1id and and in Gr and EI's.
Please help.............
Regards
Ambuj
Edited by: AMBUJSINHA on Jul 29, 2010 6:41 AM -
How to create excise invoice with reference thorugh credit memo
Hi All,
Please provide any solution for the following qurey:
How to create excise invoice with reference thorugh credit memoHi murali,
i am unable to understand your requirement i think there is no like this scenario requirement for any client
if any requirement is there kindly explain detail
cheers -
How to create excise invoice with reference delivery document
hi all sd guru
please guide me how to create excise invoice by taking reference of delivery no.
thankx in advance
sanHI
FACTORY SALES
IN CASE OF FACTORY sales you have to create a billing document either Proforma or Commercial.
Then you can reference the billing doc i9n J1IIN for creation
DEPOT SALES
In case of depot sales you can create a excise invoice with reference to delivery document.
For this after creation of delivery goto J1IJ and slect the rg23d from menu
you can create an excise invoice with delivery in depot sales.
In factory it is not possible to create a excise invoice with delivery doc.
regards
Prashanth -
Reversal of posted Excise invoice ??
Hii
Some body explain the steps involved in reversal of excise invoice posted..??
Like i have created Po, GR done , uring GR i have captured and posted excise invoice .
Now i wanted to reverse the availed CENVAT credit and reversal of excise invoice posted .
ThanksHi,
01. Reverse the goods receipt.
The system:
Creates a reversal document to cancel the goods receipt
Creates additional entries in Part I of the appropriate excise register to reverse the original entries
Changes the excise invoice document status to In process.
Reversing Goods Receipts
From the SAP Easy Access screen, choose Logistics --> Materials Management --> Inventory Management --> Goods Movement --> Goods Movement (MIGO).
In the top line:
Select Cancellation.
Select Material document.
Enter the number of the goods receipt that you want to cancel
Choose .
Flag all of the line items as OK.
Save the reversal document.
02.. Reverse the CENVAT posting on the excise invoice.
The system:
Creates an accounting document to reverse the CENVAT postings
Creates a corresponding entry in Part II of the appropriate excise register
Reversing CENVAT Postings
From the SAP Easy Access screen, choose Indirect Taxes --> Procurement --> Excise Invoice --> Incoming Excise Invoices --> Individual Processing --> Change/Display/Post/Cancel.
In the top line:
Select Post CENVAT.
Select Vendor Excise Invoice.
Enter the excise invoice number.
Choose .
Choose Simulate CENVAT.
A dialog box appears, showing which postings the system will make to reverse the CENVAT.
To close the dialog box, choose .
Choose Post CENVAT.
03. Cancel the excise invoice.
The system changes the excise invoice status to Canceled.
Canceling Excise Invoices
From the SAP Easy Access screen, choose Indirect Taxes --> Procurement --> Excise Invoice --> Incoming Excise Invoices --> Individual Processing --> Change/Display/Post/Cancel.
In the top line:
Select Cancel.
Select Vendor Excise Invoice.
Enter the excise invoice number.
Choose .
Save the excise invoice.
Regards
KK -
Issue while posting the invoice in background using the WF-BATCH user
Hi Friends,
I am facing an issue while posting the invoice in background using the WF-BATCH user. I am using a invoice approval workflow where in when the approver approvers the invoice the invoice document get posted using a background method, which uses BO FIPP and Method POST and i am returning the Message Text to my workflow container from this method. When i see the log an exception is rasied from this method with an error message "V004: You are not authorized to change this document", but WF-BATCH is having SAP_ALL and SAP_NEW authorizations. If i try to post the invoice using the method from my user id it is getting posted. What could be the issue. Please advice.Hi Sapient,
The Parameter, Roles would be different for the LOGIN USER and WF-BATCH.. So ask your administrator
to set the Roles & Parameters similar to that of LOGIN USER to WF-BATCH.
For further refrence check in SU01 giving the LOGIN USER and then check with WF-BATCH... you would
find the difference...
Hope this would help you..
Good luck
Narin
Maybe you are looking for
-
Document library archieve issue
I have one Document library(Infopath form Library) , there several columns in Document library , one of the column is closed date, those forms which has closed date more than 1 month older they should move to another archiver document library. For th
-
How to make a symbol on a 3d object scale without moving?
I created a 3d apple and made a symbol of a state map that I mapped onto the apple like a highlight.- When I scale the whole object down, the symbol scales somewhat, but slides up the apple and doesn't stay in place. it ends up off the top ot the app
-
Creative HS-1200 interfering with my wireless network.
Hello, I just got the HS-1200 headset and they're great, but they seem to be interfering with my wireless lan. For example when playing World of Warcraft with the headset turned on, I will get a huge lagspike and my ping will rise to about 1500-2000
-
ANALOG AUDIO CAPTURE NEEDS RENDERING?
I am capturing analog VHSC tapes via a Sony HVR-M25U to do the A/D conversion. My inport settings are standard DV using DVCPRO. When I add my captured footage to the timeline, I see the red rendering line and I hear the blips as I playback, after ren
-
After I click on sleep, my iMac wakes up immediately after, what's wrong?
I want to make my iMac sleep, I click on SLEEP, it goes in sleep mode for a second and wakes up immediately. I don't touch my mouse nor the keyboard- What's wrong?