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

Re: Adding adhoc query to MSS reports

$
0
0

adhoc.jpgHi Siddharth,

 

I have tried one more option. I created an adhoc query. Tied a tcode to the corresponding abap program like above. Now I am facing issue transporting the launchpad. I clicked on Adhoc query as well as Personal ID->Launchpad->Transport . The system prompted me for the cutomising TR however when I transport the changes are not getting on to the destination system. I know its a common issue but do you know exactly what needs to be done to get the standard instance MSS->REP transported. Thanks in advance.


Re: Calculated column using timestamp

$
0
0

Hi Ashutosh,

Use the following to extract year from date.

EXTRACT

 

 

Syntax

 EXTRACT ({YEAR | MONTH | DAY | HOUR | MINUTE | SECOND} FROM d) 

Description

Finds and returns the value of a specified datetime field from date d.

Example

SELECT EXTRACT (YEAR FROM TO_DATE ('2010-01-04', 'YYYY-MM-DD')) "extract" FROM DUMMY; extract 2010

 

 

Regards,

Vijay

SAP Service Marketplace

$
0
0

Hi Sirs,

 

   Any problem with SAP Service Marketplace ? I can't logon to sevice.sap.com/swdc now.

 

Regards,

Ch'ng.

Re: Inspection Method with Material Specification

$
0
0

Tim,

 

I referred to his statement where it seemed to me that incomplete copy model was in question. Of course MIC should either be Complete or Reference but not incomplete copy model to assign in material specification.

 

And I have also faced the same issue once during test phase where I wasn't able to find inspection method when material spec was used. I'm exploring what could be the reason.

 

ntn

Re: Condition is not active after transporting BEx query

$
0
0

Hi Ganesh,

 

Can you goto RSRT and Regenrate  and Execute the Query,this will get correct results.

can you chek and let us know.

 

rgds

 

SVU

update the 'short text' field in Basic data2 tab in BATCH . t code (msc2n)

$
0
0

I am using Function module SAVE_TEXT to  update the 'short text' field in Basic data2 tab in BATCH . t code (msc2n)

I checked the below link.

http://scn.sap.com/thread/3145197

 

I have used the below code:

 

   REPORT  ZTESTM2.
DATA:       l_tdname  LIKE thead-tdname,
              li_tdline TYPESTANDARDTABLEOF tline,
              ls_tdline TYPE tline,
              ls_header LIKE thead.
DATA : p_kztxt  LIKE dfbatch-kztxt VALUE'Test by me'.
  CONSTANTS:  cl_tdobj LIKE thead-tdobject VALUE'CHARGE',
              cl_tdspr LIKE thead-tdspras  VALUE'E',
              cl_tdid  LIKE thead-tdid     VALUE'VERM'.

  DATA: l_matnr type mchb-matnr,
        l_werks type mchb-werks,
        l_charg type mchb-charg.

  selectsingle matnr werks charg from mchb into (l_matnr,l_werks,l_charg)
  where matnr = '00004'.

IF SY-SUBRC EQ0.
CONCATENATE l_matnr l_werks l_charg INTO l_tdname.
ENDIF.
*l_tdname = '00004                 0AG19459'.

  ls_header-tdobject  = cl_tdobj.
  ls_header-tdname    = l_tdname.
  ls_header-mandt     = sy-mandt.
  ls_header-tdid      = cl_tdid.
  ls_header-tdspras   = cl_tdspr.

*--- Text Lines
  REFRESH li_tdline.
  ls_tdline-TDFORMAT = '*'.
  ls_tdline-tdline = p_kztxt.
  APPEND ls_tdline TO li_tdline.

*=========================================*
* Save Text
*=========================================*
  CALLFUNCTION'SAVE_TEXT'
       EXPORTING
            header          = ls_header
            insert          = ''
            savemode_direct = ''
       TABLES
            lines           = li_tdline
       EXCEPTIONS
            id              = 1
            language        = 2
            name            = 3
            object          = 4
            OTHERS          = 5.

  IF sy-subrc EQ0.
  ENDIF.

 

But its not updating the Short text. even though FM 'SAVE_TEXT' is returing sy-subrc = 0.

Any idea what may be wrong?

 

Re: SAPUI5 App Packaging with Phonegap in Android Device in Eclipse Juno

$
0
0

Hi,

 

Increase the loadUrlTimeoutValue from 60000 to 100000 or some other value until you get the response without getting any error.

 

Otherwise Try like this.

 

  1. Rename your index.html to main.html
  2. Create a new(dummy) 'index.html' that only have to redirect to the 'main.html'

 

Content of new 'index.html'

 

<!doctype html>
<html>
<head>
<title>tittle</title>
<script>
window.location='./main.html';
</script>
<body>
</body>
</html>

 

Thanks&Regards

Sridevi

I want to use field No. of Individual capacity in Resource Master

$
0
0

Hi Expert,

 

 

I want to use field No. of Individual capacity in Resource Master to set in my formula(OP21).

 

but i can not find that field in Parameters(OP17).  How i can create parameter to use.

 

 

 

Formula

( Fix time / No. of Individual Cap. ) + ( Variable time x operation quantity / base quantity )

 

 

 

Thank you,

 

Thanapong


Re: in ole excel how to fill multiple rows

$
0
0

what do you mean by not ole.. that program is made with ole methods which can able to create documents on different ole documents.

 

 

For your better understanding , check the below program. In this program there are 2 types of excel download using GUI and OLE. select ole and execute. In your case , you have to pass the internal table

with values and pass it as shown below .

 

 

INCLUDE ole2incl. "for OLE export data to excel

*&———————————————————————*

*&  DATA DECLARATIONS

*&———————————————————————*

DATA: "internal table and workarea

       i_mara      TYPE STANDARD TABLE OF mara,

       x_mara      TYPE mara,

       "variables

       v_file      TYPE string,

       v_filename  TYPE string,

       v_path      TYPE string,

       v_fullpath  TYPE string,

       v_row       TYPE i,

       "excel objects

       o_excel     TYPE ole2_object,        " excel object

       o_mapl      TYPE ole2_object,        " list of workbooks

       o_map       TYPE ole2_object,        " workbook

       o_zl        TYPE ole2_object.        " cell

*&———————————————————————*

*&  START-OF-SELECTION.

*&———————————————————————*

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.

   PARAMETERS: p_file TYPE rlgrap-filename.

   ULINE.

   PARAMETERS: rb_guidl RADIOBUTTON GROUP g1,

               rb_oledl RADIOBUTTON GROUP g1.

SELECTION-SCREEN END OF BLOCK b1.

*&———————————————————————*

*&  AT SELECTION-SCREEN

*&———————————————————————*

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

   "call the dialog for directory

   CALL METHOD cl_gui_frontend_services=>file_save_dialog

     EXPORTING

       default_extension = 'xls'

       default_file_name = 'Exported_File'

       initial_directory = 'c:\temp\'

     CHANGING

       filename          = v_filename

       path              = v_path

       fullpath          = v_fullpath.

   MOVE v_fullpath TO p_file.

*&———————————————————————*

*&  START-OF-SELECTION.

*&———————————————————————*

START-OF-SELECTION.

   PERFORM f_get_data.

*&———————————————————————*

*&  END-OF-SELECTION.

*&———————————————————————*

END-OF-SELECTION.

   PERFORM f_export_data.

*&———————————————————————*

*&  FORM f_get_data.

*&———————————————————————*

*&  Retrieve data from table

*&———————————————————————*

FORM f_get_data.

   REFRESH: i_mara.

   SELECT *

     FROM mara

     INTO TABLE i_mara

     UP TO 20 ROWS.

   IF sy-subrc EQ 0.

   ENDIF.

ENDFORM.                    " f_get_data

*&———————————————————————*

*&  FORM f_export_data.

*&———————————————————————*

*&  Export data depending on what was selected in the screen

*&———————————————————————*

FORM f_export_data.

   IF rb_guidl IS NOT INITIAL.

     PERFORM f_export_gui_download.

   ELSEIF rb_oledl IS NOT INITIAL.

     PERFORM f_export_ole_download.

   ENDIF.

ENDFORM.                    " f_export_data

*&———————————————————————*

*&  FORM f_export_gui_download.

*&———————————————————————*

*&  Export data using function module GUI_DOWNLOAD

*&———————————————————————*

FORM f_export_gui_download.

   CALL FUNCTION 'GUI_DOWNLOAD'

     EXPORTING

       filename                        = v_fullpath

     TABLES

       data_tab                        = i_mara

     EXCEPTIONS

       FILE_WRITE_ERROR                = 1

       NO_BATCH                        = 2

       GUI_REFUSE_FILETRANSFER         = 3

       INVALID_TYPE                    = 4

       NO_AUTHORITY                    = 5

       UNKNOWN_ERROR                   = 6

       HEADER_NOT_ALLOWED              = 7

       SEPARATOR_NOT_ALLOWED           = 8

       FILESIZE_NOT_ALLOWED            = 9

       HEADER_TOO_LONG                 = 10

       DP_ERROR_CREATE                 = 11

       DP_ERROR_SEND                   = 12

       DP_ERROR_WRITE                  = 13

       UNKNOWN_DP_ERROR                = 14

       ACCESS_DENIED                   = 15

       DP_OUT_OF_MEMORY                = 16

       DISK_FULL                       = 17

       DP_TIMEOUT                      = 18

       FILE_NOT_FOUND                  = 19

       DATAPROVIDER_EXCEPTION          = 20

       CONTROL_FLUSH_ERROR             = 21

       OTHERS                          = 22.

   IF sy-subrc <> 0.

* Implement suitable error handling here

   ELSE.

     WRITE: 'Export data to excel using GUI_DOWNLOAD successful.'.

   ENDIF.

ENDFORM.                    " f_export_gui_download

*&———————————————————————*

*&  FORM f_export_ole_download.

*&———————————————————————*

*&  Export data using OLE EXCEL

*&———————————————————————*

FORM f_export_ole_download.

   ""create excel document

   PERFORM f_notification USING 'Creating excel document…'.

   CREATE OBJECT o_excel 'EXCEL.APPLICATION'.

   PERFORM f_check_ole_err.

 

   ""set visibility to background

   SET PROPERTY OF o_excel 'Visible' = 0.

 

   ""get list of workbooks, initially empty

   CALL METHOD OF o_excel 'Workbooks' = o_mapl.

   PERFORM f_check_ole_err.

 

   "add a new workbook

   call method of o_mapl 'Add' = o_map.

   PERFORM f_check_ole_err.

 

   "{fill data to header of the excel file

   CLEAR: v_row.

   PERFORM f_fill_header.

 

   "download data to excel

   PERFORM f_notification USING 'Downloading data to excel…'.

   PERFORM f_download_full.

 

   "save the excel file

   CALL METHOD OF o_map 'SAVEAS' EXPORTING #1 = p_file.

   PERFORM f_check_ole_err.

   CALL METHOD OF o_map 'CLOSE'.

   PERFORM f_check_ole_err.

 

   "quit excel application

   CALL METHOD OF o_excel 'QUIT'.

   PERFORM f_check_ole_err.

 

   "successful message

   WRITE: 'Export data to excel using OLE successful.'.

 

   "free the objects

   FREE OBJECT: o_excel,

                o_mapl,

                o_map,

                o_zl.

ENDFORM.                    " f_export_ole_download

*———————————————————————-*

* FORM f_notification.

* –> inform user on what is going on using SAPGUI_PROGRESS_INDICATOR

*———————————————————————-*

FORM f_notification USING pi_message TYPE string.

   CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

     EXPORTING

      text = pi_message.

ENDFORM.                   " f_notification

*———————————————————————-*

* FORM f_check_ole_err.

* –> check if OLE processing if there is an error occured

*———————————————————————-*

form f_check_ole_err.

   if sy-subrc NE 0.

     MESSAGE 'OLE-Automation Error.' TYPE 'E' DISPLAY LIKE 'S'.

     STOP.

   endif.

endform.                    " f_check_ole_err

*———————————————————————-*

* FORM f_fill_header.

* –> set value to header for the excel file

*———————————————————————-*

FORM f_fill_header.

   v_row = v_row + 1.

   PERFORM f_fill_cell USING v_row 1 'Material'.

   PERFORM f_fill_cell USING v_row 2 'Created On'.

   PERFORM f_fill_cell USING v_row 3 'Created by'.

   PERFORM f_fill_cell USING v_row 4 'Last Change'.

   PERFORM f_fill_cell USING v_row 5 'Changed by'.

ENDFORM.                    " f_fill_header

*———————————————————————-*

* FORM f_fill_cell.

* –> fill data to excell cell

*———————————————————————-*

form f_fill_cell USING pi_row TYPE i

                        pi_col TYPE i

                        pi_val TYPE ANY.

   CALL METHOD OF o_excel 'Cells' = o_zl

     EXPORTING

       #1 = pi_row

       #2 = pi_col.

   SET PROPERTY OF o_zl 'Value' = pi_val.

endform.                    " f_fill_cell

*———————————————————————-*

* FORM f_download_full.

* –> Fill excel cell with data from internal table

*———————————————————————-*

FORM f_download_full.

   LOOP AT i_mara INTO x_mara.

     v_row = v_row + 1.

     PERFORM f_fill_cell USING v_row 1 x_mara-matnr.

     PERFORM f_fill_cell USING v_row 2 x_mara-ersda.

     PERFORM f_fill_cell USING v_row 3 x_mara-ernam.

     PERFORM f_fill_cell USING v_row 4 x_mara-laeda.

     PERFORM f_fill_cell USING v_row 5 x_mara-aenam.

   ENDLOOP.

ENDFORM.

Re: problem with assignment block created with RAT

$
0
0

yes. it is being stored in DB. you can see it via table maintenance

HDBSQL Warning While Logging into the HANA Database

$
0
0


Hi,

 

When I am logging into the HANA DB through hdbsql, I encounter the following error.

 

Warning: * 0:     SQLSTATE:     0000

 

Please advise on how  to resolve this error.

 

The login credentials are correct.

The system is logging into the Database, but is throwing the above warning before that.

 

Thanks & regards,

Turbosu.

Re: Return to vendor

$
0
0

Hi

There are two ways of return delivery.

 

Return Delivery through Transfer posting is only possible for Blocked & Unrestricted stock type.

 

Secondly, Return delivery in UD screen i.e. you can directly post the stock in "Return Delivery" field from QI stock. But here problem is, excise wont get reversed.

So normal practice is to post the stock first to "blocked stock" while doing UD. Then through transfer posting, return delivery can be done manually.

 

Thanks

Re: Export from BEX Query

$
0
0

If this is a 1 time extract, then why don't you do a list cube against the data target or display the contents of the DSO and then save that data down as a uncoverted file?  This is another option.

Re: Internal Order Not created automatically

$
0
0

Hi Naresh,

 

I am doing at item level and let me know at what settings need for your reference.

 

Chandu

Re: problem with assignment block created with RAT

$
0
0

hi RIshi,

 

i created the assignment block in the overview page and i have mapped incident ID to a number in my DB table. there is one more primary key apart from mandt and it is not the number i have mapped to incident ID. earlier it was showing the data correctly. after that, we created another client for our project. i didnt check it at that time. but i checked it a few days back and it wasnt showing the data anymore. i hope you understand my problem now.


Re: No portal roles are assigned for this user.

$
0
0

Hi Victor,

 

How you come to the error in spnego? Was it the answer to your ticket from SAP?

 

If you have the message "no role assigned for this user", I would first check whether the user have at least one role assigned? Did you verfify the step c) from my last reply?

 

Best regards,

Artem

Re: Is posting data using SAP BO possible?

Re: BW on Hana Modeling

$
0
0

Thanks for your replies.

 

Would update but need to have some basic guidleines for the same as we dont have any scenario as of now.

 

Thanks

K M

Re: Alternative GL account not Changeable

$
0
0

Hi Joshjo,

 

As mentioned by other group members and referred in forum, you should perform a one time activity of assigning proper Alternate G/L accounts in G/L master data by removing Country CoA at OBY6.

After updating the g/l master data with proper alt g/l account, reassign Country CoA, this will now take care for all future g/l accounts master data.

 

regards,

Krishna

Re: Client 800 is not available in this system

$
0
0


Thanks Hynek resolved the problem..

Viewing all 8676 articles
Browse latest View live




Latest Images