2010 Oct 13 9:23 PM
Dear Abap Experts,
I am facing to the following problem.
When I compare those below shown strings, the check statement
is ok, while both strings are similar.
But sometimes the variable lv_kum-co_code can have
the value * (Asterisk) for all company codes. The check should retrieve OK also in such cases.
The string lv_kum-co_code can be * or a company code . Both situation may occur.
How can I achieve this requirement.
CHECK: lv_item-be_co_code CP lv_kum-co_code.Kindly Regards
Marco
2010 Oct 13 9:39 PM
you can simply use
CHECK: lv_item-be_co_code CP lv_kum-co_code or lv_item-be_co_code = '*'.
Dear Abap Experts,
I am facing to the following problem.
When I compare those below shown strings, the check statement
is ok, while both strings are similar.
But sometimes the variable lv_kum-co_code can have
the value * (Asterisk) for all company codes. The check should retrieve OK also in such cases.
The string lv_kum-co_code can be * or a company code . Both situation may occur.
How can I achieve this requirement.
CHECK: lv_item-be_co_code CP lv_kum-co_code.Kindly Regards
Marco
2010 Oct 13 9:39 PM
you can simply use
CHECK: lv_item-be_co_code CP lv_kum-co_code or lv_item-be_co_code = '*'.
2010 Oct 14 5:39 AM
Do CHECK only, when unequal to asterisk ...
if lv_kum-co_code NE '*'.
CHECK: lv_item-be_co_code CP lv_kum-co_code.
endif.Regards,
Klaus
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |