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

EnqInitCleanupServer: Shm of enqueue table (rc = 3) does not exist, nothing to clean up

$
0
0

Dear Frds,

 

i have faced the issue En queue server is not start up. please find my dev trace file and suggest the solution.

 

 

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

trc file: "dev_enqsrv", trc level: 1, release: "721"

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

sysno      01

sid        POD

systemid   562 (PC with Windows NT)

relno      7210

patchlevel 0

patchno    214

intno      20020600

make       multithreaded, Unicode, 64 bit, optimized

pid        3804

 

 

 

 

[Thr 1824] Thu Jul 10 13:58:28 2014

[Thr 1824] profile    \\SAP-GT-PO-DEV\sapmnt\POD\SYS\profile\POD_SCS01_SAP-GT-PO-DEV

[Thr 1824] hostname   SAP-GT-PO-DEV

[Thr 1824] Listen successful on port/service sapdp01

[Thr 1824] EnqInitCleanupServer: Shm of enqueue table (rc = 3) does not exist, nothing to clean up

[Thr 1824] initialize_global: Enqueue server started WITHOUT replication functionality

[Thr 1824] Enqueue: EnqMemStartupAction Utc=1404971908

[Thr 1824] *** ERROR => [AttachOsShm] OpenFileMapping(FILE_MAP_ALL_ACCESS,FALSE,Global\SAP_SYSTEM_SHM_1_37) failed with Err=5

              EIO*: Input/output error OR: Access is denied. [shmnt.c      2263]

[Thr 1824] *** ERROR => ShmCreate: Attach (37,67136,2) failed [shmnt.c      440]

[Thr 1824] *** ERROR => CrtOsSemAdm: Semaphore Admin. Table not created [semnt.c      2063]

[Thr 1824] *** ERROR => SemInMgt: Create Global Admin.Table failed [semnt.c      520]

[Thr 1824] *** ERROR => SemInit: Semaphore Admin. Table not initialized (Key=26) [semnt.c      847]

[Thr 1824] ***LOG GEF=>  [enxxmini.h   397]

[Thr 1824] ***LOG GZZ=> Initialization of semaphore failed [enxxmini.h   398]

[Thr 1824] ***LOG GZZ=> ENSA: PID = 3804 [enservglob.c 840]

[Thr 1824] *** ERROR => initialize_global: failed to initialize the enqueue table: rc=8

[enservglob.c 843]

[Thr 1824] *** ERROR => main: Server initialisation failed!

  Errortext:"error at server initialisation detected at enservglob.cpp:844 Errorinfo: "initialize_global: failed to initialize the enqueue table: rc=8

"" [enservmain.c 258]

 

According to

Note 133909 - Maximum value for PG_MAXFS, PG_SHM, ROLL_MAXFS, ROLL_SHM we are added the parameters like

rdisp/PG_SHM = 250000

rdisp/ROLL_SHM = 250000

rdisp/PG_MAXFS = 200000 and restated the Application and server OS level also.

 

Regards,

Somesh.K


Quota Genration issue

$
0
0

Hi Expert,

 

For employee group:19 TO 26

 

 

Quota generate value will be: 25

 

 

It is not generating in PT 60.There is no value in Zes for Time Type 9100 (Base_Entitlement)

 

 

Kindly advice for the same. I also attached the screen shot for that

 

 

pcr.pngBase_Entitelement.pngquota_values.png

 

Regards,

Sharma

APP for two separate plants for same vendor

$
0
0

Hello Experts

 

I have one company code and two plants. These plants are created as different profit centers. These two plants have their own payment offices and bank accounts. Both of them are individually responsible for payment of their own invoices only.

 

Now they both procure from one vendor. Say vendor X. Vendor ledger is same. When I see vendor line item report (FBL1N), I can see 70 open line items (open invoices). 40 line items pertains to 1st plant and 30 line items 2nd plant.

 

Now 1st Plant wants to execute APP. Their requirement is that it should only pick invoices pertaining to their plant only. How its possible?.

 

Note: since number of invoices are more, mentioning individual invoices in exclusion is not possible.

 

Please help

 

-M

Query Browser - Dynamic date value

$
0
0

Here is a requirement -

for a query prompt selector (query created using query browser) to input a date, I want to assign yesterday’s date as default value so that it picks up yesterday’s data for display by default.

 

Dashboard Design of BI4.0 SP09

 

How do you advice?

dump error when creating sales order

$
0
0

Dear Friends,

 

When I am creating sales order after entering order quantity field value in item table giving dump error.

 

Please help me.

Untitled.png

 

Untitled1.png

 

INCLUDE LV03VF0B.

 

INCLUDE LV03VFB4 inside below code trigger error.

 

PERFORM VVBBD_AUFBAUEN USING WA_AVBBD

                                    WA_AVBBD-APOMOBILE

                                    DA_SUBRC

                                    DA_UPDKZ

                                    DA_VVBBD_TABIX

                                    0.


.

how to add value to Root node in message mapping i.e. to

$
0
0

Hi Experts,

 

  please provide me any  UDF or Java or XSLT maaping code to add text into the root node of the payload i.e. my target Payload will be like

 

<ns1:sObjects>

<ns2:Id>123</ns2:Id>

<ns2:name>Test message <n/s2:name>

</ns1:sObjects>

 

and i have to get it like

 

<ns1:sObjects xsi:type="Account">

<ns2:Id>123</ns2:Id>

<ns2:name>Test message <n/s2:name>

</ns1:sObjects>

 

Regards,

Yugandhar

pricing condition for po value

$
0
0

HI Experts,

 

would you be able to advice if pricing condition can be configure in such a way that if PO value exceeds a certain amount a discount will be applied ot the po (for example 3% discount when total po value exceeds $2000)?

 

Thanks a lot

regards

BC

Adding Signature in SapScript customizing invoice report

$
0
0

DEAR Experts,

My Requirement is adding signature in sapscript customizing report.

i know the process how to upload the scan signature from se78.this is done.

 

my requirement is 3 different signature will come at the end of the invoice report in logo (Prepared By) and (Approved by).

 

After material release is update in Ekko table

 

(ekko-ebeln):- purchase document number

(ekko-frggr):- release group      eg.           A

(ekko-frgsx):- release strategy  eg     b1   b2    b3

(ekko-frgke):- release indicator  eg     1     2      3

(ekko-frgzu):- release status     eg      x    xx    xxx

 

who is created po(signature)-->

(cdhdr-objectid):- object value

(cdhdr-username):- which employee-id(created po)

(cdhdr-tcode):- me21n for creating po

 

who is realeased po(signature)-->

(cdhdr-objectid):- object value

(cdhdr-username):- which employee-id(released po)

(cdhdr-tcode):- me29n for released po

 

i wanted to fetch the data in driver program

 

condition1:- if b1 and 2 then one signature

 

condition2:- if (b1 and 2) and (b2 and 2) then one signature

 

condition3:- if (b1 , 2 and b2 , 2) then one signature and (b3 and 2) then another signature

 

how to do it customizing sapscript layout and driver program?

Basically i am beginner in sapscript


Getting 403 forbidden error when testing REST based interface

$
0
0

Hi Experts,

 

   I am not using identity management. I have created a simple REST (POST) based interface in PI using Advantco adapter. I have used AAE (ICO).

   Here in REST sender channel I have just configured the "Listening Mode".

 

   When I test the REST service url (http url) in browser (IE or chrome).I get a pop-up to enter userid/password. After that I get 403 forbidden error.

    I have proper access to PI system as a DEVELOPER.

 

    Is there any special role or access to be included in addition to DEVELOPER role in PI?

 

    Am I missing any other configuration?

 

    The url I am using is:  http://<PI host name>:<port>AdvantcoRESTAdapter/RESTServlet?channel=REST_Sender_GetDN&service=RESTSys

 

   Please help.

To update the pricing table for Reseller/distributor at CAMPAIGN transaction

$
0
0

I am new to SAP CRM and this is the first time I am working in CAMPAIGN.

 

My requirement is that in the CAMPAIGN PRODUCTS AB, Four AET fields are added. These fields are Discount Fields for  RESELLER and DISTRIBUTOR discounts. Now from the products AB if I will enter some discounts and SAVE it. The values should be displayed on the DISCOUNTS AB  with respective CUSTOMER GROUP and CONDITION TYPE, also the values should be updated in the pricing tables CNCCRMPRCUS953 for Reseller and table CNCCRMPRCUS746 for distributor.

 

I tried using below approaches:

 

1.To update the pricing table mentioned above,I have tried using the FMCRM_PRICE_AGRMNTS_MAINTAIN_OW to generate the condition records, but I am not able to use this FM as CAMPAIGN is not in sync with one order framework.

 

2. I tried with the BOL programming but the main component CPG_MAIN doesn't have context node which has base entity  COND_RECORD_MAX_WS_CRM .It only has custom controller which consist the context node.

 

To achieve my requirement, am I trying right approach or is there any other approach i need follow. please provide me pointers to achieve. Reply would be most appreciated and valued.

 

Thanks

Paarul

Replication of Hierarchy & Groups of MDG-F Objects

$
0
0

Hi,

 

 

I have few questions on replication of Hirarchies & groups:

 

  1. I want to replicate Group & Hierarchy ( PCTR & CCTR ). I have done the setup for PCTR & CCTR which is replicating successfully.I have introduced the IDOC of PCTRG in DRFIMG setup with message type COGRP6. But my replication is not happening.What is the missing link?

 

   2. I am creating PCTR via single processing & then release of Edition is replicating the PCTR. However, i am the using the collective Processing for              creating PCTRG & PCTRH along with the assignment of PCTR to it. But still my replication is not happening for PCTRG. This is the process that I am        following.Is this the correct approach or I should go for addition of Custom Profit Center Group attribute right from the Data Modelling- UI Config -SMT          Mapping?

 

   3. What is the Idoc for Hierarchy which I can configure?

 

   4. Can We replicate Hierarchy through IDOC?If Yes then How? If not then what is the alternative way to do it?

 

I would really appreciate you if you could provide me an answer or a hint.

 

Best Regards,

Kaustubh

Adding a field to CIF_MATLOC

$
0
0


Hi All,

 

I have a requirement wherein I need to add a field to CIF_MATLOC which is already present in /SAPAPO/MATLOC. After searching in the net I found CIFMTLCCUS is an enhancement structure for CIF_MATLOC, but i'm not able understand how to use it...

 

Please tell me step by step procedure, how to add the field to CIF_MATLOC so that it can be transferred to the APO.

 

Thanks & Regards,

SriLalitha.

Fiori - Login Cookie check failed

$
0
0

Hello experts ,

 

This is the first fiori applications we are implementing on. - THis is Approve Purchase Order .  ON ECC 6 EHP 6 system have addons are  installed and respecive odata services listed as below are activated in /IWFND/MAINT_SERVICE . Now accessing

http://<hostname>:<port>/sap/bc/ui5_ui5/sap/arsrvc_upb_admn/main.html  throws below error as in screenshot

User Authentication failed.png

SSO logon not possible; no logon ticket due to incorrect configuration

Choose "Log On" to continue. A dialog box appears in which you can enter your user and password

No switch to HTTPS occurred, so it is not secure to send a password

 

Odata services activated :

 

  • PAGEBUILDER_SERVICE_V_0_1
  • PAGE_BUILDER_CONF
  • PAGE_BUILDER_CUST
  • PAGE_BUILDER_PERS
  • QUICKVIEW
  • TRANSPORT
  • INTEROP
  • gbapp_poapproval
  • and icf services MM_PO_APV are also activated

Posting with reference to pur. order only possible for integrated whse Message no. L9510

$
0
0

Hi,

I´m trying to setup a reversal for movement type 102 trough our Decentralized warehouse but without any luck.

 

I have check some of the entries in customizing from the path down below, and also check some of links here on the community but still not getting anywhere

 

Logistics Execution→Decentralized WMS Integration→Central Processing→Application→Define Interface to Inventory Management and Delivery-Relevant Data.

  • Assign WM movement type references to IM movement types
  • Delivery-Relevant Parameters for Reference Movement Type

I could see from my our own reversal without WMS this setup is by delivery type DOG to pick the part wiht movement type:102 reference to WM.

However I still getting the error for WMS every time I try from MIGO with reference to Phurchase order, Indbound delivery, or material document.

 

 

Could anyone share me with some knowledge on that area.

 

Looking forward to hear from you.

 

Added file "picture"

 

Regards

Claus

How to configure central SLD, local SLD and LMDB after Upgrade to 7.1

$
0
0

Dear all,

 

we are planning an upgrade from SAP EHP 1 for SAP Solution Manager 7.0 to 7.1 SPS11 (03/2014).

First of all we want to do only the technical upgrade and want to use the functions and all other like before.

 

Some details about our system landscape:

 

- we have a central SLD

- all SAP systems send their data via data supplier to the central SLD

- the Solution Manager system use a local SLD (access via CIM client) which is synchronized via bridge forwarding from the central SLD

 

I have set up a sandbox system from our productive SolMan and I´ve done the upgrade.

 

Now the questions:

 

- Do I have to do Tx SOLMAN_SETUP --> system preparation and basis configuration if I want to use the SolMan like before under

  SAP EHP 1 for SAP Solution Manager 7.0 ?

- if I have to do the SOLMAN_SETUP which SLD do I have to choose under point "6.1 Select SLD" ?

  We are using the local SLD from SolMan, which is synchronized from central SLD via bridge forwarding.

  Do I have to choose the central SLD or the local SLD ?

  And if I choose the local SLD, do I have to select too the button "Setup local SLD" ?

- Under point "6.2 Setup LMDB" I configured the connection to synchronize the SLD and LMDB. As the SLD I configured the central SLD. Is this correct ?

- Point "6.3 Migrate SMSY data to LMDB", do I have to do this if I want to use the SolMan like before under

  SAP EHP 1 for SAP Solution Manager 7.0 ?

 

It would be very nice if somebody could dispel my doubts.

 

Thanks a lot

Carsten


list of SAP Implemented Companies in the UK

$
0
0

Hi,

 

Can Someone tell me the list of SAP Implemented Companies in the UK

 

Thanks in advance.

 

Rob

Broken links to ABAP keyword documentation

$
0
0

Hi,

 

The links to ABAP Keyword documentation on SAP Help portal mentioned by Horst Kellerhere:

 

 

appear to be down again for me... Ditto for http://help.sap.com/abapdocu_731/en/index.htm and http://help.sap.com/abapdocu_731/de/index.htm. Onlyhttp://help.sap.com/abapdocu_702/en/abenabap.htmseems to be working for me at the moment (no, that page came from cache or something, now not working as well )

 

This documentation has been accessible only sporadically for me this week... I even tried silly sounding suggestions like copy-pasting link into browser rather than clicking links... I tried using different browsers, I tried clearing cache - everything I could think of. What's up with that, when will it be fixed? It's such a valuable resource...

 

Thank you

Jānis

loading & converting geographical data to/in hana

$
0
0

Current situation:

source system: MS SQL Server 2008 containing spatial data

SAP DS is our core loading technique

SAP HANA our target.

 

In HANA there is the column type ST_GEOMETRY or ST_POINT that can hold the geographical specific data. There are also functions how to use them (ST_Distance for example)...... but the main question is: how can i load this kind of data to HANA?

 

Within SAP DS there is no special column type like ST_GEOMETRY:

blob.png

 

When trying to use blob (binary like spatial data) the DS failes. So my main question is, how can i correctly load geographical data from a non SAP system?

A list of Javascript interesting features compared with ABAP

$
0
0


There are already two great blogs which stress why ABAPers should learn Javascript and some essential Javascript features.


Top 10 things ABAP developers should know when learning JavaScript

JavaScript for ABAP Developers


In this document, I will collect some interesting and useful Javascript features compared with ABAP by using examples for demonstration. I will keep it updated once I have learned new stuff.

 

 

1. An object could consume a function which it does not own

 

Paste this source code below into a new .html file and run it in Chrome.

 

<html><script>
function ABAPDeveloper(name, year)
{  this.name = name;  this.year = year;  this.codeABAP = function() {  console.log("Hello, my name is: " + this.name + " I have " + this.year  + " year's ABAP development experience");  }
}
function CDeveloper(name, year, os)
{  this.name = name;  this.year = year;  this.os = os;  this.codeC = function() {  console.log("Hello, my name is: " + this.name + " I have " + this.year  + " year's C development experience focus on " + os + " system.");  }
}
var iJerry = new ABAPDeveloper("Jerry", 7);
iJerry.codeABAP();
var iTom = new CDeveloper("Tom", 20, "Linux");
iTom.codeC();
iTom.codeC.call(iJerry);</script></html>

All the codes are very easy to understand except this "iTom.codeC.call(iJerry)".

 

As mentioned in Kevin Small's blog, "In JavaScript Functions are First Class", we can consider currently Javascript uses the keyword "function" to implement  the OO concept with different approach than ABAP. In this example, although Jerry has no C development experience, now I suddenly owned 7 years' C development experience on Linux

 

clipboard1.png

If you debug in Chrome, you can find the magic of iTom.codeC.call(iJerry). Here the function codeC owned by Object CDeveloper is called by explicitly specifying the context as instance iJerry, this could be observed by checking "this" variable in Chrome debugger, currently "this" points to instance iJerry.


clipboard2.png

This quite flexible feature is not available in ABAP. As we know, the class instance in ABAP could only consume its own method or those inherited from its parent.

 

2. Anonymous object

 

in below example, we define two simple functions a and b, and assign them separately to variable d and e, so those two functions could also be called via d and e as well. In the meantime, another anonymous function with one argument name is also defined. in this context, there is no way to assign this anonymous function to another variable, it has to be executed immediately once having been defined. In this example it is called with argument name = "c",

 

<html>

 

<p>hello</p>

<script>

function a() { console.log("I am function a");}

function b() { console.log("I am function b");}

var d = a;

var e = b;

a();

b();

d();

e();

(function(name) { console.log("I am function: " + name); })("c");

</script>

</html>

 

 

Check the variable a , b, d, e in Chrome debugger. There is a tab "anonymous function" which enables you to have a list of all anonymous functions used.

 

clipboard3.png

Finally it generates output like below:

clipboard4.png

Go back to ABAP, since we don't treat function module as an object, and every function module should have a name so that it could be called via name.

 

And for the anonymous function in Javascript, since once it is defined and executed, it could not be reused later, I personaly would like to compare this "transient" feature with ABAP keyword GENERATE SUBROUTINE POOL itab NAME prog. Just execute this code which could be found in ABAP help:


DATA itab TYPE TABLE OF string.
DATA prog  TYPE string.
DATA class TYPE string.
DATA oref TYPE REF TO object.
APPEND `program.`                     TO itab.
APPEND `class main definition.`       TO itab.
APPEND `  public section.`            TO itab.
APPEND `    methods meth.`            TO itab.
APPEND `endclass.`                    TO itab.
APPEND `class main implementation.`   TO itab.
APPEND `  method meth.`               TO itab.
APPEND `    message 'Test' type 'I'.` TO itab.
APPEND `  endmethod.`                 TO itab.
APPEND `endclass.`                    TO itab.
GENERATE SUBROUTINE POOL itab NAME prog.
class = `\PROGRAM=` && prog && `\CLASS=MAIN`.
CREATE OBJECT oref TYPE (class).
CALL METHOD oref->('METH').


clipboard5.png

In the runtime, a temporary class type is created and it is allowed to create new object instance based on this type. And this type is transient so could only be used in current transaction.


3. Overwrite builder-in code


Let's review how could this be done in ABAP. It is one of the most powerful abilities I appreciate in ABAP to change the behavior of standard code via pre-exit, post-exit and overwrite-exit. It is a good tool especially for those consultant working for customer project. By creating an overwrite-exit, you can completely deactivate the standard method execution and make your own exit run. For details about how to create the exit, please see this document.


clipboard6.png


And in Javascript, it is even much easier to overwrite the build-in code. Suppose I would like to rewrite the build-in function console.log.


Just paste this code below in the beginning of <script> node in example 2:


 

var _log = console.log;

 

console.log = function() {

  _log.call(console, '%c' + [].slice.call(arguments).join(' '), 'color:green;text-shadow:0 0 4px rgba(100,200,23,.5);');

};

execute example 2 again, the output is generated with our customized color:

 

clipboard7.png

4. Constructor redefinition

 

In ABAP it is not possible to redefine a constructor method.

 

clipboard8.png

clipboard9.png

 

However in Javascript, it is allowed to redefine a function implemention inside itself, sounds crazy?

 

Let's first have a look at this small piece of code:

 

<html>

 

</html>

<script>

function Person(name)

{

    this.name = name;

}

var person1 = new Person("Jerry");

var person2 = new Person("Jerry");

alert( person1 === person2 ? "Yes":"No");

</script>

 

it pops up No, since we use "===" comparator and person1 and person2 are two different object instance.

 

clipboard10.png

 

Now inside function Person, I overwrite it by just return the buffered "this" instance, so all the subsequence call of new Person will always return that bufferred instance, and this time I will save a pop up with Yes.

 

<html>

</html>

<script>

function Person(name) {

         var instance = this;

         this.name = name;

         Person = function() {

             return instance;

        }

    }

     var iJerry1 = new Person("Jerry");

     var iJerry2 = new Person("Jerry");

     alert( iJerry1 === iJerry2 ? "Yes":"No");

</script>

 

5. Comma and colon

 

In example 2, you could call function a and b one by one with the following code:

 

a(), b();

 

And get the following output:

clipboard11.png

with the help of the so called comma expression, some interesting requirement could be filfilled.

For example, there is a famous interview question: how to exchange the content of two variables WITHOUT using intermediate variable?

 

Using comma expression in Javascript, this could be done via a simple line of code:

 

<html>

 

</html>

<script>

var a =1,b=2;

a=[b,b=a][0];

console.log("a:" + a);

console.log("b:" + b);

</script>

 

clipboard12.png


In ABAP the usage of comma like this is not allowed.


PERFORM list1, list2.


You will meet with this syntax error below.

clipboard13.png

6. Dynamically change inheritance relationship in the runtime

 

In ABAP once a class is assigned with a super class, this parent-child relationship could not be changed in the runtime. However for Javascript, since the OO concept is implemented differently, this relationship did allow change in the runtime.

Suppose we have defined a class Employee which owns two sub class OracleEmployee and SAPEmployee. The both subclass have been inherited from Employee by making their prototype attribute pointing to Employee.prototype( line 21 and 22 ), and in their constructor, explicitly call the parent's constructor via the keyword call which is explained in example 1. Both sub class can use the function displayName since it is inherited from Employee.prototype.

 

<html>

</html>

<script>

function Employee(name, language) {

    this.name = name;

    this.language = language;

    this.company = "";

}

Employee.prototype.displayName = function() {

    console.log("My name is: " + this.name, " I am good at " + this.language + " and currently work at "

    + this.company );

}

function SAPEmployee(name, language) {

    Employee.call(this, name, language);

    this.company = "SAP";

}

function OracleEmployee(name, language) {

    Employee.call(this, name, language);

    this.company = "Oracle";

}

SAPEmployee.prototype = Object.create(Employee.prototype);

OracleEmployee.prototype = Object.create(Employee.prototype);

var iTom = new OracleEmployee("Tom", "Java");

iTom.displayName();

console.log( "Is Tom working at Oracle? " + ( iTom instanceof OracleEmployee ));

Execute the script and we could have expected output.

 

clipboard14.png

Now let's append several lines below:

 

OracleEmployee.prototype = SAPEmployee.prototype;

OracleEmployee.prototype.constructor = SAPEmployee;

var iJerry = new OracleEmployee("Jerry", "Java");

console.log( "Is Jerry working at SAP? " + ( iJerry instanceof SAPEmployee ));

 

Now although the instance iJerry is initialized via constructor OracleEmployee, however since the prototype attribute of it has been modified to point to SAPEmployee, so in this case iJerry instanceof SAPEmployee will return true.

 

clipboard15.png


This could be observed in Chrome debugger, in this case the parent of instance iJerry is actually changed to class SAPEmployee instead.

clipboard16.png

I will keep updating this document once new comparisons between Javascript and ABAP have been found.list

Read custom field's values in GRAC_UIBB_ACCESS_REQUEST

$
0
0

Hi All,

 

We have added new fields in webdynpro component: GRAC_UIBB_ACCESS_REQUEST and displayed new fields in front end.

 

Enhanced above webdynpro component but not able to read those new field's values inside the enhancement, as the context doesn't has new fields.

 

Any help is really appreciated

Viewing all 8608 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>