Quantcast
Channel: SCN : All Content - All Communities
Viewing all 8533 articles
Browse latest View live

cl_message_handler_mm->getlist not getting all the error messages

$
0
0

Hi everyone,

 

     I'm using the method getlist of cl_message_handler_mm but i found out that it is not getting all the error messages especially those custom ones (those error msg that i put).

 

     here's how i issue the error msgs.

 

     CLEAR lv_msg_dummy.

       MESSAGE e072(zz) WITH 'This is test error no. 1' INTO lv_msg_dummy.

       mmpur_message_forced sy-msgty sy-msgid sy-msgno

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

 

     Now, i am able to see the error message displayed in the screen of me21n along with other standard issued errors when you click on the red button besides per material item.but when i satisfy my condition for that error to be removed during debugging. so first, i would use the getlist method like this.

 

     CALL METHOD cl_message_handler_mm=>get_handler

            IMPORTING

              ex_handler = r_msg_handler_mm.

 

     CALL METHOD r_msg_handler_mm->getlist

            IMPORTING

              ex_events = gt_event_list

              ex_evnt   = gt_event.

 

 

     but then the table gt_event_list only contains standard issued errors and not my custom errors.

 

     the weird this is, when it comes to the loop that removes the custom error msg like below,

 

     LOOP AT gt_event_list INTO gs_event_list.

         IF gs_event_list-signature CS 'low-rating'.

           CLEAR r_event.

           r_event = gs_event_list-event_obj.

           CALL METHOD r_msg_handler_mm->remove

             EXPORTING

               im_event_obj = r_event.

         ELSE.

           CONTINUE.

         ENDIF.

 

     it only loops in all the table entries of gt_event_list which are standard msg, meaning the method remove was never triggered, but when i look at the screen of me21n, my custom error was removed.

 

     I'm affraid that if this is still the case when transported to QAS server, my conditions might fail and i have to find a solution so I might as well fix this now. Thanks for your replies in advance.


0MATL_GROUP_TEXT Standard Extract structure changed: how to revert it

$
0
0

Dear Guru's,

I noticed that our Quality and the Dev system is not in sync.

I found that the Extract sturcture for the standard Data source - 0MATL_GROUP_TEXT is different in Dev system and QA system. I am not sure when and who changed it.

In Dev. it is as  :

View/Table           BIW_T023T

ExtractStruct.       ZOXSY20025

 

 

in QA it is as below:

 

View/Table           BIW_T023T

ExtractStruct.       ROTEXTSTR1

 

 

please find attached screen shots.

I am unable to change this field as it is disabled.

I was thinking it should be under SAP control, before approaching them, i wanted to get more info from the group.

kindly advice if there is any method to change it , as i need to enable the selection in the info package.

Thanks & Regards,

Chanda

File content converstion in sap pi 7.31

$
0
0

Here i got "conversion initialization failed java lang exception:Errors in XML conversition parameters"

how can i resolve this

please help me

No such class: "sap_productsystemlandscapeproduct"

$
0
0

Dear All,

I am doing Initial and basic configuration of solman 7.1 and for this, I have required some SPs which is prerequisites and showing under System

Preparation.  

When I try to download the SPs via Maintenance Optimizer then I am getting this issue

No such class: "sap_productsystemlandscapeproduct"

 

Please guide me how can I resolve this issue?

 

 

Regards,

 

 


HTTP POST to Google API results in unwanted user id/password pop-up

$
0
0

Hello all,

 

I am attempting to do an HTTP Post from SAP using ABAP.

 

The exact same POST works fine from outside of SAP (e.g. using POSTMan).

 

In SAP, we get an unwanted Pop-Up Window which asks us for user id and password:

POPUP.jpg

 

No matter what user Id and Password I enter I get an HTTP error 401 (Unauthorized).

 

I know I can disable this pop-up using the following code:

http_client->propertytype_logon_popup = http_client->co_disabled.

 

...however, we still get an HTTP error 401 (Unauthorized) if we disable the pop-up.

 

Question:

What is this Pop-Up really asking for?

I tried entering my SAP user id and Password and that did not work.

I tried entering the Google user id and password and that did not work either.

 

In fact we are supplying all of the authentication information in the HTTP POST so I should get no Pop-Up asking for user id and password.

 

Here is my code (I have made the Google Access Key and Access Token junk data for security reasons....) :

 


PROGRAM ZISUT_GOOGLE_HTTP_POST

         LINE-SIZE 500             " Page width

         LINE-COUNT 65             " Page height

         NO STANDARD PAGE HEADING

         MESSAGE-ID ZR.

************************************************************************

* Program: ZISUT_GOOGLE_HTTP_POST                                *

* Author : Chris Twirbutt                                              *

*                                                                      *

* Type   : Online                                                      *

* Purpose: HTTP POST from SAP to Google API to insert record into      *

*          Google's Fusion tables.                                     *

************************************************************************

* Change history                                                       *

*----------------------------------------------------------------------*

*UserID    |Date      |Change request & Reason for change              *

*----------|----------|------------------------------------------------*

*TWIRBUTTC |09/10/2013|DPWK913900 - SP332- Created program             *

*          |          |                                                *

*----------|----------|------------------------------------------------*

************************************************************************

 

 

 

************************************************************************

* Objects/Classes/Interfaces, etc:

DATA: http_client TYPE REF TO if_http_client .

 

 

 

************************************************************************

* Structures:

DATA: W_HTTP_ERROR_DESCR      TYPE STRING,

       W_HTTP_ERROR_DESCR_LONG TYPE XSTRING.

DATA: W_HTTP_RETURN_CODE  TYPE I.

 

************************************************************************

* Variables:

DATA: W_URL             TYPE string,

       W_XML_RESULT_STR  TYPE string.

DATA: L_XML_RESULT_XSTR TYPE XSTRING.

 

 

************************************************************************

* Selection Screen:

SELECTION-SCREEN BEGIN OF BLOCK MAIN WITH FRAME TITLE TEXT-S01.

   PARAMETERS: P_URL LIKE W_URL OBLIGATORY lower case.

SELECTION-SCREEN END   OF BLOCK MAIN.

 

 

INITIALIZATION.

 

   CONCATENATE 'https://www.googleapis.com/fusiontables/v1/query?'                                                            " GOOGLE API URL

               'sql=INSERT%20INTO%201CqwRGEEn4L0gN66JwGvCR5yOI8miNMVijcp4XlE%20(Name,%20Age)%20VALUES%20(\''Fred\'',%2034)'   " GOOGLE API SQL INSERT STATEMENT

* Note: Content Length = 0 since we are not putting anything in the Body of the HTTP Post,

*       we are putting it all in the URL:

               '&Content-length:=0'                                                                                           " HTTP POST CONTENT LENGTH (BODY)

               '&Content-type:=application/json'                                                                              " HTTP POST CONTENT TYPE

               '&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'                                                                 " GOOGLE API ACCESS KEY

               '&access_token=ya29.XXXXXXXXXXXXXXXXXXXXXXXXXX'                                           " GOOGLE API ACCESS TOKEN

          INTO P_URL.

 

 

 

 

 

************************************************************************

* Main Program Logic/Flow:

START-OF-SELECTION .

 

 

* Create the HTTP client using the Google API URL:

   CALL METHOD cl_http_client=>create_by_url

     EXPORTING

       url                = P_URL

     IMPORTING

       client             = http_client

     EXCEPTIONS

       argument_not_found = 1

       plugin_not_active  = 2

       internal_error     = 3

       OTHERS             = 4.

 

*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Set up the HTTP Post to Google's API URL:

   CALL METHOD http_client->request->set_method

     EXPORTING

       method = 'POST'.

 

   CALL METHOD http_client->request->set_version

     EXPORTING

*     version = '1001'.

       version = if_http_request=>co_protocol_version_1_1.   " 1001

 

 

   http_client->request->set_header_field(

     name = 'Host'

     value = 'www.googleapis.com'

     ).

 

* Send the HTTP Post to the URL / Google's API:

   CALL METHOD http_client->send

     EXPORTING

       timeout                    = 15   " 15 Seconds

     EXCEPTIONS

       http_communication_failure = 1

       http_invalid_state         = 2.

 

*  We are getting an SAP POP-UP for User Id and Password. WHY ?????

* If I disable the pop-up we get an HTTP error (401 /Unauthorized).

*  http_client->propertytype_logon_popup = http_client->co_disabled.    "  POPUP for user id and pwd

 

 

*Read the Response from Google:

   CALL METHOD http_client->receive

     EXCEPTIONS

       http_communication_failure = 1

       http_invalid_state         = 2

       http_processing_failed     = 3.

 

* Get the HTTP return code from the HTTP POST:

   http_client->response->get_status( IMPORTING code   = W_HTTP_RETURN_CODE ).

   http_client->response->get_status( IMPORTING reason = W_HTTP_ERROR_DESCR ).

 

* http_client->response->GET_RAW_MESSAGE( IMPORTING data = W_HTTP_ERROR_DESCR_LONG ).

   W_HTTP_ERROR_DESCR_LONG = http_client->response->GET_RAW_MESSAGE( ).

* Write the HTTP Return Code / Description to the screen:

   WRITE:/ 'HTTP return Code/Description:'W_HTTP_RETURN_CODE no-gap, '/' no-gap, W_HTTP_ERROR_DESCR.

   skip 1.

 

* Refresh the Request after each POST:

   CALL METHOD http_client->refresh_request(

     EXCEPTIONS

       http_action_failed = 1

       others             = 2 ).

 

*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Write the data received back from the POST to the screen:

   CLEAR W_XML_RESULT_STR.

   W_XML_RESULT_STR = http_client->response->get_cdata( ).

 

 

   sy-tmaxl = strlen( W_XML_RESULT_STR ).

   FIELD-SYMBOLS: <FS>.

   ASSIGN W_XML_RESULT_STR TO <FS>.

   WRITE:/ <FS>(SY-TMAXL).

*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

 

* Check if we got back an HTTP Error:

   IF W_HTTP_RETURN_CODE EQ 200. " ok

* Close the HTTP connection:

     http_client->close( ).

   ELSE.

     MESSAGE S005(ZR) WITH 'Error: Return code = ' W_HTTP_RETURN_CODE.

   ENDIF.

 

 

END-OF-SELECTION.


BDC_INSERT FM question

$
0
0

Hello.

 

Is there any possibility that BDC_INSERT FM can execute given transaction?

If so, what values should I pass to just create batch input session?

 

I'm working in SAQP ECC 6.0 (SAP_BASI 7.0 SAP_ABA 7.0)

Regards

Tomasz Rohn

Unable to download Fiori Application Codes from BSP Server

$
0
0

Hi,

 

We are on a process of downloading Fiori Application codes to our local directory from a BSP Server.

Upon downloading the Timesheets Application code, the following warning occurred:

 

sap_fiori.jpg

Highly appreciate your help. Thanks.

Not able to update comments in Planning report

$
0
0

Hi,

 

Am new to Integrated Planning . Can any one suggest on this below issue.

 

We have a requirement to update comment field in the input enabled query(BI 7.3) in the portal through WAD.  For reference am following the How to Guide - on "Flexibly Change Characteristic values and Comments in BI Integrated Planning". We have implemented this till 4.3 section in the attached PDF.

Till here if i run the report in portal, select any row in data grid and then select value from drop down and input value in input enabled field, then when clicked on repost button, selected values are not getting updated for the selected rows, Instead selected values are getting updated for all those records for which there is atleast one Keyfigure value instead of all Zero key figures.

 

In 4.4 section in first pdf it says, we need to ADapt the ABAP Exit for changing the selection and this pdf refers to other pdf ""The technique for the ABAP exit is described in note 1101726 and in the paper ‘How To…Run Planning Functions on Changed Records in BI Integrated Planning’""

 

Since we are using BI7.3 we cannot implement this note 1101726.

 

Also In first pdf there is ABAP exit in Appendix B and in second pdf there is code in 4 Appendix. Does some one know what exactly we need to do in this 4.4 section of first pdf. How to implement this ABAP Exit. How to combine logic from both the pdfs.

 

As per my understanding i implemented code from appendix B pdf1 - updating code with my variables. And then registered this FM in SAP_RSADMIN_MAINTAIN report. Now if i run the planning report in portal even then there is no change in the result. Selected values are getting updated to all rows with KF values instead of only selected rows.

 

Can any one suggest where exactly we have to add this FM and is it enough if we use only code from pdf1.

 

 

Thanks


Development Plans

$
0
0

Hi,

 

 

 

 

When I tried to test the Development plan in TSM - SAP_SR_TMC_TMS_6 getting the below error, When I tested service HRTMC_TA_DEV_PLAN getting the same error.

 

But when I tried in MSS Talent Assessment iView i am able to see employees under Development plan tab? But I do not get the Create button to
create the Development plans. I have configured assessment forms in TM.

 

 

It would be a really a great help if some can share their experiences on Development plan iView’s, we have the below iView’s for Dev plan
do not understand how these are different ?

 

 

  1. TM- Talent Assessment- Development Plans.
  2. TM- Development Plans.

 

    

 

    500 SAP Internal Server Error

 

error: Invalid parameter combination PLVAR/OTYPE/OBJID (termination: RABAX_STATE)

 

 

 

Thanks

Kumar

Which of the two Proxy or RFC is preferred in PI 7.31?

$
0
0

Hi All,

 

We have a PI 7.31 system. I want to know if Proxies are better than RFC?

 

Which one is recommended when it comes to 7.31?

 

Thank you

Exception wrong_date; see long text [ TRCS 2LIS_02_SCL -> CUBE 0PUR_C01 ]

$
0
0

Dear All,

 

I am getting "Exception wrong_date; see long text" error while loading from 2LIS_02_SCL -> CUBE 0PUR_C01.

how to overcome this error??????

 

ScreenHunter_03 Sep. 12 19.48.jpg

Regards,

SumanT

LWP not shown in PT_BAL00 report

$
0
0

Dear friends,  For an employee, has P10 at 8.27AM and P20 at 13.07PM. As per policy as he worked for 4hrs 40 min only, his name must appear in PT_BAL00 report.  But it is not seen , For other employees it is working fine. Please suggest what might be the reason..  Regards, Niladri

SUM give Error in Configuration Step

$
0
0

Dear All

We face problem in SUm Configuration Part i send screen short

please don say re generate XML because my solman not in start du to some error and sap still not replay on this issue why may solman not start

please see screen short and give solution please

nainesh

9376998808

28.JPG

Calling SAP Custom T Code from Web application Designer / Portal

$
0
0

Hi All,

 

Am new to Integrated Planning. Can any one suggest on how to call sap custom T Code from Input enabled query in the portal.

Is there any Web application Designer WEB Item or Command to call SAP Custom T Code.

 

Requirement is some how we need to call this sap custom T Code from report in portal. When clicked on this say button or link or any, it should call that custom T Code and the screens attached to this custom t code should appear in the new window.

 

One way is to call this T Code using ABAP program and call this ABAP program through Process Chain. Using WAD Command we can call this process chain. But Please let me know if there is any better solution than this.

 

Thanks.

Query on initialization of time evaluation log

$
0
0

Hello

 

For one employee , time evaluation has been intialized from period 09.2012 .

 

I want to know what could be the reason to intialized time evaluation from past periods.

 

Below is the infotype 0007 records .

 

Start date    End date  WS rule          TM status

10.12.2012 31.12.9999 KU_YO_13      1

17.09.2012 09.12.2012 KU_YO_13      0

02.03.2008 16.09.2012 KU_YO_13      1

 

 

Earliest rec date in IT 0003 is not set for any employee. For other employees it is not going in past.

 

Please help.

 

Regards

Archana


Dynamic databases (SysID)

$
0
0

Hello Everybody,

 

Building multi-database import system and use following XSL to retrieve SystemId based on DatabaseName:

 

 

1. Take the company from the URL

<xsl:variable name="company" select="//vpf:urlpar[@id=&apos;querykey.company&apos;]/@value"></xsl:variable>

 

2. Analyse B1CompId.xml file to find the proper @sysid

<xsl:variable name="b1system" select="document(&apos;/com.sap.b1i.vplatform.directory/SysId/B1CompId.xml&apos;)//b1compidlist/compid[./@company='$company']/@sysid"></xsl:variable>

 

3. Return $b1system in my template together with Activity data

 

<B1SystemId xmlns=""><xsl:value-of select="$b1system"></xsl:value-of></B1SystemId>

 

<xsl:for-each select="$msg/*">

   <Contacts xmlns="">

 

      <row>

        <CardCode>L001</CardCode>

        <Notes>L001</Notes>

     </row>

 

    </Contacts>

</xsl:for-each>

 

4. Use following xpath in the SysId in the B1Object step

 

/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom1']/B1SystemId

 

 

It works for BUSINESS PARTNERS but  doesn't for  ACTIVITIES.  Just the Activities.

 

I am getting error:

Element 'B1SystemId' is not valid for content model: '((AdmInfo,QueryParams),Contacts)'

 

 

When I remove <B1SystemId xmlns=""> everything is OK

When the SystemId is hardcoded both scenario works ok.

Similar scenario for PurchaseInvoices works OK.

 

 

Please help.

Cezar

 

 

 

 

BTW

 

5. The payload for BusienssPartners looks like this:

<Payload Role="X" id="atom1">

     <B1SystemId xmlns="">0010000100</B1SystemId>

     <BusinessPartners xmlns="">

          <row>

               <CardCode>A001</CardCode>

               <CardName>Name</CardName>

          </row>

     </BusinessPartners>

</Payload>

 

6. The payload for Activities looks like this:

<Payload Role="X" id="atom1">

     <B1SystemId xmlns="">0010000101</B1SystemId>

     <Contacts xmlns="">

          <row>

               <CardCode>L001</CardCode>

               <Notes>notes</Notes>

          </row>

     </Contacts>

</Payload>

Downloading base version for BI4

$
0
0

Gurus,

 

We are in process of installing rich client BI4 but unable to proceed on the same.

Can you help me in identifying as well as locating the base version of BI4.0 from http://market.sap.com ?

I’ve downloaded the latest patch ENTERPRISECLNT04P_13-20007508.EXE as currently our client system is on SP4 Patch 13.

 

Any inputs  on the above would be appreciated.

 

Regards,~s

Survey on Enterprise Software "App'ification". Your participation needed.

$
0
0

Hello everyone,appification.png

 

As part of a research cooperation between the University of Bamberg and
SAP we are currently conducting an online survey on the topic App’ification –
“What does the future of software look like?”.

 

We are still looking for participants and it would be great if you take
~7 minutes of your time for completing the following questionnaire:

 

https://www.sapsurvey.com/cgi-bin/qwebcorporate.dll?idx=SVPCUX&kan=1smb

 

At the end of the survey we would appreciate it if you could forward the
link also to further potential participants.

 

Thank you for your support!

 

Best regards

Stefan

SAP Visual Business 2.1

$
0
0

 

SAP Visual Busienss 2.1 was released 9th September 2013.

 

It is shipped in the Netweaver UI Extension Add-On 1.0 SP05 for Netweaver versions from 7.00 and it is integrated in Netweaver 7.40.

 

This shipment consists of a frontend component with a separate installation and a backend part.

 

  1. The frontend component is compatible to the SAP Visual Business 2.0 frontend and can be installed to replace SAP Visual Business
    2.0 clients. 
  2. The backend in the AddOn supports now Netweaver versions from 7.00. To be compatible in existing Visual Business 2.0 systems we renewed
    the API with renaming and cleaning-up the interface.

 

Major new features of SAP Visual Business 2.1:

 

  • Scaler showing reference measures for the current map display

    ruler.png

  • Selection of multiple objects with rectangle or Lasso
  • Direct zoom by painting a rectangle on the map section to be shown
  • Navigation history
  • Keyboard support for map navigation, toolbar functions, and multiple selections
  • Major performance improvements on map tile loading and animations
  • Support for single picture maps and there combination with tile based maps
  • 32- and 64-Bit version
  • Restrict-able map zoom and move (keep map on a certain area)
  • Normalization for 3D-objects
  • Import of arbitrary 3D objects from Collada DAE files
  • Pixel and Geo-Distance based circles

 

 

Toolbar, with navigation history, selection, zoom-in buttons. It can be moved and reduced.

toolbar.png

Decimal Point is getting Rounded in Flat File Load

$
0
0

Hello,

 

I'm trying to load a flat file in .CSV format. In the system the values of the KFs are decimal and when it is loaded into PSA, the values are getting Rounded. Eg. If the Value is 34.67 it is turning into 35. Is there any settings that can be changed in the file and what could be reason for this change?

 

Thanks in Advance!

Viewing all 8533 articles
Browse latest View live


Latest Images