Re: DateTime @ Universe level
Re: Tolerance limits in PO on weight basis
Hi,
Thanks for the inputs. I got another alternate. thanks
move-corresponding fields in loop
Dear All,
Please see my code. Here, I had the GRN values in IT2 table and use loop in IT2 then i got the information about INVOICE details. After, the fields move-corresponding to IT4 table. But it's working properly. IT4 table getting the value of IT2 table's last record only.
Please help. I am new to abap
REPORT zpo3 LINE-SIZE 240.
TABLES : ekko,ekpo,ekbe.
TYPES : BEGIN OF k,
ebeln TYPE ekko-ebeln,
lifnr TYPE ekko-lifnr,
AEDAT TYPE EKKO-AEDAT,
rlwrt TYPE ekko-rlwrt,
* EBELN TYPE EKPO-EBELN," PO NUMBER
* NETWR TYPE EKPO-NETWR," PO VALUE
WERKS TYPE EKPO-WERKS,
NAME1 TYPE LFA1-NAME1,
*
END OF k.
DATA : it1 TYPE TABLE OF k, wa1 TYPE k.
DATA : it3 TYPE TABLE OF ekbe, wa3 TYPE ekbe.
DATA : BEGIN OF wa_collect OCCURS 0, "GRN - MIRO
ebeln TYPE ekpo-ebeln," PO NUMBER
lifnr TYPE ekko-lifnr,
rlwrt TYPE ekko-rlwrt,
WERKS TYPE EKPO-WERKS,
menge TYPE ekbe-menge,
dmbtr TYPE ekbe-dmbtr,
belnr TYPE ekbe-belnr,
budat TYPE ekbe-budat,
NAME1 TYPE LFA1-NAME1,
END OF wa_collect.
DATA : BEGIN OF wa_collect1 OCCURS 0, " IR - MIGO
ebeln TYPE ekpo-ebeln," PO NUMBER
lifnr TYPE ekko-lifnr,
belnr1 TYPE ekbe-belnr,
budat1 TYPE ekbe-budat,
dmbtr1 TYPE ekbe-dmbtr,
menge1 TYPE ekbe-menge,
END OF wa_collect1.
TYPES : BEGIN OF S,
ebeln TYPE ekko-ebeln,
lifnr TYPE ekko-lifnr,
AEDAT TYPE EKKO-AEDAT,
rlwrt TYPE ekko-rlwrt,
belnr TYPE ekbe-belnr,
dmbtr TYPE ekbe-dmbtr,
menge TYPE ekbe-menge,
budat TYPE ekbe-budat,
WERKS TYPE EKPO-WERKS,
NAME1 TYPE LFA1-NAME1,
END OF S.
DATA : IT2 TYPE TABLE OF S, WA2 TYPE S.
TYPES : BEGIN OF M,
ebeln TYPE ekko-ebeln,
lifnr TYPE ekko-lifnr,
AEDAT TYPE EKKO-AEDAT,
rlwrt TYPE ekko-rlwrt,
belnr TYPE ekbe-belnr,
dmbtr TYPE ekbe-dmbtr,
menge TYPE ekbe-menge,
budat TYPE ekbe-budat,
WERKS TYPE EKPO-WERKS,
NAME1 TYPE LFA1-NAME1,
belnr1 TYPE ekbe-belnr,
budat1 TYPE ekbe-budat,
dmbtr1 TYPE ekbe-dmbtr,
menge1 TYPE ekbe-menge,
END OF M.
DATA : IT4 TYPE TABLE OF M, WA4 TYPE M.
SELECT-OPTIONS : so_ebeln FOR ekko-ebeln, so_edat FOR ekko-aedat.
START-OF-SELECTION.
IF EKKO IS INITIAL.
*SELECT ebeln lifnr AEDAT rlwrt FROM ekko INTO TABLE it1 WHERE ebeln IN so_ebeln.
SELECT
EKKO~EBELN
EKKO~LIFNR
EKKO~AEDAT
ekko~rlwrt
EKPO~WERKS
LFA1~NAME1
INTO TABLE IT1
FROM EKKO
JOIN EKPO ON ( EKKO~EBELN = EKPO~EBELN )
JOIN LFA1 ON ( EKKO~LIFNR = LFA1~LIFNR )
WHERE EKKO~ebeln IN SO_ebeln AND
EKKO~AEDAT IN SO_EDAT
ORDER BY EKKO~LIFNR .
LOOP AT it1 INTO wa1.
* READ TABLE IT1 INTO WA1 WITH KEY EBELN = WA3-EBELN.
DELETE ADJACENT DUPLICATES FROM it1 COMPARING ALL FIELDS.
SELECT ebeln belnr budat menge dmbtr FROM ekbe
INTO (wa3-ebeln,wa3-belnr,wa3-budat,wa3-menge,wa3-dmbtr) WHERE ebeln = wa1-ebeln
AND bwart = '101'.
IF sy-subrc = 0.
wa_collect-ebeln = wa1-ebeln.
wa_collect-lifnr = wa1-lifnr.
wa_collect-rlwrt = wa1-rlwrt.
wa_collect-werks = wa1-werks.
wa_collect-menge = wa3-menge.
wa_collect-dmbtr = wa3-dmbtr.
wa_collect-name1 = wa1-name1.
wa_collect-belnr = wa3-belnr.
wa_collect-budat = wa3-budat.
ENDIF.
COLLECT wa_collect .
clear : wa1-rlwrt.
ENDSELECT.
ENDLOOP.
LOOP AT WA_COLLECT.
MOVE-CORRESPONDING WA_COLLECT TO WA2.
READ TABLE IT1 INTO wa1 WITH KEY ebeln = wa1-ebeln.
wa2-aedat = wa1-aedat.
APPEND wa2 to it2.
ENDLOOP.
* LOOP AT it2 INTO wa2.
* WRITE : / wa2-lifnr ,wa2-ebeln ,wa2-name1 ,wa2-aedat ,wa2-rlwrt ,wa2-werks ,wa2-dmbtr ,wa2-menge ,wa2-budat ,wa2-belnr .
* ENDLOOP.
LOOP AT it2 into wa2.
* MOVE-CORRESPONDING WA_COLLECT TO WA4.
SELECT ebeln belnr budat menge dmbtr FROM ekbe
INTO (wa3-ebeln,wa3-belnr,wa3-budat,wa3-menge,wa3-dmbtr) WHERE ebeln = wa2-ebeln AND BEWTP = 'Q' .
IF sy-subrc = 0.
wa_collect1-ebeln = wa2-ebeln.
wa_collect1-lifnr = wa2-lifnr.
wa_collect1-belnr1 = wa3-belnr.
wa_collect1-budat1 = wa3-budat.
wa_collect1-menge1 = wa3-menge.
wa_collect1-dmbtr1 = wa3-dmbtr.
ENDIF.
COLLECT wa_collect1 .
ENDSELECT.
ENDLOOP.
*
* LOOP AT wa_collect1.
*
* WRITE :
** wa_collect1-EBELN , wa_collect1-LIFNR ,
* / wa_collect1-belnr1 , wa_collect1-budat1 , wa_collect1-MENGE1 , wa_COLLECT1-DMBTR1 .
*
*ENDLOOP.
LOOP at wa_collect1.
MOVE-CORRESPONDING WA_COLLECT1 TO WA4.
READ TABLE IT2 INTO wa2 WITH KEY ebeln = wa2-ebeln.
IF SY-SUBRC = 0.
wa4-rlwrt = wa2-rlwrt.
wa4-aedat = wa2-aedat.
wa4-werks = wa2-werks.
wa4-menge = wa2-menge.
wa4-dmbtr = wa2-dmbtr.
wa4-name1 = wa2-name1.
wa4-belnr = wa2-belnr.
wa4-budat = wa2-budat.
ENDIF.
APPEND wa4 to it4.
CLEAR : wa4,wa2,WA_COLLECT1.
ENDLOOP.
*
*
*
*WRITE : 'PO No.' , 15 'VENDOR' , 37 'NAME' , 76 'PO VALUE' , 88 'PO CREATED', 100 'PLANT', 108 'GRN NO', 127'GRN Qty', 146 'GRN Value',
* 160 'GRN CREATED', 175 'IR No', 192 'IR Qty', 213 'IR VALUE' , 225 'IR CREATED'.
*ULINE.
*
*
*LOOP AT it4 INTO wa4.
*
* WRITE : / wa4-EBELN ,SY-VLINE, wa4-LIFNR ,SY-VLINE, wa4-name1 ,SY-VLINE, wa4-rlwrt , SY-VLINE ,wa4-aedat ,SY-VLINE, wa4-werks ,SY-VLINE, wa4-belnr ,SY-VLINE, wa4-MENGE ,SY-VLINE,
* wa4-DMBTR ,SY-VLINE, wa4-budat,SY-VLINE, wa4-belnr1 ,SY-VLINE,wa4-MENGE1 ,SY-VLINE, wa4-DMBTR1 ,SY-VLINE, wa4-budat1 .
*
*ENDLOOP.
ENDIF.
Simple Join Issue
We are in HANA SP9
I need to have a actuals vs target for salesman as follows
Actuals is already available in a calculation view. Target is arriving as flatfile. Hence created analytical view for same
Projection 1 -> target
Projection 2 - > actuals
I joined this 2 projection by salesman code and date and used right outer join ( right ->target, left -> actuals)
and cardinality 1:1
Ideally it should work, but What I am getting is strange output
I played around with cardinality and changes join type to inner/left but nothing giving me correct output
Any inputs much appreciated
Re: Payroll PCR
Then , As said by Dey, we have to Query Cumulative Working hour for the pay period with OT Cumulative hours . Since the amount will be paid on period basis which is paid in cumulatively
you have to re check the scenario , convince the client
BOM Group Vs Multiple BOM
Hi,
Can any one describe the difference between BOM Group Vs Multiple BOM ?
In CS02 on BOM Header there is a field called BOM Group, What for it is ? In what case it is suggested ? I feel it is Just a TEXT like Material description ?
Thanks in Advance,
Dinesh V.
Re: Bug: property of a complex type is processed wrongly by a worklist template.
Hi Petr ,
Thank for your attention ,
We are checking the issue .
Regards,
Inna
Re: Using tab strip from common to use M behavior
HI All,
Any idea if it possible?
Thanks!
Re: Negative values in Date Difference Calculation
Hi,
Then try testing for stardate > endate, IF so, multiply the resultado of DatesBetween by -1
Regards,
Rogerio
Re: HAT installation, problem in step 3 -> Build Companion App
Hi,
yes i downgraded Cordova to 5.2.
Sorry if the screenshot doesn't show much, but i don't get any help from the entire error message too.
Re: Weekly and YTD figures
Thanks but in ([Date]) doesn't work. The problem is that measures are summed, not calculated for each dimension. Using projected function as "delegated" sort of works for only one part of the union query.
You probably meant "Where ([Date] Between ...)" to separate Weekly figures from YTD. Yes, that's the plan but I can implement it when I get one side of it working (Weekly or YTD). Adding a date in the query now simply inflates the figures.
Please note that in the SQL above I can remove the Date field and the result will be a percentage between 0% and 100%.
EDIT:
Perhaps I have confused by saying that I need both weekly and YTD figures in one queries. If I get one of them to work, I should get the one to work as well but for that I need to include the date object in the query, so that I could filter out Weekly and YTD figures.
Form with 2 layout orientation with multi pages for each orientation
Hi experts.
I want to ask help, I'm still new and learning Adobe Interactive Form.
So I got this requirement, the form got 2 pages orientation, first is portrait (summary page), and the second one is landscape (detail page).
the landscape page should come out only after the portrait page is printed.
The thing is, this portrait page can be multiple pages, and the landscape very much possible to be multiple pages also.
Now, i make 2 master page and 1 body page in the adobe form application (SFP).
Master page MP1 is for portrait orientation, and master page MP2 for landscape orientation.
Body page BP1 consists all the summary information.
And for all the detail info, I put it in master page 2.
(I try to use another body page, BP2, but when i set the pagination place for BP2 to MP2, there is blank page in middle of BP1 and BP2, and when i click the blank page, it says it's the MP2. Because of that, i removed the BP2 and put all the detail data is MP2)
The problem now, when i test run the form, i can only print 2 pages, 1 portrait and 1 landscape (1 page for summary and 1 page for detail).
When actually im testing for more than 2 pages. It doesn't print more pages.
how to solve this issue, experts, please help
Thanks.
Regards,
Darmadi Chandra
Add suggestion within control
Hi
I've this following example and one of the autocomplite event is suggest and I want to add the code of it inside the new control and not to put
it in the constructor , how can I do that ?
Thanks!
Joerg
JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.commons.AutoComplete
Re: Weekly and YTD figures
Hi Anatoli,
Probably the In ([Date]) hadn't work for you because you might have not added the dimension for which the values are getting aggregated.
In is used to specify exactly which dimensions to include in a context. Other dimensions in the block are ignored. Adding / removing elements from the block does not impact this calculation unless a removed dimension was specified in the context. In that case a #MULTIVALUE error is displayed.
you can refer to below links.
Webi report (ForAll & Foreach) | SCN
you can try using below formula, add the Date column in the report and hide it:
= [Target] In ([Date];[KPI])
-Faiz
Re: Negative values in Date Difference Calculation
hi Rogerio,
thanks for your time,can you brief in some more detailed explanation pls
Regards,
Balaji
Re: IR was posted two time for same quanatity in after GR
In GR based IV, i believe the amount can be entered / altered whrein the system will proceed to check the Tolerances maintained for Price Variances.
In GR based IV, system mandates a occurrence of atleast one GR. Kindly recheck the case from this standpoint.
To make life simpler, please deploy the duplicate invoices check which is typically in place to keep away double invoicing.
Prima facie, this looks a user entry related issue!!
Regards,
Nikhil Salian
Nota Técnica 2015.002 - Imposto de Importação
Bom dia Pessoal!
Estou implementando a nota técnica 2015.002 e estou com o seguinte erro:
599 - Rejeição: CFOP de Importação e não informado dados de II
O Imposto de importação esta sendo informado via BADI CL_NFE_PRINT, método Fill_Item.
Como pré-requisito para essa NT foram implementadas as notas:
2040234 - [3.10] SEFAZ rejects NF-e due to missing information of importing taxes in the XML.
2056129 - The delivery note has no tag II in the XML file.
Essas notas fazem correções para montagem da TAG de Imposto de Importação, porém creio que quando o imposto de importação é informado via BADI CL_NFE_PRINT, método Fill_Item, ocorre algum erro.
Por favor, alguém consegue me ajudar? Procurei notas na SAP para ver ser tem correção para o problema e não encontrei.
Desde já agradeço.
Eliseu.
Re: Document appearing in both BSID and BSAD ?
The document appears twice in FBL5n - as cleared and uncleared - so I guess that's why it is appearing in both BSID and BSAD.
What I don't understand is how a document can appear to exist twice in FBL5n, and how it can be in both BSID and BSAD. The document looks exactly the same except that it has 2 different due dates.
Re: Formularios Mandatos SEPA
Hola Mahira:
He buscado la nota pero me dice que no existe.
Puedes revisar a ver si me has dado el número correcto y escribirlo de nuevo?
Gracias
Un saludo,
Jorge
Re: Planning query reads all the data
Hi San,
If you want to limit the data that is used in your query, put a filter into the query on object 0INFOPROV and limit it to the provider you want to use.
regards
Cornelia