Get Material Document Number and Material Document Year
Hi everyone,
Right now, i'm developed idoc program. I need material document number (MBLNR) and material document year (MJAHR). I have information only BAPI2017_GM_HEAD_01 and BAPI2017_GM_ITEM_CREATE. Is there any FM to get this value ? Thank you
Regards,
Satria
Ok, i will explain with more detail about my problem
Here my pseudocode :
- Get data with type BAPI2017_GM_HEAD_01 from Idoc (let we say this X)
- Get data with type BAPI2017_GM_CODE from Idoc (let we say this Y)
- Get data with type BAPI2017_GM_ITEM_CREATE from IDoc (let we say this Z)
- IF Y-GM_CODE <> "06" THEN
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = X
GOODSMVT_CODE = Y
TABLES
GOODSMVT_ITEM = Z
ELSE IF Y-GM_CODE = "06" THEN
CALL FUNCTION 'BAPI_GOODSMVT_CANCEL'
EXPORTING
MATERIALDOCUMENT = ???
MATDOCUMENTYEAR = ???
GOODSMVT_PSTNG_DATE = ???
I know that material doc and mat doc year is in table MKPF. But the problem is they are the primary key, so how i use X,Y,Z in select operation to MKPF? or is there another way using FM ? Thank you
Regards,
Satria
Similar Messages
-
Material document number and financial document number
Hai Friends,
How can i link material document number and financial document numberHi,
I did below for my requirement to get payment document number. It will useful to you
FORM GET_PAY_DOC .
data: wa_bkpf TYPE bkpf.
data: wa_obj_key TYPE bkpf-AWKEY,
wa_AUGBL TYPE bsak-AUGBL.
SELECT SINGLE belnr GJAHR from ekbe into (it_table-belnr, it_table-GJAHR)
where ebeln eq it_table-ebeln AND
ebelp eq it_table-ebelp AND
BEWTP eq 'Q' AND
XBLNR eq it_table-tknum.
CHECK sy-subrc eq 0.
CONCATENATE it_table-belnr it_table-GJAHR INTO wa_obj_key.
SELECT SINGLE bukrs belnr GJAHR from bkpf into CORRESPONDING FIELDS OF wa_bkpf
where awtyp = 'RMRP' AND
awkey = wa_obj_key.
CHECK sy-subrc eq 0.
SELECT SINGLE AUGBL from bsak into wa_AUGBL
where bukrs eq wa_bkpf-bukrs AND
lifnr eq it_table-tdlnr AND
belnr eq wa_bkpf-belnr AND
GJAHR eq wa_bkpf-GJAHR.
CHECK sy-subrc eq 0.
SELECT SINGLE belnr budat from bsak into (it_table-belnr1, it_table-Budat)
where bukrs eq wa_bkpf-bukrs AND
lifnr eq it_table-tdlnr AND
AUGBL eq wa_AUGBL AND
GJAHR eq wa_bkpf-GJAHR AND
blart eq 'KZ' and
belnr ne wa_bkpf-belnr AND
SHKZG eq 'S'.
ENDFORM. " GET_PAY_DOC -
Relation accounting document number and clearing document number
Hi everyone,
What is the relation between accounting document number and clearing document number.For every accounting document when it is posted it should be available in BKPF Doc header table.. Once that document is closed or cleared..there is any entry made to BSAK for Vendors (Cleared Items) or BSAD for Customers (Cleared Items).
Eg: When a invoice is generated for a PO it gets created and is still not cleared or is not closed , it makes an entry in BSIK. Once it is closed it is available in BSAK.
Same is the case with Sales order.. -
MM Document number and FI document number is a single table
Dear Friends,
Could you please let me know the table where both MM document number and FI document number will be available. I checked in BKPF and it is only updating FI document number and not MM document number and in MKPF it is only updating MM doc number and not FI document number.
Also let me know if there is any report/tcode/program available to view this at one place itself.
Regards,
Dwarak.hi
i dont think you can view both table in one screen.
in T-CODE:SE16N you can see one by one table.
Regards
ramana -
Display of FI document numbe and material document number
Hi,
I want to display both the material document number ( RBKP ) and the acccounting document number ( BSET ) together while posting the Invoice using MIRO transaction.
Pl provide with your valuable suggestions.
Regards,
R. Dillibabu.Hi Arif,
We wanted to generate a number during invoice verification based upon the order type of the PO, As you know it is not possible to generate a order specific material document number but it is possible to generate a order specific accounting document number provided we can select RE or ZE while processing invoice verification.
This accounting document number will be considered as a claim number for one of the customized business process ( Warranty Claim process ).
The user has to record the claim number on a daily basis. Currently it is being done by passig the RBKP-BELNR to the BKPF to get the accounting document number ( BELNR ) which is quite tedious.
Hope the business functionality is quite clear now.
Regards,
R. Dillibabu. -
Material Document Number and FI document Number.
Hi All,
I am facing problem when I get FI document number that had appeared in BSEG table. Posting Key of 70 appeared in the table, but what is transparent table of Posting key 70's entries. I am getting DR and CR. amount from BSIS, BSAS and BSIK and BSAK tables. but these table have not 70's posting key. During the coding I have to relate BSEG table with other table. That is why I am asking for 70's posting key table which generated from miro.
Regards,
Syed Tayab ShahHi Arif,
We wanted to generate a number during invoice verification based upon the order type of the PO, As you know it is not possible to generate a order specific material document number but it is possible to generate a order specific accounting document number provided we can select RE or ZE while processing invoice verification.
This accounting document number will be considered as a claim number for one of the customized business process ( Warranty Claim process ).
The user has to record the claim number on a daily basis. Currently it is being done by passig the RBKP-BELNR to the BKPF to get the accounting document number ( BELNR ) which is quite tedious.
Hope the business functionality is quite clear now.
Regards,
R. Dillibabu. -
BOM Routing - CA02 - Material,Operation Number and PRT Documents - relationship
Hi Experts,
Need some info related to BOM Routing - CA02
I am trying to update multiple - Document , Document Type , Document Part ,Document version - for a operation in CA02 .
All i need to know is how find the relationship between Material and PRT - Document details.
In which table i can find the linkage?
Please share your views.
Cheers!!!
Karthik RaliHi
In my opinion, the behaviour is correct....
If you maintained the BOM for FG 1 Qty - Requiring 1 Qty of each component - Then what system did is correct
You should have maintained 1 Qty for Comp 1 and 0.9 of Component 2
Note that, the Qty of Components that you maintain in the BOM relates to the Header Material... and not to the Other Components in the BOM
br, Ajay M -
Cash Journal - Document Number and Internal Document number
Dear all,
In Cash Journal, do you know the different between these 2 fields: Document Number (ISCJ_E_POSTINGS-D_POSTING_NUMB) and Internal Document Number (ISCJ_E_POSTINGS-POSTING_NUMBER) ? How we can handle it ?
Thank you very much,
Best regards,
Sylvecat.Hi,
ISCJ_E_POSTINGS-D_POSTING_NUMB. A cash journal document has a unique number per cash journal and company code ant it is internally assigned. This number is usually used as cash receipt/payment printout number. It is one numbering for both (payments and receipts) and it is retrieved as the current highest number per cash journal + 1.
ISCJ_E_POSTINGS-POSTING_NUMBER. An internal number, based on the number range (01) assigned to your CoCd.
Regards,
Svetlin -
Shipment document number and cost document number for vendor invoice
Hi,
Given a Vendor invoice number ( MIRO) how to find out the shipment number and cost docuemnt number?
Regards,
Krishna prasad.Hi,
Please try using SREL_GET_NEXT_RELATIONS. Please try to search on SDN and you should find an example fo this. The only thing you need to pass is the Business Object Name for Vendor Invoice number. Or if you have an alternal field like even PO that you can pass , that will be of great help as well.
You may want to take a look at:
SREL_DISPLAY_LIST_OF_NEIGHBORS
SREL_GET_NEXT_RELATIONS
Pls reward points if useful.
Thanks
Ganesh.S -
Relation between Material Number and Material document Number.
hi xperts,
I want to Know Is there any Relation ship between the <b>Material Number</b> and <b>Material Document Number</b>.
If So can i get any Tcodes to check them?
Thanks in advance.
Message was edited by:
STALIN JOSEPHHi,
Thanks for your reply.
I want to Load the Inventory Management Data into Business warehouse ,there the Only way i correlate the Data between is by taking some material Number.
and Material Document.
In step 1 i load Material Number data and step 2 i load material document data,so i want to make cure those two loads i load the same material numbers.
Please help me to collerate between them. -
Billing Document and Material Document number and Date (Goods Issue)
Dear Experts,
Is there a way I can find the relationship between a billing document and a material document number and Goods issue date?
ThanksHi Abid
Is there a way I can find the relationship between a billing document and a material document number and Goods issue date?
You have to follow the flow from the billing document to the material document. This will only work if the billing document comes from a delivery note.
Billing document => Delivery
LIPS-VBELN = VBRP-VGBEL
and LIPS-POSNR-VBRP-VGPOS
So you have LIPS + LIKP with the LIKP-WADAT_IST as the goods issue date.
Delivery => Material Document Number
You can use the table VBFA with the delivery item as the preceding document number (VBFA-VBELV) and item (VBFA-POSNV) ; you will also have to define the preceding document type as J (delivery) and the document category of subsequent document as R (material document).
Because in SAP nothing is simple, there might more than one material document, because the goods issue (601) movement might have been canceled and issue again. So you will have to decide what to do in that case.
Best Regards,
Franck -
Shipment number and material move doc
What is shipment number? When and how is it generated? What is difference between shipment number and material movement doc number?
Hi
When you want to send several deliveries into one truck (mode of transport) and the truck is to deliver the goods to several ship-to-parties along a particular route, then this function is called "Shipment function".
The document prepared for it is called Shipment document.
Normally, in shipment we combine more than one deliveries meant for one specific route.
Shipment can be done before as well as PGI, but normally it is done before PGI.
Once PGI is done, Material document is generated. -
PO number and material issued against this PO for subcontracting
How to know the link in between the PO number and material issued against this PO for subcontracting.
I have checked that PO history is not getting updated.
Thanks,Hi,
We have 2 different scenarios where you can post a goods issue to Subcontract Venodrs.
Scenarios 1: You can post the goods issue against a subcontrac vendor with out referencing the Subcon PO from ME2O, at this stage we will be knowing what is the stock at subcontract vendor but we will not be knowing the issues against which and how much Quantities are posted.
So when we are post goods receipt, then we will come to know the consuption quantities.
Scenario: 2, If we use the delivery concept then we can track the goods issues against the subcon POs.
If you really keen to track the material issued to Subcon vendor against a PO so better use with delivery.
Thansk,
Satya. -
Excise No. using Accounting Document Number and the P.O. number
Hi All ! In my GL report, I'm displaying the Accounting Document Number and the P.O. number.
Now, the requirement is to display the excise no..
Tried different tables in SE11 using J_1EXC for excise detials, but to no avail.
And last which vendor to pick, Because vendors in P.O and BSEG differs.
If I use the BSEG-BELNR I get a different vendor & If I use the P.O. no. in EKKO then also I get a different vendor.
Please suggest.Hi,
Actually the vendor in the accounting document and PO should match. If not look in table EKBE, It will have the accounting document or at least the invoice receipt against which accounting document would have been created. Check if the vendor number matches with the invoice receipt.
Regarding the excise number I'm not sure what you mean, If you mean excise invoice number, you can look at the J_1IEXCDTL
J_1IEXCHDR tables. You could check with FC on what basis the document is getting created to make out the relation ship. If it is vendor excise no etc. you can hit F1 help to find out the table etc.
Hope it helps.
Sujay -
How to get a Reversal document number from Original Document Number ?
Hi,
Say I have a Original Document number. This document has been reversed.
I am using table BSEG. Original Document Number for any Reversal Document is stored in field "BSEG-REBZG"
My query is that now I have the Original Document Number. How can I get the Reversal Document from this Original Document number ??
OR in simple words, Is there any possible way to find out if my original document has been reversed ?
I need help to write a select query i.e the tables and fields.
Please help.
Thanks.Hello,
Check the fields:
BKPF-XREVERSAL: Reversal Indicator (1: Reversed Document, 2: Reversal Document)
BKPF-STBLG: Reverse Document Number.
BR,
Suhas
Maybe you are looking for
-
2007B Dunning Letter print from wizard only? Can print by cust aging?
Hi Sir/ Madam, Is there anyway to print dunning letter without using the dunning wizard? If the current dunning wizard run has been setup to printout letters for 100 BP, how can the user reprint the letter for one of the 100 BP only?
-
Is there a way to save music from iTunes onto CD?
I know it is possible to export tunes to a CD from iTunes. However the way that I do it uses the same amount of space on the CD as the original tracks took up? Is there a way of compressing the files into another format so that I can save more than o
-
Hello, I'm using Audigy 4. I want to record from Line-In [using eg. Sound Recorder]. I don't want to hear what's on Line-In and I mute it. Is there any way to do it's When line-in is not muted it works when I record from Analog Mix. When it's muted i
-
Could not load assembly or file "crystaldecisions.windows.forms"
Hi, I have a VS2005 C# .net application which works fine when I run on the programming machine. Now , I copy all files (dll , pdb , exe) from the Project's "..bin\Debug " directory . These files I transfer to another computer which does not have VS 2
-
More on this content aware with Warp Stab. (going further, actually)
so i saw the little video that steve forde did on "what they never intended for warp stabilizer to do" and it got me thinking about another issue, and i was wondering if there is already anyway to fix these issues, or if it would even be conceivable