‎2008 Apr 01 8:38 AM
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
‎2008 Apr 01 9:03 AM
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
‎2008 Apr 01 8:47 AM
‎2008 Apr 01 9:03 AM
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
‎2008 Apr 01 9:08 AM
‎2008 Apr 01 9:14 AM
Hi,
Please give me your datatypes and your internal tables. I can guide you on that.
Regards
Sourabh
‎2008 Apr 01 9:21 AM
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.
‎2008 Apr 03 2:42 PM
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.
‎2008 Apr 03 2:50 PM
Hi,
If two quantities are same then multiply it by -1.
Thanks,
Sriram Ponna.