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

Re: Calculate Difference of two fields in tickets

$
0
0

hello Saurabh,

 

 

 

try

 

this.date1 = Date.ParseFromString("20100215"); this.date2 = Date.ParseFromString("20100218"); this.result = this.date1.Delta(this.date2);

 

Result: Duration value P3D

 

 

 

then,

 

this.duration = Duration.ParseFromString("P1Y14D"); this.result = this.duration.ConvertToDays(); Result: Integer value 379

 

 

 

Regards,

 

Chandan


Re: Logs of Destination service available?

Re: SAP WEB IDE trial version.

Data Load - One Single Data Flow Vs Multiple Data Flows

$
0
0

Hello All,

 

I want to load data from a Flat File into one single DSO and want to use only one Data Flow rather than multiple data flows.  For example:  I would like to have 4 columns in the DSO (Characteristics, KF1, KF2, KF3).  So, to summarize, instead of having a 3 different Datasource, InfoPackage, Transformation and DTP for KF1, KF2 and KF3, I just want to have only one data flow for (KF1, KF2, KF3).  Is this achievable?  My sample data is below.

 

Thanks,

 

Recca 

 

Re: How do I convert a JSON response to XML in ABAP

$
0
0

Hi Rong,

I think you need to transform the names of JSON objects to uppercase letters first like it is shown in demo report 'demo_json_names_to_upper'. You can use the predefined transformation 'demo_json_xml_to_upper' (or also ' wdr_json_xml_to_upper ') to update your JSON string.

 

Maybe like this:

DATA(lo_writer) = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ).
CALL TRANSFORMATION wdr_json_xml_to_upper SOURCE XML lv_json
                                                                           RESULT XML lo_writer.
DATA(lv_json_upper) = lo_writer->get_output( ).
"JSON to ABAP
CALL TRANSFORMATION id SOURCE XML lv_json_upper
                                           RESULT access_token = lv_token.


Regards,

Bernd

Re: Cutover

$
0
0

Thankyou Sanil for such a detailed answer  , Few things

 

1) No Open POs to migrate

2) No Open SOs

3) No Open Production orders

4) Ar , AP & Asset will be migrated but those are also very minimal

5)  Apirl 1 2016 to April 30th 2016 is Period 1 ...

6) My concern is

 

For example

 

Go-live

Finished Good Product "A"

    Std cost -- 1000

     MM uploads the inventory 30

     B/S - 30000

 

Post Audit


Finished Good Product "A"

  Inventory revaluation

     Std cost -- 2000   (Changes)

     Inventory    40  (Changed)

     B/s should have been - 80000

 

In between if the Goods issue is done and gr is also done for the same product "A"
based on Go-live Std cost

 

How to tackle this situation ?

Re: Error in EDI->XML Scenario?

$
0
0

Hi Vikram,

 

Any updates on this error, I'm getting the same error. We are on latest SP4 of the B2B add on.

 

Thank you.

 

Larry.

Re: Sap Cua configuration issue [pertaining to logical systems]

$
0
0

Hello Abhishek,

 

You should have administration authorization on all clients when you are configuring CUA.

But CUA users (that are used in RFCs) don't need SAP_ALL auhts. They can be system type users and there are speciala roles for them.


You can check your configuration and follow below links.

CUA Configuration steps

Central User Administration(CUA) configuration - Basis Corner - SCN Wiki



These are my notes. They may help.


Central System

  BD54

     METCLNT100

     METCLNT001

     MSTCLNT001

  SU01

     CUA_MET (System)

        ZSAP_BC_USR_CUA_CENTRAL

        ZSAP_BC_USR_CUA_CENTRAL_BDIST

        ZSAP_BC_USR_CUA_SETUP_CENTRAL

  CUA_MST (System)

        ZSAP_BC_USR_CUA_CENTRAL

        ZSAP_BC_USR_CUA_CENTRAL_BDIST

        ZSAP_BC_USR_CUA_SETUP_CENTRAL

  RFC

     METCLNT100   CUA_MET

     METCLNT001   CUA_MET_001

     MSTCLNT001   CUA_MST_001

 

CHILD 1 MET 001

  BD54

     METCLNT100

     METCLNT001

     MSTCLNT001

 

  SU01

     CUA_MET_001 (System)

        ZSAP_BC_USR_CUA_CLIENT

        ZSAP_BC_USR_CUA_SETUP_CLIENT

  SM59

     METCLNT100   CUA_MET

 

CHILD 2 MET 001

  BD54

     METCLNT100

     METCLNT001

     MSTCLNT001

 

  SU01

     CUA_MST_001 (System)

        ZSAP_BC_USR_CUA_CLIENT

        ZSAP_BC_USR_CUA_SETUP_CLIENT

  SM59

     METCLNT100   CUA_MET

 

SCUA--> CUA Create


Regards,

Yuksel AKCINAR


Re: How can I reserve a product for a special customer?

$
0
0

SC,

The standard solution for this type of requirement is Product Allocation.

Product Allocation - Availability Check and Requirements in Sales and Distribution Pr - SAP Library

 

You can configure Product allocation such that during Sales Order entry/change, the maximum quantity of confirmations are limited; according to specific characteristics in the Sales orders that you configure (such as customer).  These confirmation limits are defined by date.

Meanwhile, I realized GATP (Global Availability To Promise) might be a solution. Have you ever heard about it?

Yes I have heard about it.  GATP has its own Product Allocation solution, which has more features than ECC Product Allocation.  In addition, GATP permits combining Product Allocation with availability checking methods that do not exist in ECC.

 

Best Regards,

DB49

Re: Error in EDI->XML Scenario?

$
0
0

Vivek,

 

Were you able to resolve the error. I'm getting the same error when I check 'Read from Dynamic headers'.

 

Thank you.

 

Larry.

Re: individual capacity update automatic

$
0
0

Chaitanya,

I don't know exactly what your client wishes to automate. I hope he does not expect that SAP has some magical way to detect that an employee is missing, and then automagically reschedule the shop floor accordingly.  Normally, someone has to 'tell' the system somehow that resource availability has been reduced.

 

The normal way you address capacity shortages (e.g. an employee does not show up for work) is by using Capacity leveling functionality.  Capacity leveling can be automated by running Mass Processing batch jobs..

Capacity Leveling (PP-CRP-LVL) - SAP Library

 

Best Regards,

DB49

Re: Stuff SAP could easily fix - rant / wish list

$
0
0

Paul Hardy wrote:

 

There are so many trivial things e.g. "main program" becomes "master program" when doing a find and replace in SE38 and "only my inactive programs" becomes "please respect my inactive programs".

 

Oh dear, looks like someone had too much time on their hands. "Only my inactive programs" was perfectly clear (and number of times it was important in my searches is exactly 0 anyway). "Respect my programs" just reminds me of Cartman.

Re: How to specify to only consider certain locations during the planning?

$
0
0

Hi Nitesh,

 

Under "Optimizer Settings" I do not see "Advanced Optimizer Settings". It is possible that this has not yet been enabled via configuration for us. This is what I see:

 

Optimizer Settings.PNG

 

Would you be able to post a screenshot of what you have? I would like to go to our IT team so they can think about adding the advanced settings.

 

Thank you,

Adrian

Which table stores Measures information in BPC 7.5 MS version

$
0
0

Hi Experts ,

 

Currently i am working on SAP BPC 7.5 MS version  with SQL data base backend.

 

In SAP BPC NW version i know that measures is stored in UJA_FORMULA_APP” table  but i have following doubts

 

1.In which table does measures information stored in BPC 7.5 MS version?

2.Steps to identify this table in SQL Database of BPC 7.5 MS version?

 

 

Thanks in advance,

Siva

Re: Are you adding the custom objects to your SAP GRC Ruleset ?

$
0
0

Hi Prasant,

 

I understand adding Ztcodes and custom objects to the SAP GRC Ruleset.  Is there any existing practice for adding SAP Business Workflow work items to the SAP GRC Ruleset.  For example, you would identify functionalities of a Workflow work item and map to existing or create a new risk.

 

Are there any existing practices, white papers, conversations, blogs for GRC SoD control, monitoring, and mitigation of Workflow work items?  For example, a Workflow work item for Approving Funds could be analyzed and possibly mapped to an existing or create a new risk.

 

Thank you very much,

Sheldon Oxenberg


Re: Standard Cost Estimate CK11N, CK40N ignores Origin Group

$
0
0

Hi Will,

 

I wonder if you have created the overhead cost element with cost element category 41.

Also, please check if you have the origin group assigned in the material master in sender location.

 

Since it is plant transfer, the origin group would be considering from the source location.

 

Hope this helps.

 

Regards,

Srinath

Re: Mysql to Cloud Application

$
0
0

Thanks to Sergio and Vladimir....now i´m understanding the solutions.... See the file .sql below like example....is possible to run a sql file to upload mydatabase and do a prototype to learn the hana plataform as TRIAL USER?  The text below is only a example.

 

/*

SQLyog Enterprise - MySQL GUI v6.05

Host - 5.0.21-community-nt : Database - myprj

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

Server version : 5.0.21-community-nt

*/

 

 

 

 

/*!40101 SET NAMES utf8 */;

 

 

/*!40101 SET SQL_MODE=''*/;

 

 

create database if not exists `myprj`;

 

 

USE `myprj`;

 

 

/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;

/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;

 

 

/*Table structure for table `menus` */

 

 

DROP TABLE IF EXISTS `menus`;

 

 

CREATE TABLE `menus` (

  `id` int(10) unsigned NOT NULL auto_increment,

  `datat` timestamp NOT NULL default CURRENT_TIMESTAMP,

  `ativo` int(1) unsigned NOT NULL default '2',

  `vtipo` int(1) unsigned NOT NULL default '0',

  `vlink` varchar(100) character set latin1 collate latin1_general_ci NOT NULL,

  PRIMARY KEY  (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;

 

 

/*Data for the table `menus` */

 

 

insert  into `menus`(`id`,`datat`,`ativo`,`vtipo`,`vlink`) values (1,'2009-05-21 13:33:15',0,0,'menu1[0]=\'<a href=\"http://portal.educacao.mg.gov.br\"  title=\"HomePage\"  >Principal</a>\''),(2,'2009-05-21 13:35:02',2,0,'menu2[0]=\'<a href=\"/produtos\"       title=\"Listagem\"  >Produtos</a>\''),(3,'2009-05-21 13:35:05',2,0,'menu2[1]=\'<a href=\"/menus\"          title=\"Listagem\"  >Menus</a>\''),(4,'2009-05-21 13:35:08',2,0,'menu2[2]=\'<a href=\"/usuarios/lista\" title=\"Listagem\"  >Usuarios</a>\''),(5,'2009-05-21 13:35:11',2,0,'menu3[0]=\'<a href=\"/produtos/new\"   title=\"Adicionar\" >Produtos</a>\''),(6,'2009-05-21 13:35:19',0,0,'menu3[1]=\'<a href=\"/menus/new\"      title=\"Adicionar\" >Menus</a>\''),(7,'2009-05-21 13:35:23',2,0,'menu3[2]=\'<a href=\"/usuarios/new\"   title=\"Adicionar\" >Usuarios</a>\'');

 

 

/*Table structure for table `notas` */

 

 

DROP TABLE IF EXISTS `notas`;

 

 

CREATE TABLE `notas` (

  `id` int(10) unsigned NOT NULL auto_increment,

  `datat` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,

  `ativo` int(1) unsigned NOT NULL default '2',

  `vtipo` int(1) unsigned NOT NULL default '0',

  `vnome` varchar(55) collate latin1_general_ci NOT NULL,

  `local` varchar(255) collate latin1_general_ci NOT NULL,

  `email` varchar(255) collate latin1_general_ci NOT NULL,

  `pagto` char(2) collate latin1_general_ci NOT NULL,

  PRIMARY KEY  (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

 

 

/*Data for the table `notas` */

 

 

/*Table structure for table `produtos` */

 

 

DROP TABLE IF EXISTS `produtos`;

 

 

CREATE TABLE `produtos` (

  `id` int(10) unsigned NOT NULL auto_increment,

  `datat` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,

  `ativo` int(1) unsigned NOT NULL default '2',

  `vtipo` int(1) unsigned NOT NULL default '0',

  `vnome` varchar(55) collate latin1_general_ci NOT NULL,

  `descricao` text collate latin1_general_ci NOT NULL,

  `datapubli` date NOT NULL,

  `imagem` varchar(35) collate latin1_general_ci NOT NULL,

  `preco` decimal(8,2) NOT NULL default '0.00',

  PRIMARY KEY  (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

 

 

/*Data for the table `produtos` */

 

 

insert  into `produtos`(`id`,`datat`,`ativo`,`vtipo`,`vnome`,`descricao`,`datapubli`,`imagem`,`preco`) values (1,'2009-06-05 14:32:55',1,0,'Pragmatic Project Automation','<em>Pragmatic Project Automation</em> shows you how to improve the consistency and repeatability of your project\'s procedures using automation to reduce risk and errors.\r\n<p>Simply put, we\'re going','2009-05-27','auto.jpg','29.95'),(2,'2009-06-04 14:08:28',1,0,'Pragmatic Version Control','This book is a recipe-based approach to using Subversion that will get you up and running quickly---and correctly. All projects need version control: it\'s a foundational piece of any project\'s infrastructur\r\n<p> Without good tests in place','0000-00-00','svn.jpg','28.50'),(3,'2009-05-27 15:41:39',1,0,'Pragmatic Unit Testing (C#)','Pragmatic programmers use feedback to drive their development and personal processes. The most valuable feedback you can get while coding comes from unit testing.\r\n<p>Without good tests in place','0000-00-00','utc.jpg','27.75'),(4,'2009-06-05 14:32:58',1,2,'Ruby Web Development','How to implement software with the ruby language','2007-05-17','rails.png','30.12');

 

 

/*Table structure for table `usuarios` */

 

 

DROP TABLE IF EXISTS `usuarios`;

 

 

CREATE TABLE `usuarios` (

  `id` int(10) unsigned NOT NULL auto_increment,

  `datat` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,

  `ativo` int(1) unsigned NOT NULL default '2',

  `vtipo` int(1) unsigned NOT NULL default '0',

  `vnome` varchar(55) collate latin1_general_ci NOT NULL,

  `login` char(10) collate latin1_general_ci NOT NULL,

  `senha` char(10) collate latin1_general_ci NOT NULL,

  `menus` int(10) unsigned NOT NULL default '0',

  `imagem` varchar(35) collate latin1_general_ci NOT NULL,

  PRIMARY KEY  (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

 

 

/*Data for the table `usuarios` */

 

 

insert  into `usuarios`(`id`,`datat`,`ativo`,`vtipo`,`vnome`,`login`,`senha`,`menus`,`imagem`) values (1,'2009-05-31 08:39:41',1,0,'Paulo de Tharso','admin','play',7,'3x4.png');

 

 

/*Table structure for table `vendas` */

 

 

DROP TABLE IF EXISTS `vendas`;

 

 

CREATE TABLE `vendas` (

  `id` int(10) unsigned NOT NULL auto_increment,

  `datat` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,

  `ativo` int(1) unsigned NOT NULL default '2',

  `vtipo` int(1) unsigned NOT NULL default '0',

  `vqtde` int(10) default NULL,

  `total` decimal(8,2) default NULL,

  `produto_id` int(10) unsigned NOT NULL,

  `nota_id` int(10) unsigned NOT NULL,

  `usuario_id` int(10) NOT NULL,

  PRIMARY KEY  (`id`),

  KEY `fk_venda_produtos` (`produto_id`),

  KEY `fk_venda_notas` (`nota_id`),

  KEY `fk_venda_usuarios` (`usuario_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

 

 

/*Data for the table `vendas` */

 

 

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;

/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;

Ignore the destination info on LM45

$
0
0

Hi,

 

We want to ignore the 'destination info' on the LM45 RF screen. is there a way to configure the verification profile to ignore it?

I can there is a option for 'ignore source info for putaway', but no option for picking

 

 

For example: we want to ignore screen 3 and 4 if possible.

 

Screen 1 – scan pick hU

Screen 2 – scan EAN number,

Screen 3 – then ‘F1 Save’, push ‘F4 save’

Screen 4 – then ‘F1 save’ to confirm the TO

 

LM45 Screen sequence.JPG

thanks

Re: How to get "Enable Launch Forms by dynamic Group" in Advance Settings of Compensation Module

$
0
0

Also, there is a permission in RBP called Manage Groups in Options menu. Maybe that is not set?

 

groups.jpg

WebService for access roles of Portal

$
0
0

Dear Gurus,

 

I really need your help. I've ben struggling my brain in order to develop a webservice which can show the content of one or several roles. Till now I could get a role list, but when trying to get attributes of role's content I'm geting class cast exception

 

I've tried many options, but always ended with a class cast exception

 

All your suggestions will be very appreciatted. Thanks in advance

 

 

 

My base are this posts:

Query pcd roles through api

Exposing the Enterprise Java Bean as a Web Service - Developing Java EE 5 Applications - SAP Library

Browse portal content and object properties - Code Gallery - SCN Wiki

 

This is my code:

 

public List<PortalObject> getContentsFromRole(String roleName)

{

    this.portalObjArray = new ArrayList<PortalObject>();

    Hashtable roleList = getRoleListByName(roleName);

    Enumeration keyEnum = roleList.keys();

    try

    {

        InitialContext ctx = null;

        try

        {

            IUser principalObj = null;

            try

            {

                // getting the SAP user.

                IUserFactory userfact = UMFactory.getUserFactory();

                principalObj = userfact.getUserByLogonID("e_aaceval");

            }

            catch (UMException umex)

            {

                portalObjArray.add(new PortalObject("getContentsFromRole() UMException:" + umex.getMessage()));

            }

 

 

            Hashtable env = new Hashtable();

            env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);

            if (principalObj != null)

            {

                env.put(Context.SECURITY_PRINCIPAL, principalObj);

            }

            env.put(Constants.REQUESTED_ASPECT, IPcdAttribute.PERSISTENCY_ASPECT);

            ctx = new InitialContext(env);

        }

        catch (NamingException nex)

        {

            //TODO

        }

 

 

        while (keyEnum.hasMoreElements())

        {

            String roleKey = (String) keyEnum.nextElement();

            String val = (String) roleList.get(roleKey);

 

 

            PortalObject po = new PortalObject();

            po.setId(roleKey);

            po.setName(val);

 

 

            portalObjArray.add(po); // role data

 

 

            IPcdContext rootRole = (IPcdContext) ctx.lookup(roleKey);

            Object titleObj = rootRole.getAttributes("").get("com.sap.portal.pcm.Title");

            portalObjArray.add(new PortalObject("getContentsFromRole() titleObj:" + titleObj.toString()));

            if (titleObj instanceof IPcdAttribute)

            {

                IPcdAttribute titleAtt = (IPcdAttribute) titleObj;

                String title = titleAtt.get().toString();

                portalObjArray.add(new PortalObject("getContentsFromRole() title:" + title));

            }

        }

    }

    catch (Exception ex)

    {

        //TODO

    }

    return portalObjArray;

}

 

 

And this is the error:

 

Cannot cast class com.sapportals.portal.pcd.gl.PcdGlContext to interface com.sapportals.portal.pcd.gl.IPcdContext

Viewing all 8667 articles
Browse latest View live


Latest Images