on 03-27-2008 6:23 AM
Hi ALL,
Can any plz send me the steps of using global container for generation seqence number's
And also if possible send me the code.
Thanks & Regards
Rupash
hi..
There are two ways the sequence number can be generated.
1. Use Advanced UserDefined function to generate the
sequence number all at once.
2. Use Simple UserDefined function to generate the sequence
number for each occurrence separately, keeping track of the
sequence number value previously generated.
PLz chk this link..:
refer the page No. 64..It is help ful.
Regards
MAnas
reward with points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if the system restarts then just you have to put the last generated value to a flat file, from where the value will be read when the system starts again.
for writing/reading value to/from file you can use FileOutputStream and FileInputStream classes.
--Sankar Choudhury
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rupash,
When you use the UDF's as suggested above.
They will work untill you restart the system.
In any case if you restart the system, again it will start generating from Intitial "1".
So if you do not want to Re-initiaze the value , then you need to create UDF by calling RFC lookup and by creating one Ztable in ABAP stack and you need updating everytime the mapping occurs with +1.
Regards
Deepthi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rupesh,
chack this code:
public String seqNumber(Container container)
{
int i;
GlobalContainer global=container.getGlobalContainer();
String getnum=(String)global.getParameter("a");
if(getnum==null){
global.setParameter("a","1"); i=1;
}
else{
i=Integer.parseInt(getnum); i++;
global.setParameter("a",String.valueOf(i));
}
return String.valueOf(i);
}
**Reward points if helpful
--Sankar Choudhury
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna,
Inorder to generare sequential num, we have an option in message mapping i.e java selections.
it consits of three parts.
1.global container
2.local variable
3.clan-up section.
where you have to write java code to generare sequential num.
generate one file with intial seq num,next time it will capture the previous seq num from file( file will be avialable in xi server ).
warm regards
mahesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Wat is ur requirement. U can generate the sequence no using UDF also.
refer the below link
Global container:
http://www.erpgenie.com/netweaver/xi/mapping1.htm
Thnx
Chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.