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

Re: report query

$
0
0

form build_fieldcatalog.

 

fieldcatalog-fieldname = 'EBELN'.

fieldcatalog-seltext_m = 'PO NUMBER'.

fieldcatalog-col_pos = 0.

fieldcatalog-outputlen = 10.

fieldcatalog-emphasize = 'X'.

fieldcatalog-REF_TABNAME = 'EKKO'.

fieldcatalog-REF_FIELDNAME = 'EBELN'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

fieldcatalog-fieldname = 'AEDAT'.

fieldcatalog-seltext_m = 'PO DATE'.

fieldcatalog-col_pos = 1.

fieldcatalog-REF_TABNAME = 'EKKO'.

fieldcatalog-REF_FIELDNAME = 'AEDAT'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

fieldcatalog-fieldname = 'EKGRP'.

fieldcatalog-seltext_m = 'PUR GRP/BUYER'.

fieldcatalog-col_pos = 2.

fieldcatalog-REF_TABNAME = 'EKKO'.

fieldcatalog-REF_FIELDNAME = 'EKGRP'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

fieldcatalog-fieldname = 'EKORG'.

fieldcatalog-seltext_m = 'PUR ORG.'.

fieldcatalog-col_pos = 3.

fieldcatalog-REF_TABNAME = 'EKKO'.

fieldcatalog-REF_FIELDNAME = 'EKORG'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

fieldcatalog-fieldname = 'LIFNR'.

fieldcatalog-seltext_m = 'VENDOR NO'.

fieldcatalog-col_pos = 4.

fieldcatalog-REF_TABNAME = 'EKKO'.

fieldcatalog-REF_FIELDNAME = 'LIFNR'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

fieldcatalog-fieldname = 'EBELP'.

fieldcatalog-seltext_m = 'PO LINE'.

fieldcatalog-col_pos = 5.

fieldcatalog-REF_TABNAME = 'EKPO'.

fieldcatalog-REF_FIELDNAME = 'EBELP'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

fieldcatalog-fieldname = 'MENGE'.

 

fieldcatalog-seltext_m = 'ORD QTY'.

fieldcatalog-col_pos = 6.

fieldcatalog-REF_TABNAME = 'EKET'.

fieldcatalog-REF_FIELDNAME = 'MENGE'.

<b>fieldcatalog-tabname = 'EKET'.</b>

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

fieldcatalog-fieldname = 'MEINS'.

fieldcatalog-seltext_m = 'UNIT'.

fieldcatalog-col_pos = 7.

fieldcatalog-REF_TABNAME = 'EKPO'.

fieldcatalog-REF_FIELDNAME = 'MEINS'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

fieldcatalog-fieldname = 'MATNR'.

fieldcatalog-seltext_m = 'MATERIAL'.

fieldcatalog-col_pos = 8.

fieldcatalog-REF_TABNAME = 'EKPO'.

fieldcatalog-REF_FIELDNAME = 'MATNR'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

fieldcatalog-fieldname = 'TXZ01'.

fieldcatalog-seltext_m = 'DESCRIPTION'.

fieldcatalog-col_pos = 9.

fieldcatalog-REF_TABNAME = 'EKPO'.

fieldcatalog-REF_FIELDNAME = 'TXZ01'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

 

fieldcatalog-fieldname = 'IDNLF'.

fieldcatalog-seltext_m = 'VEND MAT'.

fieldcatalog-col_pos = 10.

fieldcatalog-REF_TABNAME = 'EKPO'.

fieldcatalog-REF_FIELDNAME = 'IDNLF'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

fieldcatalog-fieldname = 'LGPBE'.

fieldcatalog-seltext_m = 'ST.LOC SHELF BIN'.

fieldcatalog-col_pos = 11.

fieldcatalog-outputlen = 6.

fieldcatalog-REF_TABNAME = 'MARD'.

fieldcatalog-REF_FIELDNAME = 'LGPBE'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

 

fieldcatalog-fieldname = 'LGOBE'.

fieldcatalog-seltext_m = 'ST.LOC DESCRIPTION'.

fieldcatalog-col_pos = 12.

fieldcatalog-REF_TABNAME = 'T001L'.

fieldcatalog-REF_FIELDNAME = 'LGOBE'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

 

 

IF BLIND = ' '. " if the check box is not checked.

 

fieldcatalog-fieldname = 'MENGE'.

fieldcatalog-seltext_m = 'QTY TO RECEIVE'.

fieldcatalog-col_pos = 13.

fieldcatalog-REF_TABNAME = 'EKES'.

fieldcatalog-REF_FIELDNAME = 'MENGE1'.

*fieldcatalog-rollname = 'MENGE_D'.

<b>fieldcatalog-tabname = 'EKES'.</b>

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

fieldcatalog-fieldname = 'WEMNG'.

fieldcatalog-seltext_m = 'QTY RECEIVED'.

fieldcatalog-col_pos = 14 .

fieldcatalog-REF_TABNAME = 'EKET'.

fieldcatalog-REF_FIELDNAME = 'WEMNG'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

 

endif.

 

endform. " build_fieldcatalog


Re: BI Query - How to move Result values to a different column

$
0
0

Hi Juan,

 

Try this one If your using product under rows panel in query designer use under column panel and run the report.

 

Thanks,

KV.

Re: Best free software to capture screens with voice recording?

Re: report query

$
0
0

*For Function module ALV (report)

  DATA: it_fieldcat  TYPE slis_t_fieldcat_alv,

        wa_fieldcat   LIKE LINE OF it_fieldcat.

 

 

  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

    EXPORTING

      i_structure_name       = 'EKKO'

    CHANGING

      ct_fieldcat            = it_fieldcat

    EXCEPTIONS

      inconsistent_interface = 1

      program_error          = 2

      OTHERS                 = 3.

  IF sy-subrc <> 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  ENDIF.

 

 

 

 

*For object ALV (Screen)

  DATA: gd_fieldcat2 type LVC_T_FCAT.

 

 

  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

    EXPORTING                             

*     I_BUFFER_ACTIVE        =        

      I_STRUCTURE_NAME       = 'EKKO'  

*     I_CLIENT_NEVER_DISPLAY = 'X'

*     I_BYPASSING_BUFFER     =        

    CHANGING

      ct_fieldcat            = gd_fieldcat2

    EXCEPTIONS

      INCONSISTENT_INTERFACE = 1

      PROGRAM_ERROR          = 2

      OTHERS                 = 3.

 

 

 

 

* Building a fieldcatalog based on an internal table

* This method relies on the internal table(IT_EKKO) having been

* declared within an include(i.e. ZDEMO_ALVGRID_STRUCTURE) using

* version 4.0 method of declaration:

*                 data: begin of it_ekko occurs 0,

*                         ebeln like ekko-ebeln,

*                         ...

*                       end of it_ekko.

data: gd_fieldcat   type slis_fieldcat_alv occurs 0.

 

 

* Include to store internal table structure required for FM

*                                  'REUSE_ALV_FIELDCATALOG_MERGE'.

include: ZDEMO_ALVGRID_STRUCTURE.

 

 

-----------------------------

 

 

call function 'REUSE_ALV_FIELDCATALOG_MERGE'

       exporting

            i_program_name         = 'ZDEMO_ALVGRID'

            i_internal_tabname     = 'IT_EKKO_ALT'

            i_inclname             =  'ZDEMO_ALVGRID_STRUCTURE'

       changing

            ct_fieldcat            = gd_fieldcat

       exceptions

            inconsistent_interface = 1

            program_error          = 2

            others                 = 3.

 

 

 

 

 

 

* Another way is to build the fieldcatalog manualy by populating the

* internal table fields individually and then appending the rows.

* This method can be the most time consuming but can also allow you

* more control of the final product.

 

 

* Beware though, there are many fields that can be populated and you

* need to ensure that those fields required are populated.

* When using some of functionality available via ALV such as total.

* You may need to provide more information than if you were simply

* displaying the result

*               I.e. Field type may be required in-order for

*                    the total function to work.

 

 

data: fieldcatalog type slis_t_fieldcat_alv with header line.

 

 

  fieldcatalog-fieldname   = 'EBELN'.

  fieldcatalog-seltext_m   = 'Purchase Order'.

  fieldcatalog-col_pos     = 0.

  fieldcatalog-outputlen   = 10.

  fieldcatalog-emphasize   = 'X'.

  fieldcatalog-key         = 'X'.

*  fieldcatalog-do_sum      = 'X'.

*  fieldcatalog-no_zero     = 'X'.

  append fieldcatalog to fieldcatalog.

  clear  fieldcatalog.

 

 

  fieldcatalog-fieldname   = 'EBELP'.

  fieldcatalog-seltext_m   = 'PO Item'.

  fieldcatalog-col_pos     = 1.

  append fieldcatalog to fieldcatalog.

  clear  fieldcatalog.

 

 

  fieldcatalog-fieldname   = 'STATU'.

  fieldcatalog-seltext_m   = 'Status'.

  fieldcatalog-col_pos     = 2.

  append fieldcatalog to fieldcatalog.

  clear  fieldcatalog.

 

 

  fieldcatalog-fieldname   = 'AEDAT'.

  fieldcatalog-seltext_m   = 'Item change date'.

  fieldcatalog-col_pos     = 3.

  append fieldcatalog to fieldcatalog.

  clear  fieldcatalog.

 

 

  fieldcatalog-fieldname   = 'MATNR'.

  fieldcatalog-seltext_m   = 'Material Number'.

  fieldcatalog-col_pos     = 4.

  append fieldcatalog to fieldcatalog.

  clear  fieldcatalog.

 

 

  fieldcatalog-fieldname   = 'MENGE'.

  fieldcatalog-seltext_m   = 'PO quantity'.

  fieldcatalog-col_pos     = 5.

  append fieldcatalog to fieldcatalog.

  clear  fieldcatalog.

 

 

  fieldcatalog-fieldname   = 'MEINS'.

  fieldcatalog-seltext_m   = 'Order Unit'.

  fieldcatalog-col_pos     = 6.

  append fieldcatalog to fieldcatalog.

  clear  fieldcatalog.

 

 

  fieldcatalog-fieldname   = 'NETPR'.

  fieldcatalog-seltext_m   = 'Net Price'.

  fieldcatalog-col_pos     = 7.

  fieldcatalog-outputlen   = 15.

  fieldcatalog-datatype     = 'CURR'.

  append fieldcatalog to fieldcatalog.

  clear  fieldcatalog.

 

 

  fieldcatalog-fieldname   = 'PEINH'.

  fieldcatalog-seltext_m   = 'Price Unit'.

  fieldcatalog-col_pos     = 8.

  append fieldcatalog to fieldcatalog.

  clear  fieldcatalog.

Re: How to check if catalog exists in HANA DB

$
0
0

Hi Micha,

 

Thanks for the reply.

 

By 'catalog' I mean to say individual database.

 

The activity that I want to execute is: Suppose there is a database named "Customer" in HANA DB Studio. Now I want to take the backup of this database the way we do in MS SQL Server --> Backup --> Database.

 

Regards,

Yash

Re: Import Failed at consolidation Tab

$
0
0

Hi Govardan,

 

Looking at your error trace, I think, as i said in my earlier reply, try checking-in and importing the file again (Do this in the transport studio of the CMS in the Check-in and Development tabs).

 

This should solve your problem.

Re: Two different settings required for an inspection type (HU and Non-HU)

$
0
0

Honestly speaking, I myself don't know if my question has been answered or not as I haven't worked with HU ever and that's why I'm following this thread. Additionally, I myself don't know if I have asked a correct question.

 

Information you shared is definitely valuable as I would now refer some help files and would understand the logic behind HU functionality keeping your suggestions in mind. Would further run few scenarios in the sand box and see what do I get.

 

Thank you for sharing your views Mr Craig

 

ntn

Re: Ghosts of SDN post past


Re: Stock is showing zero?

$
0
0

Hi Abhijeet,

 

 

For your Sales organization, distribution channel and division Maintain Availability Check Rule in transaction code OVZJ

 

You can maintain either D or E to get pop-up

 

regards,

santosh

Re: variance report in a multi level BOM structure

$
0
0

Dear Chris

 

For all the levels variance analysis is I think not available in Standard reporting. For one material type you can do as Ajay Sir said.  You need to have a friendship with ABAP guy or you can try report painter.

 

Regards

 

Rajneesh Saxena

Re: Results Recording valuation icon

$
0
0

Good. Pl share once you get the solution. This would come handy

 

ntn

Re: Structural Privilege with Analytical Views

$
0
0

Hi Rahul,

 

In one of the implementation on HANA we did for a Hitech Major in US, we implemented the custom security using User table and Role table.

 

That client has his own internal user id which is used for SSO purposes. So based on that user id and with help of those 2 tables we were able to implement security using "function" and re-using the function in the Reporting "procedure" .

 

We didnt use AP to do the authorization, instead we wrote our custom Function to do the same.

 

It was implemented successfully and went golive ( already 3 months finished).

 

Regards,

Krishna Tangudu

Re: Concatenating Multiple rows of a column into 1 cell

$
0
0

Hi,

 

I have not found any function to do what you need, but if you've developed a procedure using arrays you do, watch it and tell me if you need.

 

Regards.

 

 

DROP TABLE TBL_TEST;

CREATE TABLE TBL_TEST (STATE nvarchar(100),CITY nvarchar(100));

 

 

INSERT INTO TBL_TEST values ('Arizona' ,'Phoenix');

INSERT INTO TBL_TEST values ('Arizona' ,'Mesa');

INSERT INTO TBL_TEST values ('Arizona' ,'Tempe');

INSERT INTO TBL_TEST values ('x' ,'x');

 

 

 

 

 

 

DROP PROCEDURE CONCATENATE_COLUMN;

 

 

CREATE PROCEDURE CONCATENATE_COLUMN() AS

BEGIN

    DECLARE v_ID integer;

  DECLARE v_STATE nvarchar(100);

  DECLARE v_ACUM_STATE nvarchar(100) ARRAY;

  DECLARE v_CITY nvarchar(100);

  DECLARE v_ACUM_CITY nvarchar(100) ARRAY;

  DECLARE v_LAST_STATE nvarchar(100);

  DECLARE CURSOR c_cursor1 FOR

  SELECT DENSE_RANK() OVER (ORDER BY STATE) as ID,STATE,CITY FROM TBL_TEST;

  

  v_LAST_STATE := '';

 

  FOR R AS c_cursor1 DO

     v_ID := R.ID;

     v_STATE := R.STATE;

     v_CITY := R.CITY;

    

  IF :v_LAST_STATE = '' THEN

  v_LAST_STATE := :v_STATE;

  v_ACUM_CITY[v_ID] := :v_CITY;

  v_ACUM_STATE[v_ID] := :v_STATE;

  ELSEIF :v_LAST_STATE <> :v_STATE THEN

  v_LAST_STATE := v_STATE;

  v_ACUM_CITY[v_ID] := :v_CITY;

  v_ACUM_STATE[v_ID] := :v_STATE;

  ELSE

  v_ACUM_CITY[v_ID] := :v_ACUM_CITY[:v_ID] || ',' || :v_CITY;

  END IF;

 

  END FOR;

 

  CLOSE c_cursor1;

 

  v_table = UNNEST(:v_ACUM_STATE, :v_ACUM_CITY) AS ("STATE", "CITY");

 

  SELECT * FROM :v_table;

END;

 

CALL CONCATENATE_COLUMN;

TREX search on STVN; Title of Job family is not update.

$
0
0

I want to search JF 20000017 with title.

1.jpg

 

When I search Job Family with title ‘Human Resource’. it was not returning anything. Because of JF 20000017 has
title ‘Marketing Research’ which is old title.

2.jpg

3.png

 

I checked at backend title ‘Marketing Research’ of JF 20000017 was delimited already.

Now new title of the Job Family is ‘Human Resource’.

 

How should I do something to make TREX is updated the information.

 

 

Nakisa version:

4.jpg

 

TREX version:     7.10.48.00
TREX Build:         710.48.355792

 

 

Thank you.

Best Regard,

Re: Error in Standard LSMW : Maintain the conversion factor for the alternative unit PCS

$
0
0

Hi,

 

Someone please reply.

 

Regards

MS


Re: HANA Procedure and Table Type Clarifications

$
0
0

Hi Santosh,

 

 

1. Generaly we feed table types as tabular results in a procedure.
2. Primary key not required  for table types

3. ins_msg_proc is not SAP supplied function/proc. We need to define it. Here is the example and can be modified as per your convenience:

 

 

 

CREATE TABLE SCHEMANAME.message_box (p_msg VARCHAR(200), tstamp TIMESTAMP);
CREATE PROCEDURE schemaname.ins_msg_proc (p_msg VARCHAR(200))
LANGUAGE SQLSCRIPT AS
BEGIN
  INSERT INTO message_box VALUES (:p_msg, CURRENT_TIMESTAMP);
END;

 

To view the content, use below statement after running the proc.
select * from SCHEMANAME.message_box;

 

4.If proc is defined "WITH RESULT VIEW schemaname.viewname AS" clause, you can find the results of your procedure in column views(ProcView) of the schema (schemaname).

 

ex:
CREATE PROCEDURE schemaname.Proc1(IN id INT, OUT o1 CUSTOMER)
LANGUAGE SQLSCRIPT
READS SQL DATA
WITH RESULT VIEW schemaname.ProcView AS
  BEGIN o1 = SELECT * FROM schemaname.tablename WHERE columnname = ......;
END;

 

 

 

 

5. I think table type variable values exist only during run time. Not really sure about this.

 

6.To redirect the output of call procedure, is nothing but using "WITH RESULT VIEW schemaname.viewname AS" and can find this in column view of schema.

 

7.If you want to insert data in a procedure, do not use READS SQL DATA clause. If you use this then becomes read only.

 

ex:
CREATE PROCEDURE schemaname.Proc2(IN id INT, OUT o1 CUSTOMER)
LANGUAGE SQLSCRIPT AS
BEGIN
  write your insert stateement.........
END;

 

 

Regards

Raj

Re: What is layout module version?

$
0
0

Hi Jove,

 

These variants are different that the generic article variant. What you mentioned is right, it is just the article we group together in Layout module.

 

Regards,

Amit

Re: Local and general assortments

$
0
0

Hi Jove,

 

As I mentioned in my earlier replies, whenever you create Site in IS Retail it creates a local assortment for each site. If your site is Store, the assortment category will A, for DC it will be B. Category C is used for assortments which are defined by the user. All the assortment what we create explicitly to cater our listing requirements will be automatically created with category C.

 

So Customer means the Customer defined assortment.

 

I hope this will clarify your question.

 

Regards,

Amit

Re: SAP Retail:General assortment issue

$
0
0

Hi Jove,

 

As I mentioned in my earlier replies, whenever you create Site in IS Retail it creates a local assortment for each site. If your site is Store, the assortment category will A, for DC it will be B. Category C is used for assortments which are defined by the user. All the assortment what we create explicitly to cater our listing requirements will be automatically created with category C.

 

So Customer means the Customer defined assortment.

 

I hope this will clarify your question.

 

Regards,

Amit

Re: Universe Design Practice

$
0
0

i do not have direct access to the database, but i have an ODBC connection created that has all the tables. Using a SQL query from the connection, I need to figure out the universe.

Viewing all 8798 articles
Browse latest View live




Latest Images