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

Batch data

$
0
0

Hello experts,


i am creating multiprovider using Copa cubes ,sales open order cube ,sales deleveries cube.in this cubes material,ship to,customer,customer hierarchy ,product ,sales organization are characteristics using.

Now business want Batch code to be included from MCHA-CHARG.i have tracked CHARG field is coming in 2LIS_11_VAITM.

how do I know this field is coming from MCHA table.

please advice how can I add this field into multiprovider???



Re: Don't find Togaf.zip file in PowerDesigner

$
0
0

Hi Sandra,

 

Over a year ago, here was something posted on the product site. It was an unfinished framework and more focused on describing the ADM - not very useful for modelling current or future states. It was only there for a while and removed at some point.

 

I do have a copy I can share with you (I think I have it saved somewhere). I will try to locate it and send offline.

 

Regards

 

Bruce

Re: Library Synchronisation problem

$
0
0

Hi Joeren,

 

I don't think you have done anything wrong. We have had the same issues, but intermittently and I am having a hard time nailing down the exact use case to consistently reproduce the bug. We have also had cases of the flip side happening - on repository connect, the synchronization dialog tells us there are local changes yet when we try to check in, the check in gets cancelled because the repository and library are the same. It is happening right now with an extension file that I am sharing via the library.

 

Anyway ..... I have come to the conclusion it is a bug and not something you are doing wrong.

 

Regards

 

Bruce

Re: BI Content Installation issues due to compounding

$
0
0

Shyam, can you tell me the name of cube?

 

Also, I hope you are trying 'install only necessary object' and collection mode 'manual'.

Re: Cost center not checked during the inbound idoc FIDCCP2

$
0
0

Try OSS note 114814.

 

Regards

 

 

Waza

Re: How to make SAP Script/Macro run in background like xl macros

$
0
0

Hello.

 

In my knowledge there is no Option from SAP GUI Scripting.

 

When you run this from VBA you can use USER32-API function

 

Public Declare Function LockWindowUpdate Lib "user32" _  (ByVal hwndLock As Long) As Long

Call function via public Sub:

 

Public Sub DisableScreenUpdating(xhWnd&)  If xhWnd <> 0 Then LockWindowUpdate xhWnd
End Sub
Public Sub EnableScreenUpdating()  LockWindowUpdate 0&
End Sub

And call this whenever you have a new handle during your script:

 

        Session.FindById("wnd[0]/usr/btn%_STAE1_%_APP_%-VALU_PUSH").Press        DisableScreenUpdating Session.FindById("wnd[1]").Handle        Session.FindById("wnd[1]/usr/tabsTAB_STRIP/tabpSIVA/ssubSCREEN_HEADER:SAPLALDB:3010/tblSAPLALDBSINGLE/ctxtRSCSEL_255-SLOW_I[1,0]").Text = "DLFL"        Session.FindById("wnd[1]/usr/tabsTAB_STRIP/tabpSIVA/ssubSCREEN_HEADER:SAPLALDB:3010/tblSAPLALDBSINGLE/ctxtRSCSEL_255-SLOW_I[1,1]").Text = "INAC"        Session.FindById("wnd[1]/tbar[0]/btn[8]").Press        DisableScreenUpdating Session.FindById("wnd[0]").Handle        Session.FindById("wnd[0]/usr/btn%_STRNO_%_APP_%-VALU_PUSH").Press        DisableScreenUpdating Session.FindById("wnd[1]").Handle        Session.FindById("wnd[1]/tbar[0]/btn[24]").Press        Session.FindById("wnd[1]/tbar[0]/btn[8]").Press

 

When your script is completed call

 

EnableScreenUpdating

Of course People can get nervous at it seems like nothing happen. May they kill this session as they think it´s crashed.

 

Hope this help.

 

Br, Holger

Re: Help!!! SAP report extraction through pdf(Print Option) using Macro

$
0
0

Hi Holger,

 

I have used this code which is similar to yours, however it runs perfect with file names when I do F8, but when I just give F5 and run the code, it just clicks on save automatically with the default file name.

Is there anything wrong in the code.

 

Public Sub pdfsave()

 

 

    On Error GoTo Whoa

   

    Dim timeout As Date

   

    SP = Worksheets("Input").Range("N1").Value

    Ret = FindWindow(vbNullString, "Save PDF File As")

   

            timeout = Now + TimeValue("00:00:50")

    Do

        Ret = FindWindow(vbNullString, "Save PDF File As")

'        hwnd = FindWindow("#32770", "File Download")

        DoEvents

        Sleep 200

    Loop Until Ret Or Now > timeout

   

    SendKeys ("%{tab}")

   

    If Ret <> 0 Then

        'MsgBox "Main Window Found"

 

        '~~> Get the handle of the Button's "Window"

        ChildRet = FindWindowEx(Ret, ByVal 0&, "Button", vbNullString)

 

        If ChildRet = 0 Then

            MsgBox "Child Window Not Found"

            Exit Sub

        End If

 

        '~~> Get the caption of the child window

        strBuff = String(GetWindowTextLength(ChildRet) + 1, Chr$(0))

        GetWindowText ChildRet, strBuff, Len(strBuff)

        ButCap = strBuff

 

        '~~> Loop through all child windows

        Do While ChildRet <> 0

            '~~> Check if the caption has the word "Save"

            If InStr(1, ButCap, "Save") Then

                '~~> If this is the button we are looking for then exit

                OpenRet = ChildRet

                Exit Do

            End If

 

 

 

            '~~> Get the handle of the next child window

            ChildRet = FindWindowEx(Ret, ChildRet, "Button", vbNullString)

            '~~> Get the caption of the child window

            strBuff = String(GetWindowTextLength(ChildRet) + 1, Chr$(0))

            GetWindowText ChildRet, strBuff, Len(strBuff)

            ButCap = strBuff

        Loop

 

        '~~> Check if we found it or not

        If OpenRet = 0 Then

            MsgBox "The Handle of Save Button was not found"

            Exit Sub

        End If

 

        '~~> Retrieve the dimensions of the bounding rectangle of the

        '~~> specified window. The dimensions are given in screen

        '~~> coordinates that are relative to the upper-left corner of the screen.

        GetWindowRect OpenRet, pos

 

        '~~> Move the cursor to the specified screen coordinates.

        SetCursorPos (pos.Left - 10), (pos.Top - 10)

        '~~> Suspends the execution of the current thread for a specified interval.

        '~~> This give ample amount time for the API to position the cursor

        Sleep 200

        SetCursorPos pos.Left, pos.Top

        Sleep 200

        SetCursorPos (pos.Left + pos.Right) / 2, (pos.Top + pos.Bottom) / 2

 

        '~~> Set the size, position, and Z order of "File Download" Window

        SetWindowPos Ret, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE

        Sleep 200

 

        '~~> Simulate mouse motion and click the button

        '~~> Simulate LEFT CLICK

        mouse_event MOUSEEVENTF_LEFTDOWN, (pos.Left + pos.Right) / 2, (pos.Top + pos.Bottom) / 2, 0, 0

        Sleep 700

        '~~> Simulate Release of LEFT CLICK

        mouse_event MOUSEEVENTF_LEFTUP, (pos.Left + pos.Right) / 2, (pos.Top + pos.Bottom) / 2, 0, 0

 

        Wait 5

 

        ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

        ' START OF SAVEAS ROUTINE '

        ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

        Ret = FindWindow(vbNullString, "Save PDF File As")

            

'             timeout = Now + TimeValue("00:00:50")

'    Do

'        Ret = FindWindow(vbNullString, "Save PDF File As")

''        hwnd = FindWindow("#32770", "File Download")

'        DoEvents

'        Sleep 200

'    Loop Until Ret Or Now > timeout

'

 

        If Ret = 0 Then

            MsgBox "Save As Window Not Found"

            Exit Sub

        End If

 

        '~~> UNCOMMENT this if using IE6 and COMMENT the code for "DUIViewWndClassName"

        '~~> "DirectUIHWND" and "FloatNotifySink"

 

        ' '~~> Get the handle of the Main ComboBox

        ' ChildRet = FindWindowEx(Ret, ByVal 0&, "ComboBoxEx32", "")

        '

        ' If ChildRet = 0 Then

        ' MsgBox "ComboBoxEx32 Window Not Found"

        ' Exit Sub

        ' End If

 

        ChildRet = FindWindowEx(Ret, ByVal 0&, "DUIViewWndClassName", "")

        If ChildRet = 0 Then

            MsgBox "DUIViewWndClassName Not Found"

            Exit Sub

        End If

 

        ChildRet = FindWindowEx(ChildRet, ByVal 0&, "DirectUIHWND", "")

        If ChildRet = 0 Then

            MsgBox "DirectUIHWND Not Found"

            Exit Sub

        End If

 

        ChildRet = FindWindowEx(ChildRet, ByVal 0&, "FloatNotifySink", "")

        If ChildRet = 0 Then

            MsgBox "FloatNotifySink Not Found"

            Exit Sub

        End If

 

        '~~> Get the handle of the Main ComboBox

        ChildRet = FindWindowEx(ChildRet, ByVal 0&, "ComboBox", "")

 

        If ChildRet = 0 Then

            MsgBox "ComboBox Window Not Found"

            Exit Sub

        End If

 

        '~~> Get the handle of the Edit

        ChildRet = FindWindowEx(ChildRet, ByVal 0&, "Edit", "")

 

        If ChildRet = 0 Then

            MsgBox "Edit Window Not Found"

            Exit Sub

        End If

 

        '~~> COMMENT the below 3 lines if you do not want to specify a filename

        Wait 5

        SendMess SP, ChildRet

        Wait 5

 

        '~~> Get the handle of the Save Button in the Save As Dialog Box

        ChildRet = FindWindowEx(Ret, ByVal 0&, "Button", vbNullString)

 

        '~~> Check if we found it or not

        If ChildRet = 0 Then

            MsgBox "Save Button in Save As Window Not Found"

            Exit Sub

        End If

 

        '~~> Get the caption of the child window

        strBuff = String(GetWindowTextLength(ChildRet) + 1, Chr$(0))

        GetWindowText ChildRet, strBuff, Len(strBuff)

        ButCap = strBuff

 

        '~~> Loop through all child windows

        Do While ChildRet <> 0

            '~~> Check if the caption has the word "Save"

            If InStr(1, ButCap, "Save") Then

                '~~> If this is the button we are looking for then exit

                OpenRet = ChildRet

                Exit Do

            End If

 

            '~~> Get the handle of the next child window

            ChildRet = FindWindowEx(Ret, ChildRet, "Button", vbNullString)

            '~~> Get the caption of the child window

            strBuff = String(GetWindowTextLength(ChildRet) + 1, Chr$(0))

            GetWindowText ChildRet, strBuff, Len(strBuff)

            ButCap = strBuff

        Loop

 

        '~~> Check if we found it or not

        If OpenRet = 0 Then

            MsgBox "The Handle of Save Button in Save As Window was not found"

            Exit Sub

        End If

 

        '~~> Save the file

        SendMessage OpenRet, BM_CLICK, 0, ByVal 0&

 

        Wait 5

    Else

        MsgBox "File Download Window Not found"

    End If

    Exit Sub

Whoa:

    MsgBox Err.Description

End Sub

Re: No control data maintained for checking group 04 and checking rule 03?

$
0
0

Looks like  in your material master is  availability checking group 04  maintained.

But this is not present in OVZ9


Re: Retrieving Variables and Values using EPM Functions

$
0
0

Hi Ariel,

 

To my mind the mentioned functions are not applicable for BPC.

 

B.R. Vadim

Re: Help!!! SAP report extraction through pdf(Print Option) using Macro

$
0
0

Is this running in same instance which control SAP session?

BRSPACE Log being created under incorrect location

$
0
0

I have written a shell script to re-org couple of tables. following is the script:

 

#!/usr/bin/ksh

#

# BW Tables re-org and index compression

#

ORACLE_SID=TST; export ORACLE_SID

ORACLE_HOME=/oracle/TST/112_64; export ORACLE_HOME

PATH=/usr/sbin:/oracle/TST/admin/bin:/oracle/TST/112_64/bin:.:/oracle/TST:/usr/sap/TST/SYS/exe/run:/usr/bin:.:/usr/ccs/bin:/usr/ucb

LD_LIBRARY_PATH=/usr/sap/TST/SYS/exe/run:/oracle/TST/112_64/lib; export LD_LIBRARY_PATH

CURDATE=`date +"%Y-%m-%d-%H:%M"`

LOGFILE=/oracle/$ORACLE_SID/admin/log/tables_reorg.log; export LOGFILE

EMAIL_FILE=/oracle/$ORACLE_SID/admin/log/tables_reorg_email.txt; export EMAIL_FILE

echo "Table Reorg Start Time:`date +"%Y-%m-%d-%H:%M"` " > $EMAIL_FILE

echo " "  >> $EMAIL_FILE

brspace -c force -u / -f tbreorg -t BALHDR,RSBATCHDATA > $LOGFILE

echo "Table Reorg End Time: `date +"%Y-%m-%d-%H:%M"`" >> $EMAIL_FILE

echo " "  >> $EMAIL_FILE

echo "############ SUCCESS ############"  >> $EMAIL_FILE

grep "reorganized successfully" /oracle/$ORACLE_SID/admin/log/tables_reorg.log >> $EMAIL_FILE

echo " "  >> $EMAIL_FILE

echo "############ SKIPPED ############"  >> $EMAIL_FILE

grep "will be skipped" /oracle/$ORACLE_SID/admin/log/tables_reorg.log >> $EMAIL_FILE

echo " "  >> $EMAIL_FILE

echo "############ OVERALL ERRORS ############"  >> $EMAIL_FILE

grep "error" /oracle/$ORACLE_SID/admin/log/tables_reorg.log >> $EMAIL_FILE

echo " "  >> $EMAIL_FILE

cat $EMAIL_FILE  | /usr/bin/mailx -s "$ORACLE_SID Table Re-organisation Report " myemail@email.com

exit

 

We are required to login to the server using our personal ID and then "sudo su - oratst" to connect to oratst. When I login like this and execute the above script it works fine. Below is the output:

 

BR1001I BRSPACE 7.20 (38)
BR1002I Start of BRSPACE processing: seortudn.tbr 2014-09-07 15.35.15
BR0484I BRSPACE log file: /oracle/TST/sapreorg/seortudn.tbr

BR0280I BRSPACE time stamp: 2014-09-07 15.35.16
BR1009I Name of database instance: TST
BR1010I BRSPACE action ID: seortudn
BR1011I BRSPACE function ID: tbr
BR1012I BRSPACE function: tbreorg
BR0134I Unattended mode with 'force' active - no operator confirmation allowed

BR0280I BRSPACE time stamp: 2014-09-07 15.35.18
BR1039I Selecting information about tables and indexes...
BR0285I This action can take several seconds/minutes - be patient...

BR0280I BRSPACE time stamp: 2014-09-07 15.35.33
BR0814I Number of tables/partitions in schema of owner SAPR3: 33913/7699
BR0836I Number of tables treated as info cubes for owner SAPR3: 168

BR0280I BRSPACE time stamp: 2014-09-07 15.35.58
BR0815I Number of indexes/partitions in schema of owner SAPR3: 62579/64258

BR0280I BRSPACE time stamp: 2014-09-07 15.35.58
BR0660I List display 352 # no selection possible
-------------------------------------------------------------------------------
List of tables for reorganization

  Pos.  Owner    Table                Pt. DgPk.     Rows   Used[KB]  Data[KB:%]

    1 - SAPR3    BALHDR               NO   1      752120    228272    193906:85
    2 - SAPR3    RSBATCHDATA          NO   1         295       136       122:90

Standard keys: c - cont, b - back, s - stop, r - refr, h - help
-------------------------------------------------------------------------------
BR0280I BRSPACE time stamp: 2014-09-07 15.35.58
BR0134I Unattended mode with 'force' active - continuing processing with default reply 'cont'

BR0280I BRSPACE time stamp: 2014-09-07 15.35.58
BR0657I Input menu 353 # please enter/check input values
-------------------------------------------------------------------------------
Options for reorganization of tables: SAPR3.BALHDR,... (2 tables)

1 * Reorganization action (action) ............ [reorg]
2 - Reorganization mode (mode) ................ [online]
3 - Create DDL statements (ddl) ............... [yes]
4 ~ New destination tablespace (newts) ........ []
5 ~ Separate index tablespace (indts) ......... []
6 - Parallel threads (parallel) ............... [1]
7 ~ Table/index parallel degree (degree) ...... []
8 ~ Category of initial extent size (initial) . []
9 ~ Sort by fields of index (sortind) ......... []
10 # Index for IOT conversion (iotind) ......... [FIRST]
11 - Compression action (compress) ............. [none]
12 # LOB compression degree (lobcompr) ......... [medium]
13 # Index compression method (indcompr) ....... [ora_proc]

Standard keys: c - cont, b - back, s - stop, r - refr, h - help
-------------------------------------------------------------------------------
BR0280I BRSPACE time stamp: 2014-09-07 15.35.58
BR0134I Unattended mode with 'force' active - continuing processing with default reply 'cont'

BR0280I BRSPACE time stamp: 2014-09-07 15.35.58
BR1108I Checking tables for reorganization...

BR0280I BRSPACE time stamp: 2014-09-07 15.35.59
BR1112I Number of tables selected/skipped for reorganization: 2/0

BR0370I Directory /oracle/TST/sapreorg/seortudn created

BR0280I BRSPACE time stamp: 2014-09-07 15.35.59
BR1101I Starting 'online' table reorganization...
BR0280I BRSPACE time stamp: 2014-09-07 15.35.59
BR1124I Starting 'online' reorganization of table SAPR3.BALHDR ...
BR0280I BRSPACE time stamp: 2014-09-07 15.36.53
BR1105I Table SAPR3.BALHDR reorganized successfully

BR0280I BRSPACE time stamp: 2014-09-07 15.36.53
BR1141I 1 of 2 tables processed - 752120 of 752415 rows done
BR0204I Percentage done: 98.67%, estimated end time: 15:36
BR0001I *************************************************_
BR0280I BRSPACE time stamp: 2014-09-07 15.36.53
BR1124I Starting 'online' reorganization of table SAPR3.RSBATCHDATA ...
BR0280I BRSPACE time stamp: 2014-09-07 15.37.05
BR1105I Table SAPR3.RSBATCHDATA reorganized successfully

BR0280I BRSPACE time stamp: 2014-09-07 15.37.05
BR1141I 2 of 2 tables processed - 752415 of 752415 rows done
BR0204I Percentage done: 100.00%, estimated end time: 15:37
BR0001I **************************************************

BR0280I BRSPACE time stamp: 2014-09-07 15.37.05
BR1102I Number of tables reorganized successfully: 2

BR0280I BRSPACE time stamp: 2014-09-07 15.37.05
BR1022I Number of tables processed: 2
BR1003I BRSPACE function 'tbreorg' completed

BR1008I End of BRSPACE processing: seortudn.tbr 2014-09-07 15.37.05
BR0280I BRSPACE time stamp: 2014-09-07 15.37.06
BR1005I BRSPACE completed successfully

 

When I schedule it in the crontab of oratst  directly it is trying to create the logfile under $ORACLE_HOME/sapreorg and fails since that folder does not exist. Please see below

 

BR1001I BRSPACE 7.20 (38)
BR0252E Function fopen() failed for '/oracle/TST/112_64/sapreorg/seortuxs.tbr' at location main-5
BR0253E errno 2: No such file or directory
BR0121E Processing of log file /oracle/TST/112_64/sapreorg/seortuxs.tbr failed

BR0700E Fatal errors occurred - terminating processing...

BR1008I End of BRSPACE processing: seortuxs.tbr 2014-09-07 15.44.00
BR0280I BRSPACE time stamp: 2014-09-07 15.44.00
BR1007I BRSPACE terminated with errors

 

My question is, why is trying to create log under $ORACLE_HOME/reorg? Where is is picking up this location from?

 

Any advice from experts?

 

Thanks in advance.

Status of roles assigned in SU01

$
0
0

Hi All, Need help to understand the status of a role and effect of user comparison on it... in SU01 assignment to a ID....Cases as below:

 

1.Role assigned to the ID has expired....The color of the role I have noticed becomes red...why is it so? is it because the role had a new profile generated since the time role got expired in that user? or is it just because role has got expired and so it becomes red in SU01?

And are roles and corresponding profiles which got expired removed from the ID automatically or just both role&profile left as it is with only the role turned red giving the text (User comparison required)...

 

2.Role assigned to a ID with validity start date set as some date in future. Have seen that in this case too role becomes red after a day!! PFCG_TIME_DEPENDENCY runs..But why is it so??Why does it turn red?

Re: Fiori App - Approve Purchase Order ERP Dependencies

$
0
0

Thanks Masa, appreciate that.

I am able to figure out what is required for what to make it work.

 

Currently upgrading to EHP7 before we get rolling with the Apps.

Thanks, will be asking you more if I bump into another one.

 

Best Regards,

Akshay

outbound user exit for ks01 cost center-std idoc enhancement

$
0
0


Hi All,

 

I have added one custom screenin ks01 transaction code in a cost center screen. Now i wanted to send that data using standard IDOC

enhancement to other  system. i am not able to get the outbound user exit. Would you please suggest.

Sales order questions

$
0
0

WE make special and standard items.  These are designated in the account assign field on the sales order.   Is it possible to highlight the fields if the account assign field?   Is it possible to run a report based on the designation of the account assign fields?  We need to know how many specials were ordered each day.

 

is it possible for the shipping conditions to show up on the on the header screen so you can make sure you chose the right method before saving?

 

WE have 5 locations using the same SAP.  4 locations are in Europe.   All 5 locations shipping methods show

up under shipping conditions.  Is there a way to limit the shipping conditions so the we only see the methods for the U.S.?  It takes up too much time to scroll thur all the options.


GRC 10 Role Import from LDAP directory

$
0
0

Hello,

 

I'm trying to import LDAP group objects as roles into SAP GRC 10.

 

I followed some guidelines, but all of them only cover AUTH and PROV scenarios, wherelse I'm only interested in the ROLMGR scenario.

Whenever I start the Repository Object Synchronization, I get the error message 'Scenario link not defined in grfnconnscnlk table for LDAP*'.

 

Does somebody have a guide how to configure this scenario?

 

Kind regards

Holger

Re: Delete infoobject from an infocube with data

Re: How to add Freely programmed input help in FPM Search UIBB?

Re: Monitor 3.10 - layout

Re: SRM - Shopping Cart - UoM is being defaulted to EA automatically

$
0
0

Hi,

 

Can you please check what comes in FM BBP_WS_MAP_OCI_TO_SC?

 

Regards,

Ravi

Viewing all 8676 articles
Browse latest View live




Latest Images