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

Update UDF in a Document

$
0
0

Dear Experts,


Could somebody help me how to update an user  field in production order ?

Example U_ActualCap in the OWOR. I used this following code to get the value or amount the udf U_ActualCap in the production order

I made this following code but failed.

 

 

Private Sub ProductionOrder_InsertValue(ByVal DocDate As Date, ByVal oProductionOrderDocEntry As String, ByVal oProductionOrderDocNum As String, ByVal oProductOrder As String, ByRef IsError As Boolean, ByVal SBO_Application As SAPbouiCOM.Application, ByVal oCompany As SAPbobsCOM.Company)

        Dim oRec As SAPbobsCOM.Recordset

        oRec = CType(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset), SAPbobsCOM.Recordset)

        Dim lRetCode As Integer = 0

        Dim lErrCode As Integer = 0

        Dim sErrMsg As String = ""

 

        Dim MainProductCode As String = ""

        Dim oResource As Decimal = 0

 

 

        oRec.DoQuery("select ItemCode from OWOR where DocEntry= '" & oProductionOrderDocEntry & "'")

 

        MainProductCode = oRec.Fields.Item("ItemCode").Value.ToString

 

        oRec.DoQuery("exec GetValueResourceActual """ + MainProductCode + """,""" + oProductionOrderDocNum + """")

 

 

        oResource = oRec.Fields.Item("ResourceAmount").Value.ToString

 

 

        '-Production Order

        Dim oProdOrder As SAPbobsCOM.ProductionOrders

        Dim isLineExist As Boolean = False

        oProdOrder = CType(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders), SAPbobsCOM.ProductionOrders)

 

       If Round(oResource, 2) <> 0 Then

            oProdOrder.UserFields.Fields.Item("U_ActualCap").Value = oResource

            isLineExist = True

        End If

 

        If isLineExist Then

            lRetCode = oProdOrder.Update()

 

            If lRetCode <> 0 Then

                IsError = True

                oCompany.GetLastError(lErrCode, sErrMsg)

                SBO_Application.MessageBox(lErrCode.ToString & " : " & sErrMsg)

            Else

                IsError = False

                If oProdOrder.GetByKey(CInt(oCompany.GetNewObjectKey)) Then

                    oProductOrder = oProdOrder.DocNum.ToString

                End If

            End If

        End If

        oProdOrder = Nothing

 

    End Sub

 


How can I use the above code to insert its result  in the UDF by using the SAP SDK?

Pls help to solve this issue.

 

 

THank you

 

Regards,

Steve


Failed to see the query output though the data present at MP level.. Need inputs

$
0
0

Hello Guys,

 

I've executed 2 queries but couldn't able to see the outputs:

It says " Data not available may be due to filters or selections"

 

1. Both the queries doesn't have any mandatory selections or Global filters.

2. The data is available in Multi Provider level on which these queries are built on but couldn't see the output:

 

Could anyone please give your inputs on how to resolve this.

 

Thanks,

Rohit

Traslado Intercompañia (Intercompany STO)

$
0
0

Hola:

 

Por medio de este documento deseo realizar una recopilación sobre los temas que he publicado sobre el Traslado Inter-Compañia:

 

 

 

 

1. Trasaldo Inter-compañia con facturación (Inter-company STO)

 

Como realizar la configuración un Traslado Inter-compañía, para poder realizar en suministro y recepción de materiales entre Sociedades distintas y tener una sola fuente de información.

 

 

 

2. Traslado Inter-compañia Verificacion factura automatico

 

Como realizar la configuración para que la factura Inter-compañía se pueda generar la verificación en automático.

 

 

 

3. Traslado Inter-compañia - Proveedor Centro/Planta

 

Como realizar la configuración para poder usar un solo proveedor Inter-compañía y realizar suministros desde varias plantas que pertenecen a una misma Sociedad.


4. Traslado Inter-compañia Condicion precio manual PBXX

 

Como se puede configurar la condición manual PBXX para el pedido de traslado cuando no se tiene dado de alta un registro info.

 

 

 

Espero les sea de utilidad y quedo en espera de sus comentarios y sugerencias.

 

 

Saludos

 

Jose Antonio Martinez

Ordering and managing stock materials with multiple alternate manufacturer part numbers

$
0
0

We are on SRM 7.03 with extended classic scenario and ECC 6.0.  What is best practice on how to manage materials with multiple alternate manufacturer part numbers (MPN), ie, ordering and managing multiple MPNs linked to one material master?  For example, if a supplier for Part 123 [manufacturer part number (MPN) aaa] recalls this MPN and offer to replace it with MPN aab, how does SRM handle this?  First issue is the fact that the material master in ECC only permits one MPN/manufacturer (MFR), and if we change the MPN/MFR, all PO will also reflect the latest value.  This really confuses suppliers when we reprint an older PO but the MPN has been updated to the latest combination, rather than what was already processed.

Long Text for IA05 Transaction

$
0
0

I'm using LSMW for Task List Creation (IA05 Transaction). I'm passing long text for each operation. Whatever long Text, I'm passing through file is replacing the description of operation. Can anyone please let me know how to proceed further.

Store Procedure Conversion on SAP B1 Hana.

$
0
0

Dear All,

 

Is any one can help me to convert below mention Store Procedure on SAP B1 HANA .

 

 

 

 

 

 

 

 

 

Declare fromDate Datetime ,ToDate Datetime ,ItemGroup nvarchar(100);

Set FromDate = '2011-01-02 12:36:33.873';

Set ToDate = '2015-05-02 12:36:33.873';

Set ItemGroup = '';

 

 

With OB as

(

Select OITM ."ItemCode",Sum(OIVL ."InQty" - OIVL ."OutQty" ) as "QTY",Sum("SumStock") as "Value"

from OIVL inner join OITM on OIVL ."ItemCode" = OITM ."ItemCode"

where OITM ."SellItem" = 'Y' and CONVERT (Date ,OIVL ."DocDate" ) < CONVERT (Date ,fromDate)

group by OITM ."ItemCode"

),CB as

(

Select OITM ."ItemCode",Sum(OIVL ."InQty" - OIVL ."OutQty" ) as "QTY",Sum("SumStock") as "Value"

from OIVL inner join OITM on OIVL ."ItemCode" = OITM ."ItemCode"

where OITM ."SellItem" = 'Y' and CONVERT (Date ,OIVL ."DocDate" ) <= CONVERT (Date ,toDate )

group by OITM ."ItemCode"

),Prod as

(

Select OITM ."ItemCode"  ,sum(OIVL ."InQty" - OIVL ."OutQty" )as "Qty",SUM(OIVL ."SumStock") as "Value"

from OIVL inner join OILM on OIVL ."MessageID" = OILM ."MessageID"

inner join OITM on OIVL ."ItemCode" = OITM ."ItemCode"

where OILM ."TransType" in (59,60) and OILM ."BaseType" = 202 and OITM ."SellItem" = 'Y' and

CONVERT (date,OIVL ."DocDate" ) between CONVERT (date ,fromDate ) and CONVERT (date ,ToDate )

group by OITM ."ItemCode"

),Sale as

(

Select OITM ."ItemCode" ,

SUM(case when OCRD ."GroupCode" = 101 then  INV1 ."Quantity" else 0 end )as "QTY_Dist",

SUM(case when OCRD ."GroupCode" = 101 then  INV1 ."LineTotal" else 0 end ) as "Value_Dist",

SUM(case when OCRD ."GroupCode" <> 101 then  INV1 ."Quantity" else 0 end )as "QTY_Global",

SUM(case when OCRD ."GroupCode" <> 101 then  INV1 ."LineTotal" else 0 end ) as "Value_Global"

from OINV inner join INV1 on OINV ."DocEntry" = INV1 ."DocEntry"

inner join OCRD on OINV ."CardCode" = OCRD ."CardCode"

inner join OITM on INV1 ."ItemCode" = OITM ."ItemCode"

where OITM ."SellItem" = 'Y' and OINV .CANCELED = 'N' and

CONVERT (date,OINV ."DocDate" ) between CONVERT (date ,fromDate ) and CONVERT (date ,ToDate )

group by oitm ."ItemCode"

)

 

 

Select OITB ."ItmsGrpNam" ,OITM ."ItemCode" ,OITM ."ItemName" ,

ISNULL(Prod ."Qty",0 ) as "Prod_Qty",ISNULL(Prod ."Value" ,0) as "Prod_Value",

ISNULL(Sale ."QTY_Dist" ,0) as "Sale_Dist_Qty",ISNULL(Sale ."Value_Dist" ,0) as "Sale_Dist_Value",

ISNULL(Sale ."QTY_Global" ,0) as "Sal_Global_Qty",ISNULL(Sale ."Value_Global" ,0) as "Sale_Global_Value",

ISNULL(OB."QTY" ,0) as "OB_Qty" ,ISNULL(OB."Value" ,0) as "OB_Value",

ISNULL(CB."QTY" ,0) as "CB_Qty" ,ISNULL(CB."Value" ,0) as "CB_Value"

from OITM  inner join OITB on OITM ."ItmsGrpCod" = OITB ."ItmsGrpCod" 

left outer join Prod on OITM ."ItemCode" = Prod ."ItemCode"

left outer join Sale  on OITM ."ItemCode" = Sale ."ItemCode"

left outer join OB  on OITM ."ItemCode" = OB ."ItemCode"

left outer join CB  on OITM ."ItemCode" = CB ."ItemCode"

where OITM ."SellItem" = 'Y'and  (ISNULL(Prod ."Qty",0 ) <> 0 or ISNULL(Prod ."Value" ,0) <> 0 or

ISNULL(Sale ."QTY_Dist" ,0) <> 0 or ISNULL(Sale ."Value_Dist" ,0) <> 0 or

ISNULL(Sale .QTY_Global ,0) <> 0 or ISNULL(Sale ."Value_Global" ,0) <> 0 or

ISNULL(OB."QTY" ,0) <> 0 or ISNULL(OB."Value" ,0) <> 0 or

ISNULL(CB."QTY" ,0) <> 0 or ISNULL(CB."Value" ,0) <> 0)

use different formulas for particular member

$
0
0

I have a input schedule of account by category, where i need to do a formula for a particular member.
example:

 

                  category
                  id:calculation
account

id:1000        (formula 1)

id:2000        (formula 1)

id:3000        (formula 2)

id:4000        (formula 1)

 

 

how can i do it?

Code to delete a document parked with FV60

$
0
0

Hello all,

 

Documents that are parked using transaction FV60 that have a line item with a specific GL account range will create a controlling document as well as the FI document.

 

Within a workflow we  allow the processor to delete the parked document.  The following function module is used to do the actual delete, 'PRELIMINARY_POSTING_DOC_DELETE'.

 

This function module will delete the FI document but not the controlling document. Has anyone else seen this? If you have, how did you deal with it?

 

Thanks

Bruce


GL balances migration strategy from legacy

$
0
0

Hello

 

I would like to know GL balances migration strategy as a cut over activity from legacy.

 

     1. Usually all Balance sheet accounts will be considered for the balances migration. For this migration account to be created and used.

         Later total balance in this migration account should become zero.

       

     2. If P&L accounts also to be considered, what are the additional points to be taken care. How the balance can be migrated to the P&L accounts

 

     Can any of you please explain the both above approaches in detailed, if possible

 

Thanks

Ani

Quality Notification creation - how do I communicate this to a diverse group?

$
0
0

Hello Experts;

We have a requirement for Quality Notification type Q2 to be sent to multiple internal SAP contacts throughout the organization on creation. If a defect is found / reported at a location we need to notify a number of local site personnel as well as others in the corporate hierarchy spread across multiple functions and org units. This contact can be through workflow or email but needs to be driven from the task level within the notification.

 

I am actually on the HCM side and have been trying to assist with a solution by creating a user defined object 92 - Quality Notification grp and  assigning it to the relevant positions in OM. Using this method I can create a quality notification group object for each location to cover off local personnel as well as groups for Corp Purchasing etc.  For this to work we would need to Modify table TVPA which we don't want to do. Should this table even be modified?

 

We don't want to re-invent the wheel here....I am very sure there is a much simpler way to accomplish this without re-doing our whole org structure etc

 

Would appreciate your expert input

CMS not starting and unable to logon to CMC

$
0
0

Hello everyone,

 

We are facing the login issue with CMC in BO4.1 SP2 and below are the error message in CMC and logs from various files in the logging folder on the server.

 

Error message upon logon to CMC:

Account information not recognized: Could not reach CMS '<ServerName>'. The CMS on machine 'ServerName' was stopped due to a critical error. (FWM 20031)

 

Logs

 

file name: error_cms6400

35101The root server reported an error Initialization Failure. (Reason: The server has problems using TCP/IP. The port number you are using is probably already in use.).

 

file name:SIA_TPCBOBJ_trace.000001

Server Intelligence Agent: CMS <ServerName>.CentralManagementServer has failed and the Server Intelligence Agent has not been able to connect to the cluster. Please verify your CMS port and database settings are correct.

 

 

file name:cms_TPCBOBJ.CentralManagementServer_ncs

M  [Thr 9476] *** ERROR => NI raw handle failed to be initilized at IDEL to CONNECTED, connection to agent destination failed to be established  in agent 1 [ncsmtdatasen 137]

M  [Thr 9476] NCS_ProcExit API invoked

 

We tried all the steps 1 - 5 indicated by K Rahul RaoDec 30, 2014 6:57 AM  in the post http://scn.sap.com/thread/3672746but couldn't get the CMC back up.

 

Additional posts referred from scn:

https://scn.sap.com/docs/DOC-56772

http://scn.sap.com/thread/3435859

http://scn.sap.com/thread/3596909

 

Any pointers will be really helpful.

 

Thanks,

Anil

Revert / undo Embargo release

$
0
0

Hi everybody,

 

Got a question during a training that I could not answer: is it possible to undo the release of a document that was on Embargo?

I agree: the system asks whether you are sure you want to release, and you have said yes. But still that question came up, and would just like to know whether we can either undo a release in GTS, or retrigger the block out of the sales order.

 

Thanks in advance!

Deleting duplicated BEx variable

$
0
0

Hi everyone,

 

I'm not sure how, but we have to variables in one system with the same technical name. I need to delete the duplicate variable (that is not used) and keep the original (that is used). BEx query designer isn't allowing me to do so, as it says the variable is used elsewhere, but does not show any use in the 'Where used' list.

 

I have also attempted to delete the variable from the BW table RSZGLOBV but I am unable to enter change mode.

 

Is there another work around to do this?

 

Thanks,

Matt

Disrupt or Be Disrupted to Survive in Financial Services

$
0
0

Digitization has become one of the key sources of disruption occurring in the market today. Rather than becoming victims of it, banks and insurers have an opportunity to stay competitive by leading the disruption in today’s financial markets before non-traditional players take any more market share away from them.

 

This topic was discussed during a lively panel session at SAPPHIRE NOW this week. The panel featured Dan Latimore, SVP of Banking at Celent, Bob Cummings, SAP’s head of Insurance and Kari Escobedo, former IT leader from Starbucks and T-Mobile.

 

Key discussion points included:

- Death by 1,000 cuts: Technology firms, telco companies and retailers are attacking slices of the market, gradually taking market share away from banks and insurers.

No legacy of legacy: These non-traditional competitors have the advantage of facing less regulation and less legacy, freeing them up to take risks and try new models more nimbly than financial institutions.

Brand is the King and the Customer is the Queen: Most of these non-traditional players have higher brand loyalty than financial services brands, and are taking a customer-centric view to developing value adding services.

 

It’s clear that the disruption war is far from over, and financial institutions have an opportunity to join the innovation movement to protect their market share and tap into new sources of growth. The winners of this war, however, will be those that think in terms of holistic customer needs and experiences to deliver relevant and desirable offerings to their customer.

 

What sort of innovations can you envision the financial industry delivering by virtue of exploring new services and business models from a customer-centric point-of-view?

Error de Conección

$
0
0

Estimados,

 

Al momento de Ingresar me aparece el siguiente error:

 

"error connecting to the company database -119:Database server type not supported "

 

Alguien sabe a que se debe y como se corrige???

 

desde ya!.. Muchas Gracias


Did anyone create SAP Screen Personas Flavor for ME21N?

$
0
0

Was anybody able to use an enjoy transaction like ME21N or ME51N and hide all the tables and tabs and keep just few fields on the screen? Is there any trick for example to use a different transaction with initial screen, place few fields there and call a script recording from ME21N and bring back PO number to the initial screen.

 

Thank you,

Peter

HR Renewal MSS My Team - Employee card blank

$
0
0

Hello Experts,

We see a blank Employee card on the MSS landing page and also on the My Team detail view. Please check the attached screenshots. Even if the manager has SAP_ALL its the same issue.

 

Could you please help me fix this issue.

 

MSS My Team.jpg

Thanks much!

Testing with SimpleProxyServlet - changing service URL does not affect service requests

$
0
0

In this case I'm trying the MyTimesheet application.

 

I would like to test locally without pushing to the ABAP server after a change, using the "Java Web Tomcat 7 Server".

 

I'm following instructions here: Use a SimpleProxyServlet for Testing to Avoid Cross-domain Requests - UI Development Toolkit for HTML5 (SAPUI5) - SAP Li…

 

I can neither verify that the proxy is working, nor get the fiori app to use another service url despite changing every instance of the url in the app.

 

There's something like this in Configuration.js and Component-preload.js

 

  oServiceParams : {  serviceList : [ {  name : "HCM_TIMESHEET_MAN_SRV",  masterCollection : "Favorites",  serviceUrl : "/proxy/sap/opu/odata/sap/HCM_TIMESHEET_MAN_SRV/",  isDefault : true,  mockedDataSource : "/hcm.emp.mytimesheet/model/metadata.xml"  } ]  }

I think the syntax highlighting went wrong, but I'm just trying to put "/proxy" in front of the delivered "/sap/opu/odata/sap/HCM_TIMESHEET_MAN_SRV/"

 

Checking console errors in Safari I get this:

 

2015-05-06 19:04:06 Cannot load meta data for service /sap/opu/odata/sap/HCM_TIMESHEET_MAN_SRV/ - 404 (Not Found) - HTTP request failed

<html><head><title>Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /sap/opu/odata/sap/HCM_TIMESHEET_MAN_SRV/$metadata</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/sap/opu/odata/sap/HCM_TIMESHEET_MAN_SRV/$metadata</u></p><p><b>description</b> <u>The requested resource is not available.</u></p><HR size="1" noshade="noshade"></body></html> hcm.mytimesheet

 

The errors say it's trying to request the wrong service, despite me changing every place where it could be specified in the source.

 

I seem to have wasted a lot of time on this so it would be good to find someone who has managed to get this to work...

Workflow error : BUS2009-method SINGLERELEASENODIALG cannot be executed

$
0
0

Hi All,

 

Please help in analysing workflow issue.

Am a beginner in SAP workflow.

Working on first workflow object.

 

The issue is with PR having release strategy. There are 5
line items all having release strategy but only for few line items the user is
receiving the worklow in his SAP inbox.For all the 5 line item the approver is
same. And this PR is created on releasing the work order that have
non stock components.

 

User received workflow mails for line items 30, 40 and 50 for a particular PR.

But did not receive for line items 10 and 20.

 

Triggering event : BUS2009-RELEASESTEPCREATED.

 

Checked transaction SWEL. The workflow got triggered for all
line items.

 

Checked transaction SWIA.

Status shown as ‘Error’ for line item 10 and 20.

 

The error is : Work item 000074841055: Object 001346686200020
method SINGLERELEASENODIALG cannot be executed

Purchase requisition 13466862 00020 blocked

 

 

Any guess on what would be the cause of this error.

 

 

Kindly help.

 

Thank you,

Teena.

Workflow Log - expression issue in User Decision Step

$
0
0

Hello,

 

We have done (FR & DE) translations for a few Approval Workflows. The User decision steps in those workflows have Expression &Level& which holds an Incremented value for each Level numbers 01, 02, 03.....(incremented inside the loop or Block)

 

Issue is when a document is created in EN, it shows correct Expression values under Workflow Log but when the same document is seen in other Languages the Expression value gets messed up - it displays the highest(latest) value of the Expression.

 

E.g. below from a Workflow Log of Contract in ME33K

Workflow Log in EN.jpg

 

When same Contract is seen after Logging into any other Language other than EN, it shows 03(or the latest value) for all the Levels: E.g. below in French Language.

 

Workflow Log in FR.jpg

 

Similarly, when the Contract is created in FR, it displays correct Level numbers but shows incorrect nbrs for all the other Languages. Basically, it is bringing the latest value of &Level& from the Workflow container instead of from workflow step text.

 

Has anyone come across this issue? Please help.

 

PS: We have recently upgraded to EHP7 and I tried finding OSS notes, but did not get anything related.

Viewing all 9727 articles
Browse latest View live


Latest Images

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