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

Help me please

Former Member
0 Likes
766

HI,

Can you please help me to get the correct output. In my report I would like to display the quantity ( MENGE) for movement types (bwart = 101 and bwart = 102) and if there is equal quantity for both the movement types, then place ' - ' sign before the quantity where bwart = 102.

For example:

quantity(MENGE)

20

40

- 40 -


>bwart = 102

60

10

- 10 -


>bwart = 102

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
738

Hi ,

Do like this:

Compare MENGE values of both Moment Types by IF clause.

If the values match then take a character string , concatenate '-' MENGE into a character string.

hope this helps.

Regards

Sourabh Verma

7 REPLIES 7
Read only

Former Member
0 Likes
738

Any ideas please.

Read only

Former Member
0 Likes
739

Hi ,

Do like this:

Compare MENGE values of both Moment Types by IF clause.

If the values match then take a character string , concatenate '-' MENGE into a character string.

hope this helps.

Regards

Sourabh Verma

Read only

0 Likes
738

Thank you. Can I have it in a code format.

Read only

Former Member
0 Likes
738

Hi,

Please give me your datatypes and your internal tables. I can guide you on that.

Regards

Sourabh

Read only

0 Likes
738

DATA: tmseg TYPE STANDARD TABLE OF mseg, "Internal table

wmseg TYPE mseg, "Workarea

tmkpf TYPE STANDARD TABLE OF mkpf, "Internal table

wmkpf TYPE mkpf. "Workarea

*******************************************************************

SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TEXT-BL1.

PARAMETERS: pa_matnr TYPE matnr OBLIGATORY.

select-options s_budat for mkpf-budat.

PARAMETERS: pa_wempf type wempf.

SELECTION-SCREEN END OF BLOCK BL1.

Read only

mahaboob_pathan
Contributor
0 Likes
738

hi,

as for u r selection screen u ahave taken 2 tables and u placed

matnr field as mandatory which is not key in neither 2 tables,

so i didn't under stood how u r trying to fetch.

but

after comparing bwart.

take the value if bwart-102 values in one variable of type bwart.

and pass that value to this function module.

below is the function module.

'CLOI_PUT_SIGN_IN_FRONT'.

hope u will solve it.

Read only

Former Member
0 Likes
738

Hi,

If two quantities are same then multiply it by -1.

Thanks,

Sriram Ponna.