Quantcast
Channel: SCN: Message List
Viewing all 8667 articles
Browse latest View live

consulta movimientos de articulos

$
0
0

Buenas tardes compañeros estoy teniendo algunos problemas con la siguiente consulta.

 

SELECT DISTINCT T.ItemCode, T.ItemName,

IsNull((SELECT Sum(B.CountQty)

FROM OINC A inner join INC1 B on A.DocEntry = B.DocEntry

WHERE B.ItemCode=T.ItemCode AND A.CountDate >= '[%2]' and B.WHSCODE = 'MP'),0) as 'Cierre de Inventario',

IsNull((SELECT Sum(B.Quantity)

FROM PDN1 B INNER JOIN OPDN A ON B.DocEntry = A.DocEntry

WHERE B.ItemCode=T.ItemCode AND A.DocDate >= '[%0]' AND A.DocDate<='[%1]' and A.Canceled='N'),0) as 'Entradas de Mescancia',

IsNull((SELECT Sum(B.Quantity)

FROM RPD1 B INNER JOIN ORPD A ON B.DocEntry = A.DocEntry

WHERE B.ItemCode=T.ItemCode AND A.DocDate >= '[%0]' AND A.DocDate<='[%1]' and A.Canceled='N'),0) as'Devoluciones',

IsNull((SELECT SUM(B.Quantity)

FROM OWTR A INNER JOIN WTR1 B ON A.DocEntry = B.DocEntry

WHERE B.ItemCode=T.ItemCode AND A.DocDate >= '[%0]' AND A.DocDate<='[%1]' and A.Canceled='N'),0)as 'Cantidad solicitada',

ISNULL((SELECT SUM(Y.Quantity)FROM OWTR X INNER JOIN WTR1 Y ON Y.DocEntry=X.DocEntry

WHERE Y.ItemCode=T.ItemCode AND X.DocDate >='[%0]' AND X.DocDate<='[%1]' AND Y.FromWhsCod = 'MP' AND  Y.WhsCode = 'WIP'),0)as 'Cantidad Entregada', 

ISNULL((SELECT SUM(Y.Quantity) FROM OIGE X INNER JOIN IGE1 Y ON Y.DocEntry=X.DocEntry

WHERE Y.ItemCode=T.ItemCode AND X.DocDate >='[%0]' AND X.DocDate<='[%1]' and Y.WhsCode = 'WIP' AND Y.AcctCode = '1200.2.1' AND X.Comments LIKE '%Nº-OT%'),0) as'Cantidad Consumida' 

FROM OITM T 

where T.SellItem = 'N' and T.PrchSeItem = 'Y'

GROUP BY T.ItemCode, T.ItemName

ORDER BY T.ItemCode

 

al correrla en sap me marca el siguiente error

 

must specify table to select from. 'alertas recibidas'

 

yo al mirar la consulta no encuentro ningún error.

 

la corro en mi sql y esta correcto, y la corro individual mente tabla por tabla y de igual manera no me manda ningún error y me devuelve los datos correctos.

 

el error solo me lo manda cuando intento correr toda la consulta junta.


Re: SAP HANA - Inner Join Performance Optimization

$
0
0

Hi Lars,

 

basically we get a lot of external data into the system. We load these data every 5 min and in peak periods we need to be able to handle 25.000 received records within the 5 min slot.

The external data contains some key component that I use in the SQL the where clause, namely a so called Trade ID (basically a sort of customer number), a material number and a controlling date.

 

Now for each of these records (based on trade id, material and controlling date) I need to find the latest billing item available (need to perform some joins to get there in order to get only based on a certain sales order type etc.).

But basically, if could use below statement for each of the external data records I receive - however that will be 25.000 calls toward the HANA every 5 min and I guess that is insufficient as well (ok, my current approach seems to be insufficient as well).

SQL_TOP_1_for one combination of trade id material and controlling date.JPG

As you see it is TOP 1 selection (I only need to first record returned - there might actually be many records but I do only need the first one - I know I only need the first one due to the order by clause). I have high lighted the controlling parts, namely the trade id, the material and a controlling date that is to be used to find the billing data I need to get for a external record received.

 

I dont know if there is a smarter way to do it than what I do today - the problem with my current SQL (shown below - I pass on 25.000 records at a time in a for all entries statement) is that it returns WAY more records than I need. I basically just need the first record for each Trade ID, Material, Controlling date conbination I prove in the gi_material internal table.

 

  IF gi_material IS NOT INITIAL.
    SELECT b~bill_num b~bill_item b~bill_date b~doc_currcy
           b~material
           t~/bic/trade_id c~/bic/cushier6 c~cust_sales
           b~netval_inv b~bill_qty c~datefrom c~dateto
      INTO CORRESPONDING FIELDS OF TABLE lt_temp_table
            FROM /bic/ansd300000 AS b
      INNER JOIN /bi0/mcust_sales AS c
      ON b~sold_to EQ c~cust_sales
      INNER JOIN /bic/mtrade_id AS t
      ON c~/bic/cushier6 = t~/bic/cushier6
      INNER JOIN /bic/ansd260000 as o
      on b~doc_number EQ o~doc_number
      FOR ALL ENTRIES IN gi_material
      WHERE t~/bic/trade_id EQ gi_material-tradeid AND
            b~bill_type EQ 'ZF2' AND
            o~doc_type EQ 'ZOR' AND
            b~material EQ gi_material-material AND
            c~dateto GE gi_material-date1 AND
            b~bill_date LE gi_material-date1.
  ENDIF.

Re: Bill Print Out of Balance Issues

$
0
0

Thanks for the detailed example.

Seems that there is a typo.

The IP item amounts are 15 or 115?(in line 1). what is that Item36 (in line 3)?

Does it holds the IP amount?

 

So if all customers pay every time the exact amounts it won't result in OOB right?

Also, will every Bill print in every client carry some kind of OOB? Thanks

Re: Is there any workaround available to show calculated values in charts

$
0
0

Hello Pooja,

 

yes there is an option - we do have a component available that does let you add custom calculation to a chart.

 

In case you interested, feel free to reach out to me

 

regards

 

Ingo Hilgefort, Visual BI

Re: Need to show Batch Number/Warranty Date on Sales Order Layout

$
0
0

Hi Nagarajan!

 

I selected Batch Number by right-click on Quantity in Sales Order line item - this allows the batch to be "allocated"  I would like to show the selected Batch Number on the Sales Order Line Item after selection.

 

Please help   I can not figure this one out...

Re: Analysis Office Write-back

$
0
0

Hi Eva,

 

we are facing the same issue and created a SAP incident for it. SAP responded that this is just a display error and the correct write-back system is used when saving plan data. I don't know if the planning actually works for you after you've promoted your workbook?

 

For us it was more than just a display error, we couldn't save any plan data after promoting a workbook and had to manually refresh the datasources, change the write-back system, save the workbook, close and re-open the workbook and only then it would work.

I explained this to SAP but they were not able to reproduce this issue on their systems.

 

However, I did find we were doing one thing differently from SAP: we are using OLAP connections that connect directly to the planning Bex query whereas SAP uses an OLAP connection that connects just to the BW system and then select a planning query only when creating the Analysis Workbook.

 

I tried this approach as well and it works now! The system for write-back parameter is still showing our DEV system after promoting to TEST, but entering and saving plan data in our TEST system works correctly without any manual change.

 

Hope this works for you as well,

Best regards,

Joost

Re: Using Append in GUI_DOWNLOAD in format DBF

$
0
0

Well, you'' have to merge them into the same structure.

 

Rob

Re: OM Implementation direction

$
0
0

This is really not something to be answered in a simple forum thread. What you are asking for is pretty much "how do I configure all of OM/PD?".....which is far more involved than this forum space allows....and I would be very suspect of anyone giving you advice a such ("here are 10 steps and you will be done!") here as well. I would follow through SAP's configuration documentation (help.sap.com as well as IMG docs) and other material. You can/should even get the SAP Press book on OM by Sylvia Chaudoir (Mastering SAP ERP HCM Organizational Management).

 

If you have specific questions about specific aspects of OM, then this place is better suited for those.


Limit Data in CDS for huge results

$
0
0

Hey Guys,

 

I have implemented the following CDS (ABAP on HANA):

 

CDS.jpg

 

It's basically a join of 3 huge tables (~150 Mio. records) with some extra logic. I need this split into 3 tables because the result of the join without any condition would result in over 50 billion records. When I access this view in ABAP with where clause like:

 

select * from /ascorpi/raav into table @data(lt_raa) where ip = '000C29E454191EE58BDFCA7F32185B16'

This is processed in ~300ms (That's fine).

 

For some other where clauses (or without where clause) this cannot be processed anymore though I limited the result on 10k records:

 

select * from /ascorpi/raav into table lt_raa up to 10000 rows.

It seems like the join is fully processed on the HANA DB and just the number of records that is copied over to the ABAP application server is limited to 10k records. This select kills the whole system...

 

Is there a way to limit the number of results on CDS level? I am never interested in a "full join" of all data. When I query with a bad where clause I want to have a limit that applies. Because of the structure of my data, I don't see a way to use some aggregate funcitons like min() or max() combinded with a "group by" clause.

 

I really appreciate your help.

 

Regards

 

Tobias

"No tolerance check in counting" indicator in Physical Inventory specific settings

$
0
0

Dear all,

 

I am using EWM 9.1.

 

In following path in EWM -

 

SPRO - SCM Extended warehouse management - Extended warehouse management - Internal Warehouse processes - Physical Inventory - Warehouse Number Specific settings - Specify Physical Inventory specific settings in the warehouse

 

What is meaning of "No tolerance check in counting" indicator?

If set, is it correct that the system does not check any tolerances during counting and allows any value?

 

Regards,

 

Chaitanya

trigger workflow event from badi

$
0
0

Hi


I am using  cl_swf_evt_event=>raise trigger workflow from Badi .but it need commit work to trigger workflow.

commit work is not recommended to use in badi or user exit.


TRY.

CALL METHOD cl_swf_evt_event=>raise

EXPORTING

im_objcateg = 'CL'

im_objtype = lv_objtype

im_event = myevent

im_objkey = myobject_key.

 

CATCH cx_swf_evt_invalid_objtype .

CATCH cx_swf_evt_invalid_event .

ENDTRY.





as soon as event get trigger workflow should start.



which event should i use to achieve my requirement?


 

regards,

satyanarayana

Purchase order 4500017603 has no items

$
0
0

Dear all,

 

While posting the Goods Receipt, MIGO - PO Number Known, I got this message;

Purchase order 4500017603 has no items

Message no. M7033

Diagnosis

The system has not found any order items in the purchase order 4500017603.

Procedure

Make sure your entries are correct.

If the purchase order number has been incorrectly specified in your reference document, you can search for the correct number with the search functions.

 

 

As far as my entries are concerned, I checked it again and again;

1. All enteries are correct,

2. PO # is correct

3. In PO's Item Detail,

    (a) In Confirmation Tab , 'Confirmation Control' is blank

    (b) In Schedule Delivery Tab, It gives me the delivery date with the scheduled quantity as per the Purchase Requisition

5. In PO's Delivery Tab

    (a) Goods Receipt is checked

6. I tried to release the Purchase Order but it says this Order can't be released.

 

Any suggestions to Post Goods Receipt?

 

Thanks,

Re: 2232757 - J1BTAX - Migração - J_1BTXIC1 - Processos de MM - DUMP

$
0
0

Muito obrigada pela info Daniel.

Re: SAP GRC 10.0 SP10 - role search error

$
0
0

Hi Artem

The communication user has sap_all and don't find any errors in SLG1 after I import the role. The thing is the import works fine for other roles. It only has issues with once specific role. When I import it says the import is successful. However when I go to search for the role as per my above screenshots I get the error "Role does not exist".

Re: Table validation of Date field

$
0
0

Hi German

 

Would you be able to share some code?

 

Thanks

-D


Re: [MM&SD]Product allocation on inventory not sales order.

$
0
0

Moderator message: The content of the note is behind password protection for a certain reason so it is not appropriate to exchange this note in a public forum.

Contact somebody in your company who as access to download it for you.

Discussion locked.

Tic tac toe in sapui5 with dynamic binding of table cells

$
0
0

Hi,

I would like to get better in sapui5 and for that I need to work my JavaScript. For this I would like to create the tic tac toe game, with rules in JavaScript. The problem is I never develop a tic tac toe game, and I can't imagine how to do my model in JSON. And without JSON model, my dynamic binding of table cells can't appears. An idea on what I put in my JSON model for that my table appears with other thing that "no data" message?

Thank sin advance, best regards.

 

Ewen.

Re: Passing parameter to Open Document URL

Re: Datawindow Column Name is created with another name while try to create

$
0
0

Hi Antony,

 

It is a bit confusing, but this is what happens;

  1. When the datawindow is created you have the buffer columns specifified under table(
  2. Each column has a name. This is the name you use for your GetItem... and SetItem
  3. Also a representation of each column is defined for each column to be painted in the detail band. Each have the same name (initially) but the link between the two is in fact the id property
  4. If you change the name of a column in the datawindow painter, the name is changed in both places. This is not what you are doint
  5. If you place an extra representation of a column in any band, you are still referring to the same column in the buffer table( but because you cannot have to names the same it gets an _1 amended but it is the id that "maps" it to the same column

 

This is part of the syntax of a datawindow with the first column named emp_name (id=1) painted twice under two names: emp_name and emp_name_1:

 

 

table(column=(type=char(30) updatewhereclause=yes name=emp_name dbname="emp_name" )

column=(type=char(30) updatewhereclause=yes name=emp_other_name dbname="other_name" )

...

column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="33554432" x="165" y="8" height="72" width="462" format="[general]" html.valueishtml="0"  name=emp_name visible="1" ....

column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="33554432" x="635" y="8" height="72" width="347" format="[general]" html.valueishtml="0"  name=emp_other_name visible="1" ....

column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="33554432" x="1591" y="8" height="72" width="407" format="[general]" html.valueishtml="0"  name=emp_name_1 visible="1" ....

 

Very confusing, but does make sense.

 

HTH

Lars

Re: SAP GRC 10.0 SP10 - role search error

$
0
0

Hi Trinadh

Please see below for screenshots

 

2015-12-14_1121.png2015-12-14_1121_001.png

2015-12-14_1122.png2015-12-14_1122_001.png

 

2015-12-14_1122_002.png

In Role search....

2015-12-14_1123.png2015-12-14_1124.png

Viewing all 8667 articles
Browse latest View live




Latest Images