Delivery quantity displaying double in BW report
Hi All,
One CUBE is getting data from two DSO's.
1st DSO contains Sales deliveries data
2nd DSO contains Sales Billing data.
Mappings between CUBE and two DSO's
Sales Deliveries DSO to CUBE : - Key fields are DELIVERY NUMBER, DELIVERY ITEM, BILLNING NUNMBER (Constant ZERO's), BILLING ITEM (Constant ZERO)
Sales Billing DSO to CUBE ; - DELIVERY NUMBER, DELIVERY ITEM, BILLNING NUNMBER, BILLING ITEM
Data in CUBE:
There is a one delivery number with two line item (10, 20), and delivery quantity is showing correct in delivery qty key figure
and second row there is a billing document with same delvery number and with two line items (10, 20) and billing quantity is showing correct in billing qty key figure, but again delivery quantity is displaying in delivery qty key figure for this billing document number.
Because of this reason delivery quantity is showing double in BW report.
I want to display correct delivery quantity,
How can I achieve this?
Helpful answer will be appreciated with points.
Thanks in advance,
Venkat
Hi Venkata
You can restrict your Deliv Qty Key figure with Bill Num and Item Num both equal to zero.
This will pick up Deliv Qty only from one record in cube and wont be duplicated.
But in this I would have two cubes and build a MultiProvider on these two cubes. Map Deliv only from one cube,
Regards
Anindya
Edited by: Anindya Bose on Nov 17, 2011 11:58 PM
Similar Messages
-
There is double quantity in the sales item report?
Hi all,
I have created an infoset with sales order item and delivery
The issue is
there is one sales order item with qty 10 but because it was delivered on different dates with different quantity like 5,5
the report show likes
sales order item quantity delivered quantiy act gds issue date
10 10 5 20/09/2010
10 10 5 21/09/2010
result 20 10
but the actual quanity should only be 10 but the result it is sumarizing as 20 because there are 2 line items for the same
how to rectify and summarise it
thanksHi,
Check this blog on your topic. It explaines exception aggregation in detail.
Infoset Keyfigure multiplicity Part 3
Infoset Keyfigure multiplicity Part 1
Infoset Keyfigure multiplicity Part 2 -
Dear All, As per our new requirement from business,They are asking report delivery quantity status report based on the date,Can you please advice how to calculate open delivery quantity based on date and total OBD quantity..
Dear Ravi
I would like to add some more findings here.
Open Delivery: means Delivery done--need to go for billing.
Is it what you are asking for??
(confirm--there is always difference between client terminology and SAP terminology)
If so-- First you retrieve all delivery docs from LIPS table--then retrieve the status of Billing from VBUP table(FKSTA)...
So you can easily find the open delivery Qty(again reiterating Open delivery Qty means-the Qty for which delivery happened--but not billed)
Note: I want to add a little bit to Experts opinion here---if a material is having availability check of KP--will not be observed in VBBE.
Please find the answer Given By Our Lakshmipathi sir in thread--VBBE table Not Updated....
Hope this helps.
Phanikumar -
How to get the total no of delivery quantity in PO
Hello,
This is shehryar. my previous account got locked(dunno why ) , so i have created a new acc.
I want to display the total no of delivery quantity of a line item in PO. can it be done ?
Thanks..
ShehryarHere is a sample. This works pretty good for me. You must account for the reversals(102 movement types) also.
report zrich_0001.
data: iekbe type table of ekbe with header line.
data: tot_menge type ekbe-menge.
parameters: p_ebeln type ekpo-ebeln,
p_ebelp type ekpo-ebelp.
select * into table iekbe
from ekbe
where ebeln = p_ebeln
and ebelp = p_ebelp
and VGABE = '1'
and ( bwart = '101'
or bwart = '102' ).
clear tot_menge.
loop at iekbe .
if iekbe-bwart = '102'.
iekbe-menge = iekbe-menge * -1.
endif.
tot_menge = tot_menge + iekbe-menge.
endloop.
write:/ tot_menge.
Regards,
Rich Heilman -
hi,
what are the minimum requirements to display logo in alv report at the top of the page.
i searched forums but did n't get the required answer.Hi
This code is to display logo in the report through alv grid
*& Report ZALVDEMO *
REPORT ZALVDEMO.
TABLES : J_1IEXCHDR, " header table
J_1IEXCDTL, " item table
J_1IPART2, " Excise Part II details
LFA1, " vendor master table
J_1IMOVEND, " vendor excise details table
MSEG, " Document Segment: Material
MKPF, " Header: Material Document
DD07T, " domain text table
T001W. " Plant and Branch Details
DATA : BEGIN OF IT_CHDR OCCURS 100,
DOCNO LIKE J_1IEXCHDR-DOCNO,
DOCYR LIKE J_1IEXCHDR-DOCYR,
EXNUM LIKE J_1IEXCHDR-EXNUM,
EXDAT LIKE J_1IEXCHDR-EXDAT,
WERKS LIKE J_1IEXCHDR-WERKS,
EXBED LIKE J_1IEXCHDR-EXBED,
EXCCD LIKE J_1IEXCHDR-EXCCD,
ECS LIKE J_1IEXCHDR-ECS,
END OF IT_CHDR.
DATA : BEGIN OF IT_CDTL OCCURS 100,
DOCYR LIKE J_1IEXCDTL-DOCYR,
DOCNO LIKE J_1IEXCDTL-DOCNO,
EXNUM LIKE J_1IEXCDTL-EXNUM,
EXDAT LIKE J_1IEXCDTL-EXDAT,
LIFNR LIKE J_1IEXCDTL-LIFNR,
MATNR LIKE J_1IEXCDTL-MATNR,
MAKTX LIKE J_1IEXCDTL-MAKTX,
CHAPID LIKE J_1IEXCDTL-CHAPID,
EXBAS LIKE J_1IEXCDTL-EXBAS,
EXBED LIKE J_1IEXCDTL-EXBED,
ECS LIKE J_1IEXCDTL-ECS,
MENGE LIKE J_1IEXCDTL-MENGE,
MEINS LIKE J_1IEXCDTL-MEINS,
RDOC2 LIKE J_1IEXCDTL-RDOC2,
END OF IT_CDTL.
DATA TEXT(10).
DATA : BEGIN OF IT_OUT OCCURS 0,
SERIALNO LIKE J_1IPART2-SERIALNO,
TEXT1 LIKE TEXT,
EXNUM LIKE J_1IEXCDTL-EXNUM,
EXDAT LIKE J_1IEXCDTL-EXDAT,
NAME LIKE LFA1-NAME1,
DDTEXT LIKE DD07T-DDTEXT,
EXCCD LIKE J_1IEXCHDR-EXCCD,
BUDAT LIKE MKPF-BUDAT,
EXBAS LIKE IT_CDTL-EXBAS,
EXBED LIKE IT_CDTL-EXBED,
ECS LIKE IT_CDTL-ECS,
MATNR LIKE IT_CDTL-MATNR,
MAKTX LIKE IT_CDTL-MAKTX,
CHAPID LIKE IT_CDTL-CHAPID,
MENGE LIKE IT_CDTL-MENGE,
MEINS LIKE IT_CDTL-MEINS,
DEL_IND(1),
END OF IT_OUT.
DATA IT_PART2 LIKE J_1IPART2 OCCURS 0 WITH HEADER LINE.
DATA S_NO(4) .
DATA DB_CNT LIKE SY-TABIX.
DATA EBELN_T LIKE MSEG-EBELN .
TYPE-POOLS : SLIS.
DATA : AFIELD TYPE SLIS_FIELDCAT_ALV.
DATA : LIST_HEADER TYPE SLIS_T_LISTHEADER,
FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
LS_FTCAT TYPE LVC_S_FCAT,
SORTCAT TYPE SLIS_T_SORTINFO_ALV,
SORTCAT_LN LIKE LINE OF SORTCAT,
G_REPID LIKE SY-REPID,
G_BACK_GROUND(70), "like bapibds01-objkey,
GS_VARIANT LIKE DISVARIANT,
G_SAVE ,
GT_EVENTS TYPE SLIS_T_EVENT,
ALV_EVENT TYPE SLIS_ALV_EVENT,
EVENTCAT TYPE SLIS_T_EVENT,
EVENTCAT_LN LIKE LINE OF EVENTCAT,
LAYOUT_IN TYPE SLIS_LAYOUT_ALV,
LAYOUT_IN1 TYPE SLIS_LAYOUT_ALV.
CONSTANTS : GC_FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE
'TOP_OF_PAGE',
GC_FORMNAME_USER_COMMAND TYPE SLIS_FORMNAME VALUE
'USER_COMMAND',
GC_FORMNAME_BEFORE_OUTPUT TYPE SLIS_FORMNAME VALUE
'BEFORE_OUTPUT'.
ALV_EVENT TYPE SLIS_ALV_EVENT,
DATA EX_NO LIKE IT_CHDR-EXNUM VALUE 0.
DATA REGTYP_1 LIKE J_1IPART2-REGTYP.
SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME.
PARAMETERS WERKS TYPE J_1IEXCHDR-WERKS.
SELECT-OPTIONS : BUDAT FOR J_1IEXCHDR-EXDAT.
PARAMETERS : R1 RADIOBUTTON GROUP GRP DEFAULT 'X',
R2 RADIOBUTTON GROUP GRP.
SELECTION-SCREEN END OF BLOCK B.
INITIALIZATION.
G_REPID = SY-REPID.
G_SAVE = 'A'.
PERFORM BUILD_EVENT USING GT_EVENTS[].
PERFORM ALV_EVENT_INIT.
AT SELECTION-SCREEN.
REFRESH LIST_HEADER.
PERFORM TOP_OF_PAGE_LIST_HEADER USING LIST_HEADER.
START-OF-SELECTION.
PERFORM ALV_EVENT_INIT.
G_REPID = SY-REPID.
G_BACK_GROUND = ' ' .
IF R1 = 'X'.
CLEAR R2. CLEAR : REGTYP_1.
REGTYP_1 = 'A'.
set titlebar 'BALAJI' with DB_CNT.
ELSEIF R2 = 'X'.
CLEAR R1.CLEAR : REGTYP_1.
REGTYP_1 = 'C'.
set titlebar 'BALAJI1' with DB_CNT.
ENDIF.
SELECT * FROM J_1IPART2
INTO CORRESPONDING FIELDS OF TABLE IT_PART2
WHERE REGTYP = REGTYP_1 AND
TRNTYP = 'GRPO' AND
BUDAT IN BUDAT.
DOCYR = IT_CDTL-DOCYR AND
DOCNO = IT_CDTL-DOCNO.
LOOP AT IT_PART2.
SELECT SINGLE * FROM J_1IEXCHDR
INTO CORRESPONDING FIELDS OF IT_CHDR
WHERE TRNTYP = 'GRPO' AND
DOCYR = IT_PART2-DOCYR AND
DOCNO = IT_PART2-DOCNO AND
WERKS = WERKS AND
exdat IN BUDAT.
ORDER BY EXDAT.
IF SY-SUBRC = 0.
APPEND IT_CHDR.
ELSE.
CONTINUE.
ENDIF.
IF SY-SUBRC <> 0.
MESSAGE E084.
ENDIF.
ENDLOOP.
LOOP AT IT_CHDR.
SELECT * FROM J_1IEXCDTL
INTO CORRESPONDING FIELDS OF IT_CDTL
FOR ALL ENTRIES IN IT_CHDR
WHERE
TRNTYP = 'GRPO' AND
DOCNO = IT_CHDR-DOCNO AND
DOCYR = IT_CHDR-DOCYR AND
EXNUM = IT_CHDR-EXNUM AND
EXDAT = IT_CHDR-EXDAT AND
WERKS = IT_CHDR-WERKS.
IF SY-SUBRC = 0.
APPEND IT_CDTL.
ELSE.
CONTINUE.
ENDIF.
ENDSELECT.
ENDLOOP.
LOOP AT IT_CDTL.
CLEAR TEXT.
DB_CNT = DB_CNT + 1.
READ TABLE IT_CHDR WITH KEY EXNUM = IT_CDTL-EXNUM.
READ TABLE IT_PART2 WITH KEY DOCNO = IT_CDTL-DOCNO .
IT_OUT-SERIALNO = IT_PART2-SERIALNO.
SELECT SINGLE NAME1 FROM LFA1
INTO IT_OUT-NAME
WHERE LIFNR = IT_CDTL-LIFNR.
SELECT SINGLE * FROM LFA1
WHERE LIFNR = IT_CDTL-LIFNR.
IF LFA1-LAND1 EQ 'IN'.
TEXT = 'INVOICE'.
IT_OUT-TEXT1 = TEXT.
ELSE.
TEXT = 'BOE'.
IT_OUT-TEXT1 = TEXT.
ENDIF.
SELECT SINGLE * FROM J_1IMOVEND
WHERE LIFNR = IT_CDTL-LIFNR.
SELECT SINGLE * FROM DD07T
INTO IT_OUT-DDTEXT
WHERE DOMNAME = 'J_1IVTYP' AND
DDLANGUAGE = 'EN' AND
DOMVALUE_L = J_1IMOVEND-J_1IVTYP.
IF DD07T-DDTEXT = 'First Stage Dealer of indigenous excisable goods'
OR
DD07T-DDTEXT = 'Second Stage Dealer of indigenous excisablegoods'.
DD07T-DDTEXT = 'Dealer'.
ENDIF.
IT_OUT-DDTEXT = DD07T-DDTEXT.
ELSEIF DD07T-DDTEXT = 'Second Stage Dealer of indigenous excisable
*goods'.
DD07T-DDTEXT =
CLEAR EBELN_T.
SELECT SINGLE LFBNR FROM MSEG
INTO EBELN_T
WHERE MBLNR = IT_CDTL-RDOC2 .
SELECT SINGLE * FROM MSEG
WHERE BWART = '106' AND
LFBNR = EBELN_T ."and
ebeln = ebeln_t.
IF SY-SUBRC = 0.
IT_OUT-DEL_IND = 'X'.
ELSE.
IT_OUT-DEL_IND = ' '.
ENDIF.
SELECT SINGLE BUDAT FROM MKPF
INTO IT_OUT-BUDAT
WHERE MBLNR = EBELN_T ."MSEG-LFBNR.
IT_OUT-EXNUM = IT_CDTL-EXNUM.
IT_OUT-EXDAT = IT_CDTL-EXDAT.
IT_OUT-EXCCD = IT_CHDR-EXCCD.
IT_OUT-EXBAS = IT_CDTL-EXBAS.
IT_OUT-EXBED = IT_CDTL-EXBED.
IT_OUT-ECS = IT_CDTL-ECS.
IT_OUT-MATNR = IT_CDTL-MATNR.
IT_OUT-MAKTX = IT_CDTL-MAKTX.
IT_OUT-CHAPID = IT_CDTL-CHAPID.
IT_OUT-MENGE = IT_CDTL-MENGE.
IT_OUT-MEINS = IT_CDTL-MEINS.
APPEND IT_OUT.
EX_NO = IT_CDTL-EXNUM.
ENDLOOP.
Title Portion
IF REGTYP_1 = 'A'.
SET TITLEBAR 'BALAJI' WITH DB_CNT.
ELSEIF REGTYP_1 = 'C'.
SET TITLEBAR 'BALAJI1' WITH DB_CNT.
ENDIF.
AFIELD-COL_POS = 1.
AFIELD-FIELDNAME = 'SERIALNO'.
AFIELD-SELTEXT_L = 'INPUTS'.
AFIELD-JUST = 'L'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 2.
AFIELD-FIELDNAME = 'TEXT1'.
AFIELD-SELTEXT_L = 'TYPE OF DOC'.
AFIELD-JUST = 'L'.
AFIELD-DECIMALS_OUT = '0'.
AFIELD-NO_ZERO = 'X'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 3.
AFIELD-FIELDNAME = 'EXNUM'.
AFIELD-SELTEXT_L = 'DOC.NO'.
AFIELD-JUST = 'L'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 4.
AFIELD-FIELDNAME = 'EXDAT'.
AFIELD-SELTEXT_L = 'DOC.DATE'.
AFIELD-JUST = 'C'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 5.
AFIELD-FIELDNAME = 'NAME'.
AFIELD-SELTEXT_L = 'NAME OF THE SUPPLIER'.
AFIELD-NO_ZERO = 'X'.
AFIELD-JUST = 'L'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 6.
AFIELD-FIELDNAME = 'DDTEXT'.
AFIELD-SELTEXT_L = 'TYPE-OF-SUPPLIER'.
AFIELD-JUST = 'L'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 7.
AFIELD-FIELDNAME = 'EXCCD'.
AFIELD-SELTEXT_L = 'ECC OF THE SUPPLIER'.
AFIELD-NO_ZERO = 'X'.
AFIELD-JUST = 'L'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 8.
AFIELD-FIELDNAME = 'BUDAT'.
AFIELD-SELTEXT_L = 'INPUT RECV DATE'.
AFIELD-JUST = 'C'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 9.
AFIELD-FIELDNAME = 'EXBAS'.
AFIELD-SELTEXT_L = 'ASSESSABLE-VALUE'.
AFIELD-DO_SUM = 'X'.
AFIELD-JUST = 'R'.
AFIELD-DECIMALS_OUT = '2'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 10.
AFIELD-FIELDNAME = 'EXBED'.
AFIELD-SELTEXT_L = 'DET OF CREDIT TAKEN CENVAT'.
AFIELD-JUST = 'R'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 11.
AFIELD-FIELDNAME = 'ECS'.
AFIELD-SELTEXT_L = 'DET OF CREDIT TAKEN E-CESS'.
AFIELD-JUST = 'R'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 12.
AFIELD-FIELDNAME = 'MATNR'.
AFIELD-SELTEXT_L = 'MATERIAL-CODE'.
AFIELD-JUST = 'L'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 13.
AFIELD-FIELDNAME = 'MAKTX'.
AFIELD-SELTEXT_L = 'DESCRIPTION'.
AFIELD-JUST = 'L'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 14.
AFIELD-FIELDNAME = 'CHAPID'.
AFIELD-SELTEXT_L = 'TARIFF-ID'.
AFIELD-JUST = 'L'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 15.
AFIELD-FIELDNAME = 'MENGE'.
AFIELD-SELTEXT_L = 'QUANTITY'.
AFIELD-JUST = 'R'.
AFIELD-DO_SUM = ' '.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 16.
AFIELD-FIELDNAME = 'MEINS'.
AFIELD-SELTEXT_L = 'UOM'.
AFIELD-JUST = 'C'.
APPEND AFIELD TO FIELDCAT.
AFIELD-COL_POS = 17.
AFIELD-FIELDNAME = 'DEL_IND'.
AFIELD-SELTEXT_L = 'Deleted'.
AFIELD-JUST = 'C'.
APPEND AFIELD TO FIELDCAT.
* LAYOUT FOR ZEBRA CATLOG
LAYOUT_IN-COLWIDTH_OPTIMIZE = 'X'.
LAYOUT_IN-ZEBRA = 'X'.
LAYOUT_IN-GET_SELINFOS = 'X'.
LAYOUT_IN-CONFIRMATION_PROMPT = 'X'.
LAYOUT_IN-DETAIL_POPUP = 'X' .
SORTCAT-decimals = '0'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_SAVE = G_SAVE
IS_VARIANT = GS_VARIANT
IT_FIELDCAT = FIELDCAT
IT_SORT = SORTCAT
IS_LAYOUT = LAYOUT_IN
IT_EVENTS = EVENTCAT
I_BACKGROUND_ID = g_back_ground
TABLES
T_OUTTAB = IT_OUT.
*& Form TOP_OF_PAGE_LIST_HEADER
text
-->LIST_HEADERtext
FORM TOP_OF_PAGE_LIST_HEADER USING LIST_HEADER TYPE SLIS_T_LISTHEADER.
DATA : HLINE TYPE SLIS_LISTHEADER,
TEXT(60) TYPE C.
CLEAR : HLINE,TEXT.
HLINE-TYP = 'H'.
WRITE 'ROOTS INDUSTRIES LTD' TO TEXT.
HLINE-INFO = TEXT.
APPEND HLINE TO LIST_HEADER.
SELECT SINGLE * FROM T001W WHERE WERKS = WERKS.
CLEAR : HLINE,TEXT.
HLINE-TYP = 'H'.
WRITE 'PLANT :' TO TEXT.
WRITE WERKS TO TEXT+8.
HLINE-INFO = TEXT.
APPEND HLINE TO LIST_HEADER.
CLEAR : HLINE,TEXT.
HLINE-TYP = 'H'.
WRITE T001W-NAME1 TO TEXT.
HLINE-INFO = TEXT.
APPEND HLINE TO LIST_HEADER.
CLEAR : HLINE,TEXT.
HLINE-TYP = 'H'.
WRITE T001W-STRAS TO TEXT.
HLINE-INFO = TEXT.
APPEND HLINE TO LIST_HEADER.
CLEAR : HLINE,TEXT.
HLINE-TYP = 'H'.
WRITE T001W-ORT01 TO TEXT.
HLINE-INFO = TEXT.
APPEND HLINE TO LIST_HEADER.
CLEAR : HLINE,TEXT.
HLINE-TYP = 'H'.
WRITE 'DATE :' TO TEXT.
WRITE BUDAT-LOW TO TEXT+7.
IF BUDAT-HIGH NE ''.
WRITE 'TO' TO TEXT+18.
WRITE BUDAT-HIGH TO TEXT+22.
ENDIF.
HLINE-INFO = TEXT.
APPEND HLINE TO LIST_HEADER.
ENDFORM. "TOP_OF_PAGE_LIST_HEADER
*& Form ALV_EVENT_INIT
text
FORM ALV_EVENT_INIT .
CLEAR ALV_EVENT.
ALV_EVENT-NAME = SLIS_EV_TOP_OF_PAGE.
ALV_EVENT-FORM = 'ALV_TOP_OF_PAGE'.
APPEND ALV_EVENT TO EVENTCAT.
CLEAR ALV_EVENT.
ALV_EVENT-NAME = SLIS_EV_TOP_OF_LIST.
ALV_EVENT-FORM = 'ALV_TOP_OF_LIST'.
APPEND ALV_EVENT TO EVENTCAT.
CLEAR ALV_EVENT.
ALV_EVENT-NAME = SLIS_EV_END_OF_LIST.
ALV_EVENT-FORM = 'ALV_END_OF_LIST'.
APPEND ALV_EVENT TO GT_EVENTS.
CLEAR ALV_EVENT.
ALV_EVENT-NAME = SLIS_EV_END_OF_PAGE.
ALV_EVENT-FORM = 'ALV_END_OF_PAGE'.
APPEND ALV_EVENT TO GT_EVENTS.
ENDFORM. "ALV_EVENT_INIT
*& Form ALV_TOP_OF_PAGE
text
FORM ALV_TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = LIST_HEADER
I_LOGO = 'ENJOYSAP_LOGO'.
ENDFORM. "ALV_TOP_OF_PAGE
*& Form BUILD_EVENT
text
-->P_GT_EVENTS[] text
FORM BUILD_EVENT USING P_EVENTS TYPE SLIS_T_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = P_EVENTS
EXCEPTIONS
LIST_TYPE_WRONG = 1
OTHERS = 2.
READ TABLE P_EVENTS WITH KEY NAME = SLIS_EV_USER_COMMAND INTO
ALV_EVENT.
IF SY-SUBRC = 0.
MOVE GC_FORMNAME_USER_COMMAND TO ALV_EVENT-FORM.
APPEND ALV_EVENT TO P_EVENTS.
ENDIF.
READ TABLE P_EVENTS WITH KEY NAME = SLIS_EV_BEFORE_LINE_OUTPUT INTO
ALV_EVENT.
IF SY-SUBRC = 0.
MOVE GC_FORMNAME_BEFORE_OUTPUT TO ALV_EVENT-FORM.
APPEND ALV_EVENT TO P_EVENTS.
ENDIF.
ENDFORM. " BUILD_EVENT
this wud help u -
Error message for over delivery quantity in case of batch split.
Hi All,
System is throwing error message if I try to to enter delivery quantity more than target quantity(order quantity) in case of standard process which is ok but in case of batch split when split line created (9000001 for line 10) and if go to item level in line item 900001 and enter delivery quantity more than target quantity system is giving only information message, still line item 10 is giving error message but line 9000001 giving only information message, user want this to be a error massege as well. Delivery item category for all the line items is same and status B is assigned to over delivery in item category. Is there any standard way of achieving this or do we need any modification, if yes then what user exit need to use.
I searched alot about this in last three days but found only one thread which is unanswered, please provide your valuable suggestions. If this problem is discussed already and solved please provide me the link to that thread as I could't find any.
Thanks,
DavinderHi
Still line item 10 is giving error message but line 9000001 giving only information message, user want this to be a error massage as well.
I think it you can possible to change the Information message as Warning message.
Please go to SE91 put the Message Class XX (Ex:V1) there And in No. field enter the message number (Ex: If message no V1293 enter the number as 293)
AND
go for
where used in then select only Program >ok then Program will come select the Program > double click, you will l find the message with the Description.
Now with help of ABAP with just comment on these both the messages. Afterwards you will get the Error message.
Hope this will helps you
Dasaradha -
Change delivery quantity from VL10B
Hi.
We are trying to change the Delivery quantity while creating outbound
delivery from purchase orders using VL10B. I see that the program hits
the exits of MV50AFZ1 and we have tried overwriting the fields LFIMG
and LGMNG of LIPs in the exits. However, the values are not getting
changed.
Can you please let us know whether changing the delivery quantity in
the Overview screen is at all do-able?
Thanks.
Anuradha SenGupta.Hi Monica.
No this field is not getting up, However if I change fields like LFIMG and LGMNG then these fields get changed in the Picking screen in the item level. This screen shows up when I double click on the Quantity in the Overview screen and it takes me inyo the details for the item concerned. So I dont think this is an issue with COMMIT WORK as the information in the PIcking screen does get updated. I however want this to be reflected in the Overview screen - is that possible?
Thanks.
Anuradha. -
Delivery quantity control Badi CL_IM_LE_SHP_DELIVERY_PRO
Hi ;
I want to check delivery quantity not to be greater than Po quantity , so on exit MV50AFZ1 save_document_prepare and badi CL_IM_LE_SHP_DELIVERY_PRO, save_document_prepare method . Both of them I can change lips-lfimg field and also another method of delivery read_delivery is passing on VL02N I see the change but it doesnt written at the screen which is displayed on delivery ,
Message was edited by:
yanutThis issue is solved my self .
form userexit_move_field_to_lips.
types: begin of ty_kna1,
kunnr type kunnr,
regio type regio,
end of ty_kna1.
data : it_kna1 type ty_kna1.
types: begin of ty_ekpo,
ebeln type ebeln,
ebelp type ebelp,
retpo type retpo,
werks type werks,
end of ty_ekpo.
data : it_ekpo type ty_ekpo.
types: begin of ty_zsloc,
lgort type zlgort,
end of ty_zsloc.
data : it_zsloc type ty_zsloc.
data: wa_zsloc type ty_zsloc.
select single kunnr regio from kna1 into it_kna1 where kunnr = likp-kunnr.
shift likp-kunnr left deleting leading '0'.
select single ebeln ebelp retpo werks from ekpo into it_ekpo where ebeln = lips-vgbel
and ebelp = lips-vgpos.
select single kunnr regio from kna1 into it_kna1 where werks = it_ekpo-werks.
select single lgort from zsloc into it_zsloc where werks = likp-kunnr
and region = it_kna1-regio
and ind = it_ekpo-retpo.
wa_zsloc = it_zsloc.
if sy-subrc eq 0.
lips-lgort = it_zsloc.
modify lips.
endif. -
ME2L : still to be delivered is not displayed correctly in ALV report
Dear All,
The still to be delivered and still to be invoiced quantity is not being displayed correctly in ME2L report. In BEST format the report displayes the correct values. In the ALV form the quantity is same as the ordered quantity.
can anyone heIf the selection is the same for BEST layout and ALV layout then the results should equal.
if a field in ALV display has a different value than in the old list display, then it pretty much looks like a bug, and bugs can only be erased by program changes from SAP via OSS notes.
Check SAPNet for notes, open a message yourself to SAP if you dont find any. -
How to display the drill through report in a new browser seperate window
Hello All,
I am working on a drill through report which should run when I select the column value from the main report. The drill through report I am working on is Centerline Validate Angles for a specific line. It has 2 parameters, Pods ID and Angle. Main report supplies
these 2 values. Right now, I am having an issue in displaying the drill through report in a seperate window. I have selected Go To URL option from the text box properties in main report and gave the expression as
="javascript:void(window.open('http://vmaidbdev1/Reportserver?%2fADN2%2fPipeline%2fCenterline+Validate+Angles+For+Specifi+Line&rs%3aCommand=Render&PODS_ID="&Fields!LINE_ID.Value &"&Angle="&Parameters!Angle.Value
This is not working. The field in the main report is clickable but when I click it is throwing me error as Reporting services error. Could any one let me know if there is any error in the above expression or anything I need to add or correct.
Please help. Thanks so much.Hi srisql,
Sorry for the delay in getting back to you.
After double-check the URL which I posted, I find that I have made some error in it. As you can see, there are some spaces in the URL. So please try the following expressions to check the issue again.
Angle parameter is a multi-value parameter:
="javascript:void(window.open('http://vmaidbdev1/reportserver?/Adn2/Pipeline/Centerline Validate Angles for a specific line&PODS_ID="& Fields!LINE_ID.Value &"&Angle="
&Join(Parameters!Angle.Value,"& Angle =") &"','_blank'))"
Angle parameter is a single-value parameter:
="javascript:void(window.open('http://vmaidbdev1/reportserver?/Adn2/Pipeline/Centerline Validate Angles for a specific line&PODS_ID="&Fields!LINE_ID.Value &"&Angle="&Parameters!Angle.Value
&"','_blank'))"
The following general URL is for your reference:
="javascript:void(window.open('http://server_name/reportserver?/folder/ folder/report_name¶meter_name="&Fields!field_name.Value &"¶meter_name="&Parameters!parameter_name.Value
&"','_blank'))"
If you have any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to pick additional delivery quantity after creating Transfer Order .
Hi
Sales order has been created for 30 pc of material , with reference to this sales order , delivery has been created .Afterwards I created transfer order in lt03 and got it confirmed in LT12. However , PGI has not been carried out .
Afterwards , I went to VL02N and manually increased the materialsu2019 quantity to 60 pc in delivery .
In delivery packing status is partially picked .
I request you to help me how can I pick another 30pc as already transfer order has been created and confirmed for this delivery .
Either system is not allowing me to cancel transfer order in order to create fresh transfer order to with reference to this delivery . Otherwise , I could have done it .
Could you please suggest me , how to go about it .Hi
There is an excellent way to handle your issue
While creating TO in t code LT03 in the initial screen control tab if you give pick quantity as 2 after the TO creation the system will simultaneouslely do PGI also in a single shot
This means the delivery quantity cant be changed in the VL02N
The whole VL02N will be display mode fully greyed out
That means after TO you cant change the delivery
If extra qty has to be added then it has to be a separate order only
I have practised this only and for the past two hrs i was breaking my head how come you are changing delivery after TO creation and for me it was in display mode(fully greyed out) even in VL02N and i found out i am using adopt pick qty as 2 in the initial screen of LT03 which does PGI in a single shot
This should be a good solution for you
Even the solution suggested by Mr.Raj Malhotra you will face the same problem
Regards
Raja -
Understanting delivery quantity and picked quantity in VL03N
Dear All,
This must be a very obvious question for most of you but please help me
understand the difference between two columns in VL03N - delivery and picked quantity.
We have implemented WMS.
Here's my example:
1. One outbound delivery with one delivery item.
delivery quantity = 100 pieces
2. Warehouseman using mobile device confirms 40 pieces of material (batch A)
3. Warehouseman does not confirm the remaining 60 pieces from batch B
4. Now when I display delivery item in VL03N I have the following situation
(item level, batch level is disabled)
Delivery qty = 100 pieces
Picked qty = 60 pieces
First question: Why picked qty = 60 instead of 40. The warehouse confirmed
40 pieces of material so picked qty should be 40. But for some reason it
shows unpicked quantity.
When I click "+" (for batch split)
BATCH A: delivery qty = 40, picked quantity = 40, picking status = "C", WM status = "C"
BATCH empty: delivery qty = 60, picked quantity = 60, picking status = "C", WM status = "B"
Second question: why column "picked quantity" for empty batch (not confirmed yet)
displays 60 pieces. The remaining 60 pieces has not been confirmed yet.
Best regards,
MarkKookie,
Second, delivery quantity is what the client requires to be delivered; picked quantity is what needs to be picked. So using your example, 40 were picked, remaining still to be picked is 60.
This is my case.
a) warehouseman confirmed 40 pieces of batch A.
b) Before he confirm remaining 60 pieces of batch B I go to VL03N to see how this transaction indicates
that there are still 60 pieces left (or that only 40 pieces of batch A has been confirmed yet)
VL03N > I click "+" (for batch split) and get two rows for the delivery item
Line 1: delivery qty = 40, picked quantity = 40, Batch: A, picking status = C, WM status = C
Line 2: delivery qty = 60, picked quantity = 60, Batch: null, picking status = C, WM status = B
While second batch has not been confirmed (picked) yet, the second line should look in my
opinion like this:
Line 2: delivery qty = 60, picked quantity = 0, Batch: null, picking status = C, WM status = B
Picked quantity for unconfirmed, remaining quantity shoud be 0. However SAP shows "60". Why?
This is confusing. The only way for me to check what quantity has been confirmed is to examine
WM status column.
Best regards,
Mark -
Asset Quanity ( Manually updated in Master data) is not Display in Asset Invetory report
Dear Experts
I have created as Asset master ( T code AS01) and given the quantity 1 EA and there is no acquisition with any value . But when I try to pull out the asset report with quantity, the above mentioned assets are not updated/displaying in any assets reports .
My requirement is , the assets report should be updated with quantity which I updated manually. How can I rectify this issue? Please advise
Thanks & Regards
Sijo
FICO ConsultantSijo,
you can display this assets by AR12 since there are no postings yet. Reports like AR01 displays only Asstes with value.
Regards -
For Delivery Performance what are the standard report available n SAP?
For Delivery Performance what are the standard report available n SAP?
hi
If you wanna know the SD report just go to SAP1 transaction code from easy access( it works only from easy access) and you will find entire reports available in SAP. Then select what is relevant to you. And as you asked any material on reports, so I have some good material on it and will surely send you tonight.
And Some of the Standard reports in SD are given below check it out for convenient however always better to chek above told transaction code:
Sales summary - VC/2
Display Customer Hierarchy - VDH2
Display Condition record report - V/I6
Pricing Report - V/LD
Create Net Price List - V_NL
List customer material info - VD59
List of sales order - VA05
List of Billing documents - VF05
Inquiries list - VA15
Quotation List - VA25
Incomplete Sales orders - V.02
Backorders - V.15
Outbound Delivery Monitor - VL06o
Incomplete delivery - V_UC
Customer Returns-Analysis - MC+A
Customer Analysis- Sales - MC+E
Customer Analysis- Cr. Memo - MC+I
Deliveries-Due list - VL04
Billing due list - VF04
Incomplete Billing documents - MCV9
Customer Analysis-Basic List - MCTA
Material Analysis(SIS) - MCTC
Sales org analysis - MCTE
Sales org analysis-Invoiced sales - MC+2
Material Analysis-Incoming orders - MC(E
General- List of Outbound deliveries - VL06f
Material Returns-Analysis - MC+M
Material Analysis- Invoiced Sales - MC+Q
Variant configuration Analysis - MC(B
Sales org analysis-Incoming orders - MC(I
Sales org analysis-Returns - MC+Y
Sales office Analysis- Invoiced Sales - MC-E
Sales office Analysis- Returns - MC-A
Shipping point Analysis - MC(U
Shipping point Analysis-Returns - MC-O
Blocked orders - V.14
Order Within time period - SD01
Duplicate Sales orders in period - SDD1
Display Delivery Changes - VL22
These are all main standard reports as well I am again repeating that it's better to check all reports from above said transaction code. -
Difference between open quantity and delivery quantity
Hi all,
Please anybody explain me the difference between open quantity and delivery quantity My question is both are same in the value or different I need to report these 2 fields based on date.
open quantity is available in table vbbe
delivery quantity available in table lips.
for open quantity i have one select statement.
for delivery quantity i have another select statement.
i want to club these 2 fields into a single report.
please clarify my doubt.
regards
chanduHi,
Open quantity is nothing but the quantity which we have at the DAY starts.
Delivered quantity means which was delivered on that DAY.
So Opening qty - Delivered qty = Closing qty for a DAY.
Again this Closing qty will be the Opening qty for next DAY.
I think based on POSNR u need to club both the quantity in single report.
select vbeln posnr matnr omeng mbdat into itab from VBBE where....
select vbeln posnr matnr lfimg mbdat into itab1 from lips where....
loop at itab.
read table itab1 with key....
move:....to itab2.
endloop.
Thanks.
I hope this will help you.
Message was edited by: Deepak333 k
Message was edited by: Deepak333 k
Maybe you are looking for
-
Page break and Subtotal display in alv
Kindly provide me the resolution for the following issue at your earliest Issue: I am sorting the alv list based on invoice payment date with subtotals. and i need a page break for every new invoice payment date.I have achived the same by following c
-
Quicktime 7.1.3 wont install, iTunes wont work.
When ever I start iTunes,first of all it never opens up but a error comes up saying.... "QuickTime version 7.0d0 is installed, iTunes requires QuickTime Version 7.1.3 or later. Please Reinstall iTunes" So I reinstall iTunes, I have done this about 4
-
How to extract sub string value from a string?
Hi, I need to know how can i extract sub strings from a main string, something like this: main variable-------->"2087-5E2SE-19-JG7BC" i want to split it into like this: sub_main_1 variable---------> "2087" sub_main_2 variable---------> "5E2SE" sub_ma
-
How to make white letters with black contour line in Title Tool?
I have version 7, I have to match the subtitles of a formerly edited piece which are in Gill Sans with a black contour. I only know how to use Shadow. Can you help me? Thank you very much.
-
How to display complete menu tree for a particular SAP user in UI5
Hi Experts, I am trying to display menu tree for a particular SAP user on click of button placed in shell content. I am referring this link Displaying the Complete Menu Tree - User Interface Add-On for SAP NetWeaver - SAP Library But I am not getting