DPR_ATTRIBUTES - Automatic number generation of Project ID
Dear All,
I am using the method 'SET_DEFAULTS_UPON_CREATION' in BAdi 'DPR_ATTRIBUTES' for automatic number generation of Project ID in cProjects.
I am able to change the project ID with my new number in CS_ATTRIBUTES. But the same is not getting populated to cprojects screen.
My code --
FIELD-SYMBOLS:
<ls_attributes> TYPE dpr_ts_project_int.
CASE flt_val.
WHEN cl_dpr_co=>sc_ot_project.
ASSIGN cs_attributes TO <ls_attributes>.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'ZXX'
IMPORTING
number = g_pid.
CONCATENATE g_ptype g_pid INTO g_newpid SEPARATED BY '-' .
MOVE g_newpid TO <ls_attributes>-project_id.
ENDCASE.
While debugging the new project ID can be viewed in CS_ATTRIBUTES.
Can you please let me know what might be the issue for not populating on cprojects.
Hi Matthias,
Thanks for the reply.
Can you please help me where exactly the external_id attributes needs to be changed.
Your help is greatly appreciated.
Matthias
Similar Messages
-
Automatic number generation using the function module
Hai Everyone,
I have the doubt in automatic number generation.
i find the function module. the function module is
report 123.
*DATA: RC LIKE INRI-RETURNCODE,
NUMBER(10) TYPE C.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING OBJECT = 'HUGO'
NR_RANGE_NR = '01'
IMPORTING RETURNCODE = RC
NUMBER = NUMBER.
CASE RC.
WHEN ' '.
everything o.k.
WHEN '1'.
the assigned number lies in the critical area.
WHEN '2'.
this was the last number, next time the first number
will be assigned
ENDCASE.
write:/ number.
in that function module what i want to give the Exporting Object 'HOGO'. where i want to define the number range. what is meant by 'HOGO'.
If any one faced the same problem plz help me.
Thanks and regards,
P.Naganjana ReddyHai Chandrasekhar,
in that what i have to give. Plz help me in this.
Subobject data element
To-year flag
Number length domain
No interval rolling
Number range transaction
Warning %
Main memory buffering
Group table
Subobject field in group table
Fld NoRangeElement
Fields int./ext. no.range no.
Fld. NoRangeNo
Display element text
Thasnks and regards,
P.Naganjana reddy -
Hi All,
How can I generate automatic number's in Business patner code? I tried to execute one query for this , but error came while executing this query.Error message is: 'Error (8180) encountered'. Please help me out from this
thanks in advance bbn
Query:
-- This Query generates a Business Partner Code automatically
-- depending on the Card Type i.e. C100001, S1000001, L1000001
-- Prerequisites:
-- 1. The first customer, supplier and lead number has to be entered manually
-- 2. The number must start directly behind the cardtype, no leading zeros (NOT C000100)
-- Edda, March 27, 2003
SELECT $[OCRD.CardType] +
CONVERT(char(7),MAX(CONVERT(int, SUBSTRING(CardCode, 2, 6)))+1)
FROM OCRD
where OCRD.CardType = $[OCRD.CARDTYPE]
FOR BROWSE
SELECT
CASE OCRD.CardType
WHEN 'C' Then MAX(OCRD.CardCode)+1
When 'S' Then MAX(OCRD.CardCode)+1
Else ''
END
FROM OCRD WHERE OCRD.CardCode <> '20001' and OCRD.CardType = $[OCRD.CARDTYPE] Group by OCRD.CardType
FOR BROWSEHi!
Hope it'll be not so hard to complete my query in accordance with your requirements:[code]DECLARE @NumLen Int
SET @NumLen = 7
IF (SELECT Count(*) FROM OCRD) = 0
BEGIN
IF (RTrim($[OCRD.CardType]) = 'S')
SELECT 'V'SUBSTRING('0000000000',1,@NumLen-2)'1'
ELSE
SELECT RTrim($[OCRD.CardType])SUBSTRING('0000000000',1,@NumLen-2)'1'
END
ELSE
IF (RTrim($[OCRD.CardType]) = 'S')
SELECT
'V'
+
SUBSTRING('0000000000',1,@NumLen-1-LEN(RTrim(Max(CAST(SUBSTRING(CardCode,2,99) AS INT))+1)))
+
RTrim(Max(CAST(SUBSTRING(CardCode,2,99) AS INT))+1)
FROM
OCRD
ELSE
SELECT
RTrim($[OCRD.CardType])
+
SUBSTRING('0000000000',1,@NumLen-1-LEN(RTrim(Max(CAST(SUBSTRING(CardCode,2,99) AS INT))+1)))
+
RTrim(Max(CAST(SUBSTRING(CardCode,2,99) AS INT))+1)
FROM
OCRD[/code]HTH -
Custom Employee Number Generation Using Fast Formulas
Hi,
I have a requirement to generate custom employee numbers like "EMP100001". we have already created a business group with the setting of Employee number generation as Automatic. but we need to generate custom employee number as Format given above instead of automatic number generation.
I have created my own PL/SQL Package to generate custom employee number as per Person Type. Also created a Fast Formula Function with the following parameters -
Name = Get_Custom_Number
Data Type = Text
Class = External Funtion
Alias Name = NULL or what you want the alias to be
Description = Returns the next custom number value
Definition = CUSTOM_EMP_NUMBER_GENERATION.Get_Custom_Number (PL/SQL Function)
Proving the following Context usages and Parameters details to the Fast Formula Function -
Context usages:-
Number = 1
Context Name = BUSINESS_GROUP_ID
Data Type = Number
Parameters as defined in PL/SQL function
1 p_legislation_code Text Input Only
2 p_person_type Text Input Only
3 p_person_number Text Input Only
4 p_party_id Number Input Only
5 p_person_id Number Input Only
6 p_national_id Text Input Only
7 p_date_of_birth Date Input Only
Than i created a Fast Formula using the following navigation
Total Compensation > Basic > Write Formula
with following details -
Name = EMP_NUMBER_GENERATION
Type = Person Number Generation
Description = Returns next Employee number
and wrote my formula code.
When i created a Employee from Enter and Maintain People screen it is showing automatic number instead of my custom employee number.
I m not able to find where i m missing the logic or some parameters?
If anyone has come across such situation, please provide some pointers here.
Thanks
RenuWhat is the application release?
Please review these docs and see if it helps.
Is it Possible to Update Generate Employee Number Method From Automatic to Manual? [ID 393827.1]
Need To Change The Employee Numbering From Automatic To Manual [ID 291634.1]
Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr [ID 452044.1]
How to Prefix a Zero on Custom Employee Numbers [ID 822425.1]
How To Implement Custom Person Numbering Using FastFormula Based on User Person Type Instead of System Person Type [ID 372696.1]
Thanks,
Hussein -
Oracle Gurus,
Customer creation number generation as Automatic, where we are doing this setup in applications.
For supplier we give the setup in Financial options but I am not able to trace out for customer automatic number generation.
If anyone know the setups, please let me know the steps and setups.
Please advise.
Edited by: satish.ygl on 09-Sep-2012 19:21Hi Satish,
Set the sequence number
Pl. go thru following navaigation path :
Go to Application Developer responsibility >Menu > Application> Database > Sequence
Query on sequence RA_CUSTOMERS_NUM_S and set Start Value to 20000 .
Retest it.
HTH
Sanjay -
Employee and contractor number generation
We are implementing Oracle HRMS Rel 11i. We would like to record regular employees and contractor details. For contractors, we need to track and report on their assignments (department, job, location) and payrate alongwith their general information. So I feel that contractors should correspond to 'Employee' person type. A further requirement is that the employee/contractor number generation needs to be automatic and separate ranges (employees starting with 1 and contractors starting with 5000) need to be used. Is it right to set contractors as employee type and is automatic number generation using separate ranges possible?
Yes, you should have contractors as employee system type, otherwise you can not pay them.
we can not define a sequence to that with out wirting custom code.
But we can do it by creating either a new user person type or user status (on assignment) and use that to track the contractors. which also gives you flexibility in reports, by filtering the assignment status or person type, which ever you want to configure. -
Enhancement for Automatic Serial Number Generation
Hi,
Has anybody worked on the enhancement iqsm0001?
If so, please give me some idea on how to use this enhancement for automatic serial number generation.
Thanks for your kind help.
Regards,
Renjith Michael.Hi Renjith,
You can check the following link, Hope it helps you to some extent:
Re: Implement unique serial number within a client
And you can also try user exit EXIT_SAPLIPW1_001 for Automatic serial number assignment. -
Automatic Batch Number Generation in tcode MIGO...
Hi Experts,
There is automatic Batch Number is generated after clicking on Pushbutton "Check" in transaction code MIGO. Instead of that user want Batch Number Generation after clicking on Pushbutton "Post" . Can anybody tell me the procedure for the same..
Thanks in advance.
Best Regards,
VinayakHI Vianayak,
You can implement a Badi for your logic.
You can implement Badi :MB_MIGO_BADI and write your logic in method CHECK_ITEM .
Here you can restrict the Batch number based on Fcode for the Check and Post buttons.
Like if the user click on Check button: based on the fcode for the check button u can restrict it and similarly if the user click on Post button you can pass the value for Batch number. This method get called in both the cases.
Hope this solves your problem.
Regards,
Satyam -
Automatic employee number generation
Hi,
When installing Oracle HR, we had choosed manual employee number generation and then we changed to the automatical mode. Now, we need to return back the the manual mode.
I ask if there tips to do that?
best regards,
Mourad.Pl see MOS Doc 452044.1 (Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr)
HTH
Srini -
How to change Employee Number Generation from Manual to Automatic
Hi,
We have given Employee Number Generation Manual while creating Business Group. Now we want to change that to Automatic. I have tried to change but I count not.
Please tell me what are all the steps needed to change Employee Number Generation From Manual to AutomaticHi,
1. Goto org screen --> query business group
2. Click other --> Business Group info
3. Change second option from Employee Number Generation from Manual To Automatic.
Also look
Employee number generation process
Hope it work for u.
Ayaz
Edited by: Ayaz on Dec 20, 2010 7:15 PM -
Hi All,
Like in PS wherein the number range is specified and the project numbers get generated automatically. Is the same thing possible in cProjects 4.0.
I dont enter the name/number in the project definition, but i want the number to be generated automatically. Is this possible.
Thanks in advance,
Regards,
AmitHi,
Can we specify a project coding mask similar to what we do in SAP PS for number generation for the Project definition.
Can we restrict the users to use the same defined project coding mask as in SAP PS.
Thanks in advance
Amit -
Problem on forms for serial number generation with last record next_record.
Hi Experts,
currently i'm facing one problem like :
i'm populating one receipt detail in Multi block , like when user key in one receipt number that time record should go in first record ,and if they key in second receipt number then record should go in second record . mean to say every time record go in last record ..but the problem is i want to generate Serial no correspondence to every last record ..
here is my approch :
cursor c1 is
select * from table
where cname =:blk_name.clm_name.
Last record;
next_record;
for v1 in c1 loop
processed record;
next_record;
end loop;
last_record;
go_block(___);
first_record;
:sno := system.cursor_record ;
next_reocrd;
end loop;
first_record;
And in block level i'm writing code for Serial number generation when user key in manual entry for receipt detail:
:blk_name.coulumn_name := :system. cursor_record;
so in this approach their is no problem it is working properly but the problem is that
when user fetch one receipt automatically and then after he want to enter next record manually and he decided to go in detail block ,
and once he reached in detail block that time block level trigger i firing .ans serial number 2 generated and then suddenly he came to know no i want to fetch next record automatically mean to say now user going again master block and fetching next receipt detail ,
but the problem is when user leaving seccond sr no and going in master block and population next receipt detail that time cursor going on 3 record
but logically have to replace the second Serial no and generate the again serial number 2 record population .mean to say its not refreshing last_record..
so i'm appreciating is anyone if came accoross this type of issue please corrrect my code and send updated code ..plsssssssssssssssssssssssssssssss
Thanks
Abhishek
[email protected]hi
I put this below code on when_new_record_instance on block level..
:blk_name.column_name :=system.cursor_record;
so can you please help me.....
Thanks
Abhishek -
Lot number generation when ever GR is done
Dear All,
As there is a requirement like Lot number generation when ever GR is done.
For each material Lot Number is defined by the client.
And there is partial receipt of Goods.
Whenever you do GR system automatically generates Lot number.
So we need when ever we do GR system should generate Lot number once the
Lot size as defined is completed.
Regards,
VeereshWhen a material is batch managed, and you do GR, either you specify the batch ID, or, if not, system will generate one. There are some exceptions, like when you do GR from production order, and have created the batch ID in advance in the order.
Otherwise, if you want to have some kind of private logic of the kind, you'll need to employ a user exit. -
Project Serial Number column in Project Server 2013 (PWA)
Hi All,
Whenever any new projects are created on Project Server 2013, they are arranged automatically by Alphabetical order. So i would like to know or need support through which i can create serial number column in Project Center so that projects are aligned. as
per numbers.
Kindly help..Hi,
It is actually 2 questions.
First you want to create a unique ID for projects? Here is an excellent
blog about this subject.
Then you want to sort projects along a number? It could be a custom number field or the unique ID above. You just have to go to the server settings, manage views and go to the "sort by" section and select your number field.
Note that the field used to sort the project center view must be in the view to be used as a sorting criteria.
Hope this helps,
Guillaume Rouyre, MBA, MVP, P-Seller | -
Deactivate Serial Number Generation in MIGO
Hi,
In MIGO,Serail number generation is made mandatory through Create serial no.s automatically checkbox in serial number tab.The process is such that the user will Check and then Post.So while pressing the Check button,internally serail numbers are generated and while posting the serial numbers are generated skipping the generated numbers in Check.ex.while checking 001 and 002 are internally generated and aftr Post if we check in IQ03 we get 003 and 004;ie 001 and 002 are skiiped.
Can anybody suggest how to avoid serial number generation while Check?Hi,
Apply Transaction Variant and Screen Variant through transaction SHD0 for MIGO. Hope it will solve your problem.
Otherwise, discuss this requirement with MM Functional Consultant. In SPRO, it may have some setting to make it display...
Thanks
Vikranth
Maybe you are looking for
-
After playing around with my ZEN I have collected and organised some suggestions for improving the firmware. There is also a list of bugs that I have encountered at the bottom. Things that are not possible would be great to see in a future player. I
-
S_ALR_87012165 not showing line items
hi i am using the report vendor balances and line items with t-code S_ALR_87012165. it is not displaying the line items in production but the same is giving correct in development server. I am looking for some settings by which i can see the favorabl
-
Push from ODS to cube taking a long time
Hi All, I've created a new ODS that pushes data to a new cube. I am trying to load 3000 records and its taking over 30 minutes, and I can never get it to complete successfully. When I look in sm50, there is nothing running. The are no short dumps
-
How to come out if loop other using break.
can u plz give an example where i want come out of if loop other than break , return keyword. example If { System.out.println(" "); break; or return; }
-
How to see all Address fields between Address Book and Contacts?
Hello, I rely on my Apple Address Book on my iMac to manage a lot of information for work and personal purposes. Is there a way to configure the iPhone to display more of the fields that are available in the desktop Mac version of the Address Book? S