Document number of Workorder operation
How can I get the document number (BELNR field) of an workorder's operation ? Is it stored in a table?
Please help. Thanks in advance...
Try table AUFK .
Similar Messages
-
Error on Purchase Order - Document number 45* not within defined interval
Hi All,
PLEASE HELP ME or guide me in the right direction.
I am faced with a somewhat unique case in our enviroment. Some background first.
Back in 2000 when we upgraded from Walker to SAP, a number of Purchase orders had to be migrated, one of them is the order i am struggling with. Back then very little validations were built in, resulting in a Local Order being incorrectly created as a International Order but against a local currency.
Now this ordered is still being reflected as open in our system. When attempting to change the order by activating the 'Delivery Complete indicator", we get an error "use only foreign currency" This is due to the fact that validations against Document Type and Currency was created in 2003 and are in full operation now. It is hard coded thus i can not remove this easily.
Now when attempting to get around this by changing the Document Type to a Local Purchase order or trying to delete a line, we get the error below.
"Document number 45* not within defined interval"
Number ranges do come to mind based on the error description, however, Local Orders have a number range of 45, International Orders have a number range of 47. In this case, the order is created as a International Order BUT the number range is 45*, again, due to a lack of validations/incorrect config back in 2000
Do any of you know a possible solution to such a problem.
Regards,
Jody Ponnusami.The validation of document type and currency is not standard, and if this validation cannot be deactivated, then you will have to resort to making changes in debug mode. Put a breakpoint at the relevant check and force it to accept the current combination.
The second option is to update EKPO table manually using SE16N. Set the delivery completed indicator to X. -
KE30 report - Unable to see billing document number
Dear SAP community
I have a requirement to be able to show the billing document number in a KE30 report.
Background as follows:
Sales order created, delivery is created, stock is picked and transferred and delivered, post goods isssue and invoice created to produce the accounting documents.
The requirement is to show a report which is broken down by sales order and then further drilldown to things like cost centre and billing document numbers.. On running the report, no billing document number is shown.
I have created a custom characteristic called WWINV in KEA5 using data element VBLEN_VF, Domain VBLEN, check table VBUK.
WWINV is then assigned to the operating concern (op concern regenerated).
Next step I created a lookup in KEDR
Source fields:
Origin Field Name Name Assigned Origin Field Name Name
VBRP VBELN Billing Document = CO-PA KAUFN Sales Document
VBRP POSNR Billing Item = CO-PA KDPOS item number
Target Fields:
VBRP VBELV Originating Document = CO-PA WWINV Billing DocMessage" no. DS 016.
For the above error, you can check note 312392
thanks
G. Lakshmipathi -
Open the field purchase document number in vendor invoice
Hi,
I've to open the purchase document number field in the vendor invoice transaction (FB60) for the reconciliation vendor account?
I've done these operations in customizing:
- set the field purchase order in the Field status group like optional
- set the tield purchase order in the posting key control (31 and 21)
Could you suggest me how to open the field?
Tks!
Regards,
GaetanoHi,
Can you please provide me the solution for this as I too am facing a similar problem. While posting an entry using FB01/F-43, for posting key 31(Vendor Invoice), despite making Purchasing Document field optional in field status group of the posting key as well as Reconciliation (GL) Account, the Purchasing Document field is not appearing.
Thanks and Regards,
Sumita -
2LIS_02_SCL: goods receipt and invoice document number
Hi,
the BI Content documentation for the [Purchasing Data (Schedule Line Level) (2LIS_02_SCL)|http://help.sap.com/saphelp_nw04/helpdata/en/8d/bc383fe58d5900e10000000a114084/frameset.htm] DataSource reads:
The DataSource also provides information about the documents that are posted with regard to the purchase order, such as goods receipts and invoices.
The point is: where are the documents' numbers ?
When I test the extraction, I get the expected number of records, provided that those records with ROCANCEL=X (cancellation of Data Record) are taken into account.
For example, for a Purchase Order (PO) Schedule Line that has 3 Goods Receipts (GR) and 1 Invoce (IR), I get:
- 1 record with BWVORG=1 (SAP BW - Transaction Key) and ROCANCEL blank, for the PO document;
- 6 records for the 3 GR documents (BWVORG=2);
- 2 records for the 2 IR documents (BWVORG=3).
Therefore the DataSource provides the needed level of granularity. Just the field I need is missing, i.e. BELNR! Is there any trick to get it or the only way out is enhancing the DataSource?
Thanks, [Davide|https://wiki.sdn.sap.com/wiki/display/profile/Davide+Cavallari]
Edited by: Davide Cavallari on Jan 18, 2008 5:38 PMI think I would choose the option that takes advantage of 3 DataSources:
- 2LIS_02_SGR, for GR number;
- 2LIS_06_INV, for IV number;
- 0FI_GL_4, for document amount, as well as some other informative characteristics, such as document type (useful when the document is an invoice), referred document (the field that contains the supplier's document number), document date, posting date
The Logistic DataSources would basically provide the link between GR and IV, while the General Ledger DataSource would provide the financial information.
In fact an analysis for controlling purchase expenditures at a detailed level is required. Not just a simple analysis of expenses for vendor, or even purchase document, but for any financial document posted to the General Ledger. This analysis has sort of a financial perspective. Probably it's not the kind of strategic analysis best suited to BI. It has a more tactical, operational nature. And maybe BI is not the best platform for developing this kind of application.
Anyway, if you have better ideas or any suggestion on this topic, please feel free to comment!
Cheers, [Davide|https://wiki.sdn.sap.com/wiki/display/profile/Davide+Cavallari|My wiki profile]
Edited by: Davide Cavallari on Jan 19, 2008 8:16 PM -
"Enter the document number" in BAPI_SALESORDER_CHANGE.
Hi,
I've got the following error:
Call of BAPI_SALESORDER_CHANGE gives us an error V1 045 "Enter the document number". We are sure the call is proper (document number is send). The errors occurs in function module SD_SALES_DOCUMENT_READ in lines 60 and 61:
60 VBAK-VBELN = DOCUMENT_NUMBER.
61 PERFORM BELEG_LESEN(SAPMV45A).
In line 60 field VBAK-VBELN is set but in form BELEG_LESEN(SAPMV45) is initial. The value of field is checked in MV45AF0B_BELEG_LESEN line 53.
53 if vbak-vbeln is initial.
54 message e045.
55 endif.
The error occurs only when we have mass changing of sales order and posting deliveries in reference to sales order. Single operation doesn't make any problem.
Our system:
SAP_APPL 470 with SAPKH47026
SAP_BASIS 620 with SAPKB62059
Anyone met it before? I'm quite confused.
Best regards:
Lukasz TylutkiHi Lukasz,
If I understand correctly the problem occurs with multiple calls of the BAPI within the same program call. As a general rule of thumb, this could be due to parts of the program not properly initialized. Don't try to correct the BAPI - it's hopeless.
I suggest you make use of the suggestion in note 760068 to start a new task.
This can be achieved as follows:
Call function 'XXXXXX' starting new task 'BLABLA'
performing yyyyy on end of task
...rest of function interface (only export and tables)...
wait until semaphore = 'X'.
form yyyyy
receive results from function 'XXXXXX'
importing...
tables...
exceptions....
semaphore = 'X'.
endform.
This way all data are initalized in a different LUW, thus not influencing the next function executions. An alternative would be to submit programs for each function call, passing the interface through export-import parameters, but it doesn't look as nice.
Best regards,
Stratis -
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,
SatriaOk, 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 -
For BSID- Accounting Document Number corresponding PO Number is required
Hi Gurus,
I have got a requirement to develop a report similiar to 'FBL5N' . I am getting the details of open and cleared items of a customer from BSID and BSAD tables respectively. My requirement is also to fetch the corresponding PO number of the LINE items displayed in the report.
Can any one suggest how can I fetch PO number with Accounting document number(BSID-BELNR) or (BSAD-BELNR).
Your efforts in this matter are deeply appreciated and <<removed_by_moderator>>.
Thanking You,
ZIa.
Edited by: Vijay Babu Dudla on Jan 28, 2009 11:07 PMIf you have fields BSID-VBEL2 and BSID-VPOS2 are populated with the sales order, than access VBKD with the Sales Order to get the Customer PO (VBKD-BSTKD)
Or
First, You need to get the Billing document. Access BKPF with the BSID-BELNR to get the AWKEY where AWTYP = 'VBRK'
Now, you can go to SD document flow with the billing document to find out the Sales Document. Access VBKD with the Sales document to get the Customer PO
Regards,
Naimesh Patel -
Free item reference document number not populated in MIGO item screen
Hi
I have a requirement where in I would need to populate the reference document number in the MIGO item when I am cancelling a goods receipt in case of free items.
In standard SAP system we know that it would only be populated when GRbased IV is ticked in PO but in free item PO this is not ticked . So was enquiring if any body knows how we could populate the reference document number at GR cancellation in MIGO item level for free items .Hi,
If you mean the field MSEG-SMBLN, then it is always populated at cancellation, no matter the GR-based IV flag.
BR
Raf -
Alphanumeric Document number for Sales order
Dear Experts,
I got a requirement, The sales order number after saving the document the SO document number should be SO ( Alphabetic) 00012074 (Numeric) ie. SO00012074,
The numeric portion will come from the number range assigned for that document and Alphabatic portion should come depending on the transaction code and document type.
in SAPMV45AFZZ User-exit
FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.
This exit triggers before call function 'NUMBER_GET_NEXT' that generates document number for the current document and return to the field vbak-vbeln and finally this is the document number, In the debug mode if I change the number for example 0000012074 to SO00012074 runtime I can get the expected number and also it is saved in the system. But in the real time it is not possible as this coding in not any user-exit.
So I can't use this user-exit for the to get alphanumeric number in the document.
FORM USEREXIT_SAVE_DOCUMENT
This exit triggers after the generation of document number. In this user exit if we change the document number for example 0000012074 to SO00012074, it shows the expected number after saving the sales order but it is not actually saving in the database. Means if we try to open the same SO for example SO00012074 in va02/va03 it is showing
SD document SO00012074 is not in the database or has been archived but if we try open 0000012074 in va02/va03, we can get the document.
We can use this user-exit but if we change the value of vbak-vbeln in this user-exit finally it is not saving in the system.
Can anybody help me how I can achieve the requirement ?bro...
You have got an option to copy the program the standard program into zprogram....
goto se38 and copy the program into a z program....and in doing so copy everything from the ctandard program ie vaients,documentation and function module etc.
now change this z program to meet your need....
both way if you dont make lot of changes you will get same performance with your work done
regards -
Unable to capture fi document number using transaction ABUMN
hello guys,
I am trying to create a bdc for transsaction ABUMN which generates a fi document at the end.
but in BDC the bdcmsgcoll table is empty.
is there any way so that i can capture document number as soon as it is posted.
Please help, Thanks in advance.
Thanks & Regards,
Deepak.can you run your BDC after call transaction method if you get success message based on your input values, then goto the document tables and pick that values and pass the success message.
CALL TRANSACTION tcode USING gi_bdcdata "#EC CI_CALLTA
MODE gv_ctumode
UPDATE gc_cupdate
MESSAGES INTO gt_messtab.
l_subrc = sy-subrc.
IF sy-subrc <> 0.
WRITE: / 'CALL_TRANSACTION',
tcode,
'returncode:',
l_subrc,
'RECORD:',
sy-index.
LOOP AT gt_messtab INTO gwa_messtab WHERE msgtyp = 'S'.
CLEAR lwa_t100.
SELECT SINGLE * FROM t100 INTO lwa_t100 WHERE sprsl = gwa_messtab-msgspra
AND arbgb = gwa_messtab-msgid
AND msgnr = gwa_messtab-msgnr.
IF sy-subrc = 0.
l_mstring = lwa_t100-text.
IF l_mstring CS '&1'.
REPLACE '&1' WITH gwa_messtab-msgv1 INTO l_mstring.
REPLACE '&2' WITH gwa_messtab-msgv2 INTO l_mstring.
REPLACE '&3' WITH gwa_messtab-msgv3 INTO l_mstring.
REPLACE '&4' WITH gwa_messtab-msgv4 INTO l_mstring.
ELSE.
REPLACE '&' WITH gwa_messtab-msgv1 INTO l_mstring.
REPLACE '&' WITH gwa_messtab-msgv2 INTO l_mstring.
REPLACE '&' WITH gwa_messtab-msgv3 INTO l_mstring.
REPLACE '&' WITH gwa_messtab-msgv4 INTO l_mstring.
ENDIF.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = gwa_messtab-msgid
lang = sy-langu
no = gwa_messtab-msgnr
v1 = gwa_messtab-msgv1
v2 = gwa_messtab-msgv2
v3 = gwa_messtab-msgv3
v4 = gwa_messtab-msgv4
IMPORTING
msg = l_mstring
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CONDENSE l_mstring.
IF NOT l_mstring IS INITIAL.
WRITE: / gwa_messtab-msgtyp, l_mstring(250).
MESSAGE l_mstring TYPE 'I'.
ENDIF.
ELSE.
WRITE: / gwa_messtab.
ENDIF.
ENDIF.
ENDLOOP.
READ TABLE gt_messtab INTO gwa_messtab WITH KEY msgtyp = 'S'.
IF sy-subrc NE 0.
MESSAGE s069(msg class)
ENDIF.. -
Last Purchase Order and FI-Document Number of an Vendor
Hi,
i need for an Vendor the last purchase Order and FI-Document Number.
For purchase Order i read EKKO sort this and get the last one.
For FI-Document Number i read BSIK and BSAK sort this and get last one.
Question: is there any faster way (CLASS, FM or TABLE) to get what i need??
Thanks.
Regards, DieterHI Dieter,
You can use transaction code ME2L , where you can list of PO issued a particular vendor. List list shows Po no. indecending order. You can double click select the latest PO and through PO history you can get the FI Document no.
I hope this ansers you query.
Regards
Harish -
Purchase order and FI Document Number - R/3 extractor
Hello Experts - I have a question on the BW extractors on the R/3 side. Are there any standard extractors out there where I can get Purchase Order information and related FI document number information. In case if I have to create one what tables do I need to reference to create generic extractor. Thanks for your help.
Regards,
Venu.Hi Venu,
This could be better done on a standard FI extractor by enhancing it with purchase order information.
Atleast, this is the way we did in our scenario.
Have 0FI_GL_4 enhanced with data from EKKO, EKPO tables, with required feilds. This enhancement may not be quite detailed.
Also if you are interested in a complete gen extr. then the above two tables along with BSEG should do.
Naveen.A -
Report with Invoice and Accounting Document Number
Dear Experts,
Here i have a requirement.
I wanna a report which gives a Invoice (MIRO) and its accounting documents (Follow on document) in one page. Because If I view a MIRO document, for checking the accounting document, I need to click on Follow on doc, then I'll get.
But If wanna see for 1000 MIRO documents with accounting document number, then I don't want to click 1000 times to see the account doc for respective Invoice number.
The approximate format is,
Column 1 Column 2 Column 3 ....................... Column n
MIRO (Invoice number) Accountting Doc Number
5100000099 5100000011
Which tcode will give the both in one screen?
Thanks in advance
Regards,
navahsekHi,
Enter Sork Key 002 for Vendor Master Record.
and also you can check the Report in ECC 6.0
MIR5 - Display List of Invoice Documents
There you select Export Mode --> Display Accounting Document Number.
You can get Report FI and MM Document Numbers.
Hope It will Clear.
Regards,
Kishore -
Reference document number of 103 movement not seen in 105 movement documnt
Dear all,
I have made a material document with movement type 105 with reference to 103 document.
After creation, the field LFBNR in the 105 document is not updated with the 103 document number.
In all other cases the document number of 103 movements are updated in the the field of 105 document.
Can anybody can share me if you have any information about this scenario and what would be the solution.
Thanks....
Hari.Hi Murugan,
I am giving you more clarification.
I have created a Good Receipt through MIGO using 103 movement. Later I have created 105 movement with respect to 103 movement reference through release blocked stock.
After creation of documents, when checked the document created through 105 movement there is no reference number of 103 document number found in the document number of 105 movement.
In the table MSEG field LFBNR is supposed to get updated with the reference number of the document created through 103 movement.
In this case, this reference number is not updated in the table MSEG-LFBNR.
My question is that how the document with 105 movement get posted without the reference of document of 103 movement and what would be the reason.
Hope the question is clear.
Awaiting for your replies.
Thanksss....Hari.
Edited by: Harikrishnan_sap on Nov 13, 2009 2:02 AM
Maybe you are looking for
-
Unable to view older emails using native email cli...
I would be grateful for some help. I use my inbox to store messages until I have acted on them. The native email client on my E55 will not keep messages older than a month. Is there a work around or another email programme that someone can recomme
-
Firefox won't start, there is no error message and it is not already running.
Hi, When I try to click on firefox, the little wait icon appears and then disappears. Nothing opens, not even safe mode. I've looked at the "Firefox won't start and there is no error message" help section and looked at my task manager processes. It s
-
How to print the value if a condition is satisfied
Hi, Please suggest me how to print a text as 'Do not print' when a field in the selection screen is entered. If in the selection screen (s_field1) we have entered a value as ZESM then the value filed of wa_vbak-auart should check the the values in s
-
Error when searching for entries in secure store
Hi All, I need to assign the certificate in the sender agreement for signature verification and decrpting. So when i search for entries, i am getting the error as " Error when searching for entries in Secure Store". Details of the Error is showing
-
macbook pro retina 13 inch using Yosemite I tried to dowmload garageband when the download gets so far it asks for password to make alterations to my computer I place in the p/w I use daily and the box shakes not recognising the p/w I know the p/w is