Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem:Error on this function module "BAPI_CLASS_SELECT_OBJECTS"

Former Member
0 Likes
1,205

Hi abapers,

when i am using this function module "BAPI_CLASS_SELECT_OBJECTS",

i am getting the following dump

*The IN itab operator is used with internal tables which*

have the following structure:

SIGN(1) OPTION(2) LOW LIKE db_field HIGH LIKE db_field

The OPTION column should contain only one of the following values:

"EQ LE GE CP BT NE LT GT NP NB"

The value " " is not allowed here.

My requirement is:

i want to fetch the batches for some charteristics those have charaterristic values (which is passing from selection screen ).

so i am populating the table with characteristic name and value to the intenal table gi_sel_criteria to filter. But my issue is some characteristics are not giving dump and some characteristics giving dump when i populating this internal table gi_sel_criteria .

i am populating this table (gi_sel_criteria) more than 10 characteristics. if this intenal table(gi_sel_criteria) have char1 and char1 it is not giving dump if i populate char3 it is giving dump.

if p1 is not initial.

gs_sel_criteria-name_char = <characteristic name1>.

gs_sel_criteria-char_value = p1.

APPEND gs_sel_criteria TO gi_sel_criteria.

endif.

if p2 is not initial.

gs_sel_criteria-name_char = <characteristic name2>.

gs_sel_criteria-char_value = p2.

APPEND gs_sel_criteria TO gi_sel_criteria.

endif.

*if p3 is not initial.

*gs_sel_criteria-name_char = <characteristic name3>.

  • gs_sel_criteria-char_value = p3.

  • APPEND gs_sel_criteria TO gi_sel_criteria.

*endif.

CALL FUNCTION 'BAPI_CLASS_SELECT_OBJECTS'

EXPORTING

classtype = gv_class_type

classnum = gv_class_num

  • languiso = sy-langu

  • LANGUINT =

  • keydate = sy-datum

maxhits = 999999 "10000

  • I_STATUS_LOCKED =

  • I_STATUS_INCOMPLETE =

IMPORTING

return = gs_return1

TABLES

selectioncriterions = gi_sel_criteria

selectedobjects = gi_select_obj.

is there any charateristic values problem or some thing else.

Regards,

Sateesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
795

Hi Sateesh,

Check with the Declaration part of the internal table which you are using in your program.

The dump might be coming due to type mismatch between the declaration of the parameter in the table and the value which you are passing to the table. As you are telling that it is not giving an Error for Char1 but it is giving an Error for Char3.

This will help you.

Regards,

Amit.

4 REPLIES 4
Read only

Former Member
0 Likes
796

Hi Sateesh,

Check with the Declaration part of the internal table which you are using in your program.

The dump might be coming due to type mismatch between the declaration of the parameter in the table and the value which you are passing to the table. As you are telling that it is not giving an Error for Char1 but it is giving an Error for Char3.

This will help you.

Regards,

Amit.

Read only

0 Likes
795

Hi Amit,

I Checked the Declaration part of the internal table which you are using in your program is correct.

There is no mismatches between the declaration of the parameter in the table and the value which i passed to the table.still now i am getting dump.

please help on this.

Regards,

Sateesh.

Read only

0 Likes
795

Hi Amit,

I Checked the Declaration part of the internal table in my program is correct.

There is no mismatches,between the declaration of the parameter in the table and the value which i passed to the table.

still now i am getting dump.

please help on this.

Regards,

Sateesh.

Read only

Former Member
0 Likes
795

Hi SATEESH,

please set the field VAL_RELATN of the line in the table gi_sel_criteria to 1 - and then try again.

Regards

Roland