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

Re: Write New Entry in Windows Registry

0
0

Hello Manish,

 

thanks for your reply. I tried it with different user accounts with different rights but the result is the same.

 

Here is my solution to solve the problem:

 

"-Begin-----------------------------------------------------------------
  Report ZTEST.

    "-Includes----------------------------------------------------------
      Include OLE2INCL.

    "-Variables---------------------------------------------------------
      Data rc Type i Value -1.

">Stop<
Break-Point.

    PerForm CreateKey1 Using 'Software' '' '' Changing rc.
    PerForm CreateKey1 Using 'Software' 'Test' 'Test' Changing rc.

    PerForm CreateKey2 Using 'Software' '' '' Changing rc.
    PerForm CreateKey2 Using 'Software' 'Test' 'Test' Changing rc.

"-End-------------------------------------------------------------------

"-Subroutines begin-----------------------------------------------------

  "-Function CreateKey1-------------------------------------------------
    Form CreateKey1 Using SubKey Type String ValueName Type String
      Value Type String Changing rc Type i.

      "-Variables-------------------------------------------------------
        Data ret Type i Value 0.
        Data rValue Type String Value ''.

      Call Method cl_gui_frontend_services=>registry_set_value
        Exporting
          root = cl_gui_frontend_services=>hkey_current_user
          key = SubKey
          value_name = ValueName
          value = Value
        Importing
          rc = ret
        Exceptions
          registry_error = 1
          cntl_error = 2
          error_no_gui = 3
          not_supported_by_gui = 4
          Others = 5.

      Call Method cl_gui_cfw=>flush.

      Call Method cl_gui_frontend_services=>registry_get_value
        Exporting
          root = cl_gui_frontend_services=>hkey_current_user
          key = SubKey
          value = Value
        Importing
          reg_value = rValue
        Exceptions
          get_regvalue_failed = 1
          cntl_error = 2
          error_no_gui = 3
          not_supported_by_gui = 4
          Others = 5.

      Call Method cl_gui_cfw=>flush.

      If rValue = Value.
        rc = 0.
      Else.
        rc = 1.
      EndIf.

    EndForm.

  "-Class BASIC---------------------------------------------------------
    Class cBASIC Definition.
      Public Section.
        Methods Right Importing Str Type String Length Type i
          Exporting Result Type String.
    EndClass.

    Class cBASIC Implementation.

      "-Method Right----------------------------------------------------
        Method Right.

          "-Variables---------------------------------------------------
            Data pos Type i Value 0.

          pos = strlen( Str ) - Length.
          Move Str+pos(Length) To Result.

        EndMethod.

    EndClass.

  "-Function CreateKey2-------------------------------------------------
    Form CreateKey2 Using SubKey Type String ValueName Type String
      Value Type Any Changing rc Type i.

      "-Variables-------------------------------------------------------
        Data BASIC Type Ref To cBASIC.
        Data WShell Type OLE2_OBJECT.
        Data Key Type String Value ''.
        Data rValue Type String Value ''.
        Data strTmp Type String Value ''.

      Create Object WShell 'WScript.Shell'.
      If sy-subrc = 0 And WShell-Handle <> 0 And WShell-Type = 'OLE2'.

        Create Object BASIC.
        Call Method BASIC->Right Exporting Str = SubKey Length = 1
          Importing Result = strTmp.
        If strTmp <> '.
          Concatenate 'HKCU SubKey ' ValueName Into Key.
        Else.
          Concatenate 'HKCU SubKey ValueName Into Key.
        EndIf.

        Call Method Of WShell 'RegWrite' Exporting #1 = Key #2 = Value.
        Call Function 'AC_SYSTEM_FLUSH' Exceptions Others = 1.

        Call Method Of WShell 'RegRead' = rValue Exporting #1 = Key.
        Call Function 'AC_SYSTEM_FLUSH' Exceptions Others = 1.

        If rValue = Value.
          rc = 0.
        Else.
          rc = 1.
        EndIf.

        Free Object WShell.

      EndIf.

    EndForm.

"-Subroutines end-------------------------------------------------------

 

I use two different ways. The first is with the standard methods - from the class with the ProgID Sapgui.InfoCtrl.1 on SAP GUI for Windows. And the second is via Windows Scripting Host and the methods RegWrite resp. RegRead. Both work as expected.

 

Cheers

Stefan


Re: Period wise closing balance in both MM side as well as FI side

0
0

Hi SKA,

 

S_P99_41000062 transaction will work ,if material ledger activate in your system. You can use MB5B report where you can get current period and previous period material stock values vs FS10N material GL account values. It will work for only current period ,previous period and previous year only. MB5B is enough for reconcile the FI and MM balances. Or else you can use MC.9 to get inventory valuation & for FI purpose S_ALR_87012277 - G/L Account Balances use this one.

 

Regards

Mani

Re: PrznT: no values getting displayed in IT008

0
0

Hi

Check with "B" & also check Indirect eval.module is INVAL in table V_T511,

even no result pl provide screen shots for better understandings.

Re: can we transport the objects from Prod-->Qua-->Dev?

0
0

Hi Ambrish,

 

thanks for your reply..

 

i have to transport 31 interfaces..

 

 

Regards

Bhargava krishna

Re: Cancel depreciation

0
0

Hi,

 

For this you can either maintain the depreciation key as '0000' in all the wrong assets or you can also post an unplanned depreciation to an extent of amount of which depreciation is wrongly posted using ABAA T-Code.

 

Regards,

Malhar.

Re: Rebate

0
0

SAURAV,

 

Are you two queries independent of each other?

(rebate and no link with group condition types?)

 

The reason for asking this is that in rebate condition types (BO01 etc.) there is no Group condition functionlities (as present in K029 etc.).

Thus probably you can not use Group functionality for rebate condition types.

 

For any discount that your company does not want to give immediately, that has to be taken in rebate. So in your case too, you might use rebate.

 

Where do I assign the condition types BO01 and BO02 in the Pricing procedure for factory sales(EXCISABLE).

Important is the "base value" on which rebate is calculated.

In the pricing procedure, field From specifies what shall be the base value.

This "base value" is prices + discounts i.e. value of goods (it does not include freight, tax etc.)

Thus your taxes should come after rebate condition types. Note that the values of the condition types coming after rebate condition types wont be affect by these cond types as rebate cond types are statistical in the billing document.

Re: Throwing Generic Custom Conditional Exceptions in PI 7.3 Single Stack.

0
0

Hi Rahul,

 

Within your mapping, you can add UDF's like,

 

if(XYZ==some particular value)

 

throw new RuntimeException("Invalid value of XYZ"+XYZ);

 

else return(XYZ);

Re: Import of Material into hierarchy ZHIERARCHY

0
0

Hi Vaibhav,

 

I am trying to maintain entry like above you mentioned, but i am getting some error for sales and Product  i.e

Hierarchy  R3PRODHIER  Does not Exist..

Hierarchy  R3PRODSTYP Does not exist.

 

i maintained below format

 

Application      Hierarchy ID

 

Sales               R3PRODHIER

Purchasing      R3AMTCLASS

Product           R3PRODSTYP

Please find the attached screen prints.  Where should we maintain Hierarchies id ( what is table name ) ?

Kindly Help me on this.

 

Regards,

Sunil


Re: file to idoc scenario

0
0

Hi,

 

For this, go to NWA->Configuration-> Infrastructure->Application Resource->Java IDoc Adapter ->Properties. There you will see the parameter AutoNumberfromDB. This can have two values, either true or false. You may need to change this in order to avoid the error "
can't get lock to generate next idoc outbound message number".

Re: Could anyone can let me know how many points then don't need moderator reviewed?

0
0

We cannot officially divulge the mechanics in place to move you out of the moderation group. Please see this blog for an overview of the system in place: Pre-moderation on SCN

Re: discussions moderated, never appear on forum

Re: my questions stuck for moderator review for 1 day now

0
0

This query has been asked and answered multiple times in this space (forum).  See Pre-moderation on SCN for more information.

 

Thanks for you patience and understanding.

Re: Netbase credential

0
0

Hi - This sounds more like a query for Netbase than SAP. Perhaps you can provide more details about what from SAP you want to monitor/connect?

Edit Overview

0
0

Hi Jason,

 

I have space editor rights, but was wondering... how do I actually edit the "overview" of the page? I do not know where to find the options to edit the page itself. I have taken over the role after the previous person has set up the space.

Re: Passing parameters from Dashboards to webi

0
0

Hi Malik,

 

My steps and url is right as you suggested, I also ensured that prompt text is also same in url. But dont know why report is prompting for parameter whereas it is supposed to consume it from url I pass.

 

I used concatenate function in Excel to concatenate cell reference to url still same problem

 

=CONCATENATE("http://server:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AX0kppH7znVNkim.VDHKND8&IsBucket=",G2)

 

Even if I dont use concatenate function same problem persists.


Re: Rent to Own invoicing

0
0

Hi,

Presume you are using CRM stand alone? What TX are you using and how is items configured in SPRO --> Customer Relationship Management --> Billing --> Define Billing Relevance of Item Categories

Kind regards.

Re: second web service doesn't work if I execute the first web service.

0
0

Dear Team,

 

Any suggestions?

 

Regards,

Tushar.

Re: Upgrading support package ECC 6.0

Re: Order closed not able to post GRN

0
0

Hi Priti

Make sure with transaction /nSU53 that you are not having any authorization issues. Otherwise, you must be able to reset the business completion status. And in order to reverse the business completion, you do not need to reverse the settled costs.

Re: Success screen and error screen both are blank on emulator.

0
0

Hi Jitendra,

All these 3 input fields are made in screen not client initiated from the screen  how to achieve data from the screen.

Settings.png

I am using default cache. Can you please specify what is On demand ?

 

Thank's

Saurabh

Viewing all 8676 articles
Browse latest View live




Latest Images