Getting the last active number purchasing info record
Hi,
I was trying to get the last active number of the purchasing info record.
As in the ME21N, while creating a purchase order, once we have entered the material number, the system automatically returns the adequate number of the info recored, but I could't identify (through debug) which was the function module or method call used to get it.
I will be really thankful if somebody could help.
Thanks & regards.
Thanks to all for your answers. I finally figured it out with the help of a functional consultant.
To identify the last active number purchasing info record, we retreive from table EINA, and there, the field LOEKZ should be empty.
Basically, we only have one info record number per couple material/vendor.
Ragards
Similar Messages
-
Need to query the database to get the last sequence number
Hi all
I am trying to get the last sequence number of the last row inserted into my Oracle database. Please could someone give me the SQL which would allow me to do this - using Oracle SQL Explorer I have confirmed that there is a sequence on the table which is called: XYZ_SEQ and the code for this is:
CREATE SEQUENCE "MY_USER_NAME"."XYZ_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 21 CACHE 20 NOORDER NOCYCLE ;
My Java application is inserting a row into my table and to insert a new row I need to have the last sequence inserted +1 so the new row can be added.
Any help would be much appreciated.Hi,
Welcome to the forum!
If you are using a sequence just do (example):
INSERT INTO TABLE_NAME
(COL1,
COL2)
VALUES
(SEQUENCE_NAME.NEXTVAL,
OTHER_VALUE);to obtain (and use) the next number in the sequence when you are inserting.
If you have a sequence to use for a specific table, you should use it when your insert new data (no matter your are doing that: java application, procedure, etc). Doing this you avoid some problems when you have the sequence 'out of date' about the associated data.
Regards,
Edited by: Walter Fernández on Sep 19, 2009 10:08 AM
Edited by: Walter Fernández on Sep 19, 2009 10:10 AM -
Get the last spool number created
Hi,
I need to get the last spool number that the system has assigned to an output ABAP list.
I know that the SO_SPOOL_READ function give the information I want but I do not find the way to obtain the code. I thought that this function is an internal function of SAP, but it does not exist.
Could anyone facilitate that code?
Do anyone know other way to obtain that last spool number?
Thank you very much for your timeThanks Ram,
Your instructons were just what I needed.
Finally, I use the sy-uname restriction to select the last spool number created for the user:
DATA: BEGIN OF it OCCURS 0,
RQIDENT LIKE TSP01-RQIDENT,
RQCRETIME LIKE TSP01-RQCRETIME,
END OF it.
SELECT * FROM TSP01
APPENDING CORRESPONDING FIELDS OF TABLE it
WHERE
RQOWNER = SY-UNAME
ORDER BY RQCRETIME DESCENDING.
LOOP AT it.
spool_num = it-rqident.
EXIT.
ENDLOOP.
Thanks a lot. -
How to set price in PR refer to last po or purchase info record?
Hi,
We meet problem for moving average material, do you know how to set Price in purchase request refer to last po price or purchase info record price, not material master valuation price? As the material price valuation may be low than current purchase price. When dept manager release pr strategy according to value in PR, if pr price not same with PO price, then release will be meaningless.
Thanks,
Li JingHI Li Jing
you can use usre exit for the same.
Regards,
Yagnesh Bhatt -
How to correct the net price of Purchase info record
Hi
When I create the purchase info record, I input the wrong net price.
And when I use ME12 to change the purchase info record, i find the net price cannot be modify.
How to resolve it?
Thanks a lot.MR21 and MR22 are used to modify the value of the stock for the material.
I understand that you want to change the price in the info record and the field appears as non modifiable.
In order to modify this value, you should use ME12 and press F8 or the button Conditions and input a new price. Please note that you can also fix a time fence for validity of this data.
Hope it will help.
Regards,
Flaviano. -
How to retrieve the long texts from purchase Info record (ME13)
Hi,
How do I retrieve the long texts data from the tab, Texts of the Purchase Info record(ME13). I want to retrieve the current long texts data(long text1, long text2 long text3, long text4) for a given purchase info record. These long texts points to the structure BRM06I.
So, now how do I fetch the data from the structure BRM06I. Is there any function module for the same..
Thanks.Hello,
Texts are stored in tables STXH & STXL (header and item). You can search these tables by selecting Text object = EINA and Text name = Info Rec #. The text ID's you will see are the ID for various texts maintained.
Cheers ! -
How to get the last SCN number from catalog database
Hi All,
I have a catalog database where my PROD database is registered. Evereyday at 12AM rman takes the hot backup of PROD.
Now I want to create a auxillary database using the last RMAN backup, for this I want to restore using the SCN from the catalog views.
Please help me to get the SCN number from the RC_ views.
Regards,
Bikramasifkabirdba wrote:
Current SCN:
Use the dbms_flashback package to get the current SCN. This value will be used during instantiation at the destination site, as well as by RMAN when duplicating the database.
SET SERVEROUTPUT ON
DECLARE
until_scn NUMBER;
BEGIN
until_scn:=
DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER;
DBMS_OUTPUT.PUT_LINE('Until SCN: ' || until_scn);
END;
Regards
Asif KabirHello,
i am a bit confused,
SELECT CURRENT_SCN FROM V$DATABASE;
6272671324
and from your package
SET SERVEROUTPUT ON
DECLARE
until_scn NUMBER;
BEGIN
until_scn:=
DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER;
DBMS_OUTPUT.PUT_LINE('Until SCN: ' || until_scn);
END;Until SCN: 6272671267
why are they different, and why first result is lower than yours? can you explain please, thank you
Ugur MIHCI -
How can i get the last delete picture's info from tlf?
if i delete the picture from the tlf i can't make the tlf undo
and I want to get the picture'info with I last time delete from tlfCan you let us know what you are doing to delete the picture, and also how you are undoing it? If it is being deleted through the EditManager delete function, the delete should undo correctly. Some example code to illustrate the problem would help.
Once the picture has been deleted, TLF has no further reference to it. If you want to keep a reference, you will have to get it before it has been deleted. If you don't have control over the delete, you could find out when the image is deleted by listening for FLOW_OPERATION_END events.
- robin -
SAP MM:Purchase info record
Hi experts,
Can anyone tell me the complete process of purchase info record (ME11).Complete screen steps what are the tabs are there in ME11.I want screenshots of ME11
Hope for good answer from experts
Regards
sandhyaHi Sandya,
If you want to create it manually you can do so by using the SAP transaction code ME11. At the initials screen the following are the input values:
Vendor Number
Material Number
Purchasing Organization
Plant
Info Category
After key in these values at the initial screen you can maintain rest of the information related to material and vendor in the subsequent screen. These information can be group as follows:
Purchasing Organization Data
Conditions
Texts
As per the business requirement you can make some of the fields (information) as mandatory by customizing. You can also restrict the end user from modifying these information once saved in the system.
In the standard SAP purchasing info record is maintained as a source of information for Purchasing.
It contains some of the information from material master and some of the information related to its supplier/vendor.
Hence Material and Vendor Master is pre-requisite for a purchasing info record. You can also maintain the
purchasing information record without material master record if your material is for direct consumption.
Here you can use material group instead of material master. You can have more than one purchasing information
record for a single material if it is being supplied by more suppliers, one for each supplier. Information maintained
in purchasing information records is used as default data in documents such as purchase orders.
In standard SAP Info record stands for information record which contains concise information about a vendor and a material that Purchasing already procures from that vendor. An info record thus represents a material-vendor relationship. Following are some of the information maintained in Info record:
Units of measure in which materials are ordered from the vendor
The applicable reminder levels
Prices and Conditions with validity period (Present and Future)
Applicable Tax Code
Planned Delivery Time
Standard & Maximum Quantity
Tolerance limits for over-deliveries and under-deliveries
Number of Last Purchase Order or Quotation
Text
Vendor evaluation data
An indicator for showing vendor as regular vendor for the material
The vendor sub-range to which the material belongs
The availability period during which the vendor can supply the material
Thanks,
Swamy H P
Edited by: swamy kumar on Feb 8, 2010 3:00 PM -
Hi
When I am transfering purchase info record from R/3 to APO its creating a external procurement releationship in APO but its not populating the overdelivery and underdelivery tolerance values. Does anyone knows why tolerance values are not refelecting on APO side and how I can resolve this problem?
Regards
PravinHi Nikhil
I am not getting any error message while purchase info record CIF. Also I confirmed that tolerance values are maintained in the purchase info record. Do you any customer exit for modifying the data in the purchase info record? I know customer exit CIFMAT01 which we can use to modify the material master data and we have use this to populate the delivery tolerances on material master in APO but i need to populate the delivey tolerances field on external procurement relationship in APO whcih comes from purchase info record CIF from R/3.
Thanks
Pravin -
Authorization object in Purchasing Info Record
Hello,
I can't find an authorization object in the purchasing info record to block the acces to the general fields at client level, user by user.
I have found only the following authorizations object:
M_EINF_EKO : Purchasing Organization in Purchasing Info Record
M_EINF_EKG : Purchasing Group in Purchasing Info Record
M_EINF_WRK : Plant in Purchasing Info Record
S_TCODE : Transaction Code Check at Transaction Start
An authorization object like 'M_MATE_MAN : Material Master: Data at Client Level' doesn't exist for the Purchasing Info Record?
Thanks,
Fabien.Dear Friend
If dont have Authorization object in Purchasing Info Record, You can create the Spool request Number in SU53 Transction Code, send to Your Basis people, he will priovide the Authorization object in Purchasing Info Record. -
How to get the last series of an invoice- DebitMemo
Hi,
I need help to know how I can get the last series number of an Invoice with documentsubType = bod_DebitMemo. I can get the las series number of Invoices with the following code:
private int getSeries(string documento)
SAPbobsCOM.CompanyService oCompServ;
SAPbobsCOM.SeriesService oSeriersService;
SeriesCollection oSeriesCollection;
Series oSeries;
DocumentTypeParams oDocumentTypeParamas;
int elAnterior = 0;
try
//Get company service
oCompServ = vCmp.GetCompanyService();
//Get series service
oSeriersService = (SAPbobsCOM.SeriesService)oCompServ.GetBusinessService(ServiceTypes.SeriesService);
//Get series collection
oSeriesCollection = (SAPbobsCOM.SeriesCollection)oSeriersService.GetDataInterface(SeriesServiceDataInterfaces.ssdiSeriesCollection);
//Get document type params
oDocumentTypeParamas = (SAPbobsCOM.DocumentTypeParams)oSeriersService.GetDataInterface(SeriesServiceDataInterfaces.ssdiDocumentTypeParams);
//Set document type
oDocumentTypeParamas.Document = documento;
/*if (documento.Equals("13"))
oDocumentTypeParamas.DocumentSubType = "bod_DebitMemo";
//Get series collection
oSeriesCollection = oSeriersService.GetDocumentSeries(oDocumentTypeParamas);
oSeries = oSeriesCollection.Item(0);
elAnterior = oSeries.NextNumber;
catch (Exception e)
MessageBox.Show("Se presento un error: " + e.Message);
return elAnterior;
And I try to use the DocumentSubType property of DocumentTypeParamas but it seems to be invalid,
I'll appreciate if you can help me....
Thanks.....Hi,
Use describe statment.
data: lv_line type i.
Describe table itab lines lv_line.
read table itab into wa_itab index lv_line.
regards,
Santosh Thorat -
How to get the last page SAP Script form
How to get the last page SAP Script form.
I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
RegardsHi
You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
From SAP Help:
This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
/: IF &NEXTPAGE& = '0'
Last page
/: ENDIF
Max -
Purchase info record(PIR).
Hi Folks,
I have some questions regarding the archiving of purchase info records.
1. what are the functional dependencies that we need to check for before Archiving a PIR.
2.bold I was unable to Archive some Purchase info records even after it is marked as complete (LOEKZ = 'X') is there any other things that need to be cheked for deletion or there is any other dependencies??
Please let me know the possibilities to resolve the issue..Hi
Purchase info record is a condition record which facilitates in defualting the Conditions & some Vendor & Plant Specific Data.
If you have already marked them from deletion, that means they are not in use.
That means you can archive them.
Inforecords with category Consignment, pipeline need to be checked , as from these inforecords only the prices are picked.
If these donot exits then you will not be able to create the PO's,Please ensure that.
apart from that you can archive the PIR's flagged for deletion
Thanks & Regards
Kishore -
Extract purchasing info records
Hi experts,
Please could you tell me the process to extract purchasing info records for a plant. they need to do a mass update.
Thanks in advance.hi,
check table EINA, A017 in SE16 tcode...and can mass update frm MEMASSIN...
Regards
Priyanka.P
Maybe you are looking for
-
Creation of transfer requirement when posting material document
Hi I've copied standard movement 311 into 911 but i need another behaviour on this new mov. I use this mov in trx MB21 in order to create a reservation. When I post it in MIGO, I need to create a transfer requirement instead a Posting Change Notic
-
Font Problem in Smartforms output
Dear all, The smartforms which i have developed was working fine before. All on a sudden, the print out and print preview of all smartforms is not giving proper output. I am facing following problems. Whatever the font size we are defining in smartfo
-
Submit by Email... but to where?
I have created a form for users to fill with a "Submit by Email" button for users to send in their finished form. I created the "Submit by Email" as standard button object, contol type:Submit, submit as:PDF, and submit to URL: [email protected] While
-
Substitution: optical drive to 3.5mm HD
Hi all, Can I substitute the optical drive from a mid 2010 MacBok Pro to a 3.5mm Hard Disk, or it must be 2.5mm? Thanks in advance, Pedro.
-
What is bonjour service and how do I turn it back on?
I somehow turned it off. and now I cant do anything in itunes. plus it wont recognize any of my devices. everytime I go into itunes store it says error -3212. I uninstalled itunes last night and downloaded it again this morning (I hadnt updated since