on 01-07-2007 3:13 PM
Hi Experts,
I have a BAPI being used as a data service in my model.
It returns a table.
If that table is empty, i need to diplay a plain text message "Success".
If the table has atleast one entry, I should display a text message "Not Success".
How can this be achieved in Visual Composer?
Regards,
Ravi Kanth Talagana
Hi Ravi,
I remember there must be a function in VC, which returns the number of table rows. If not so, you can write a own ABAP RFC, which returns the number of rows.
*Calling the BAPI before counting muste be here
* Sampe ABAP Coding for counting lines of the table
describe table l_t_your_table lines l_number_of_rows.
Hope that helps.
Best Regards,
Marcel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Drag a line from the output port of the bapi and select "Aggregate Data".
Select the new sigma operator that was added to the storyboard and in the configure element task panel select the field that you want to count and in the sigma field select 'count'.
Drag a line from the out port of the Sigma operator and select form view.
In the "Select Display Fields" box - select the field that the was counted by the sigma.
Add a plain text control to the form. Select the control properties and in the Label field at the Display tab write the formula - "IF((@ - select the field from the form>0),'Succeess','Not Success')"
Good-Luck,
Dafna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.