on 08-30-2009 12:26 PM
Hello All,
Pl. help me in passing the values in abstract list from webdynpro.Pl. find the follwing code.My concern is that i have to pass two values in same field of structure.I am doing as follows but i am not able to achieve this.
AbstractList partlist_num = new Bapiadtel.Bapiadtel_List();
Bapiadtel obj_num = new Bapiadtel();
obj_num.setTelephone(mob_number);
obj_num.setR_3_User("3");
obj_num.setTelephone(tel_number);
obj_num.setR_3_User("1");
partlist_num.add(obj_num);
input.setIt_Bapiadtel(partlist_num);
Regards,
Anupama
Hi
As per my understanding when you will set two value in the same import parameter of BAPI. then in the execution time of BAPI it will take the latest value of the field(In your case it will take 1 instead of 3).
Thanks
Susmita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually while executing in se37 we are adding one more line and we are entering the telephone numebr and mobilenum respectively.Pl. find below the explanation for the same.
Fields : Telephone Number and Mobile Number
Case 1 : Telephone number entered from frontend
Acc to RFC, it should go to telephone field in Bapiadtel structure. Also R3_User field has to be entered which should be u201C1u201D when it is Telephone number
Case 2 : Mobile number entered from frontend
Acc to RFC, it also should go to telephone field in Bapiadtel structure. Also R3_User field has to be entered which should be u201C3u201D when it is Mobile number.
The both entries have to go to backend at the same time.
Now our concern is we canu2019t enter two different values in same attribute at the same time. Is there any way to enter two different values in same parameters of BAPIADTEL Structure.
Because what i am doing by taht its taking recent one.How to enetr two rows in structure?
Hi Anupama ,
Try to write like this..
AbstractList partlist_num = new Bapiadtel.Bapiadtel_List();
Bapiadtel obj_num = new Bapiadtel();
Bapiadtel obj_num1 = new Bapiadtel();
obj_num.setTelephone(mob_number);
obj_num.setR_3_User("3");
partlist_num.add(obj_num);
obj_num1.setTelephone(tel_number);
obj_num1.setR_3_User("1");
partlist_num.add(obj_num1);
input.setIt_Bapiadtel(partlist_num);
Try using this .. In case of anyproblems kindly revert..
Best Wishes
Idhaya R
hi
you can create two seprate instances for your Bapi node and then set different values to the same field.
Bapi_xxx abd = new Bapi_xxx();
abd.setusrname("india");
bind the data to the node
Bapi_xxx bgf = new Bapi_xxx()
bgf.setusrname("uk");
bind the data to the node
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try this:
AbstractList partlist_num = new Bapiadtel.Bapiadtel_List();
Bapiadtel obj_num = new Bapiadtel();
obj_num.setTelephone(mob_number);
obj_num.setR_3_User("3");
partlist_num.add(obj_num);
obj_num = new Bapiadtel();
obj_num.setTelephone(tel_number);
obj_num.setR_3_User("1");
partlist_num.add(obj_num);
input.setIt_Bapiadtel(partlist_num);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anupama,
How will execute the bapi in the backend. Will you pass two rows in the structure or only one row containing two values for the R3 User field . Can you tell me how are passing inputs in the backend??
Best Wishes
Idhaya R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.