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

Re: Case Insensitive Searches: How is the datawindow.table.select string put together?

$
0
0

Hi Christine,

 

I know you didn't want to do a lot of parsing, but this might be your best bet:

 

Assuming that the WHEREs you grab always follow this format:

     - the LIKE clause is surrounded by ()

     - the expression to the right of the LIKE always contains each character in UPPER and lower              case surrounded by []

 

This is what you need to do:

 

Create a function that receives the where clause as an argument and transform it into a non-case sensitive clause.

Your function will receive this:

  • WHERE (((dbo.Species.commoname like '%[Rr][Yy][Ee]%')))

and will return this:

  • WHERE (((UPPER(dbo.Species.commoname) like '%RYE%')))

 

Here is the function code:

 

//**************************************************************************

// Name: of_non_case_sensitive

//

// Purpose: Transform a SYBASE specific LIKE clause into a

// generic non sensitive SQL LIKE clause

//

// Argument Type Pass By Description

// --------- ---------- --------- ----------------------------

// as_clause string value SYBASE specific LIKE clause

//

// Return Type Description

// ----------- -------------------------------------------------------

// string Generic non sensitive SQL LIKE clause

//**************************************************************************

 

 

long ll_endpos = 0, ll_begpos = 0, ll_likepos

 

 

ll_likepos = POS(UPPER(as_clause), 'LIKE')

IF ll_likepos > 0 THEN

  DO

  ll_endpos = POS(as_clause, ']')

  IF ll_endpos > 0 THEN

  as_clause = LEFT(as_clause, ll_endpos - 2) + MID(as_clause, ll_endpos + 1)

  END IF

  LOOP WHILE ll_endpos > 0

 

  DO

  ll_endpos = POS(as_clause, '[')

  IF ll_endpos > 0 THEN

  as_clause = LEFT(as_clause, ll_endpos - 1) + MID(as_clause, ll_endpos + 1)

  END IF

  LOOP WHILE ll_endpos > 0

 

  ll_endpos = ll_likepos - 2

  ll_begpos = ll_endpos

  DO

  ll_begpos --

  LOOP WHILE MID(as_clause, ll_begpos, 1) <> '('

  as_clause = LEFT(as_clause, ll_begpos) + 'UPPER(' + MID(as_clause, ll_begpos + 1, ll_endpos - ll_begpos) + ')' + MID(as_clause, ll_endpos + 1)

 

END IF

 

 

 

 

RETURN as_clause

 

Now you just need to call this function to transform each one of the WHEREs you grabbed.

 

 

HTH,

 

Manuel.


Re: sales order replicated to ECC but not saved in CRM

$
0
0

Hi Sangameshwar,

 

I think your client has already implemented the functionality in this way. It's not an easy task to save the order in CRM when it's already set to get saved in R/3. If your delivery and other processing of orders are done in ECC, then usually client goes in this way.

 

The way to get order saved in CRM is, to create transactions and replicate the same to ECC via middleware. But this is not a quick doable thing.

 

Thanks,

Faisal

Validations on Table View fields

$
0
0

Hi ALL, We want to provide Mandatory fields/validations on 3 fields in table view. Initially when the view is loaded they should be highlighted with RED mark indicating them Mandatory and if the users presses enter with empty values, it should give message in application log.

 

Also this table view is in the guided activity page. So if the user clicks on the Next button in the Roadmap view, the validation in the loaded view should take place and restrict the user to navigate to Next screen with message in application log.

 

Thanks

Prasad

Message no. V1667 - Free goods

$
0
0

Hello experts,

 

I have gone through the forum but got a question about free goods.

 

How can I find out order reads which free goods condition record?

 

By the way, I tried "analysis" in order but the system just pops up an information message below. No further details are displayed.

 

Free goods analysis is switched on

Message no. V1667

 

Is it caused by 100% discount inactive for free goods? I mean, in my current system, no price condition type is for free goods in order.

Re: How to upgrade ECC with ChaRM in place?

$
0
0

Thanks and about handling changes with charm in both landscapes?. Any info about that?

 

cheers.

 

Mariano.

Re: CST not calculating on Delivery Charges

$
0
0

Hi,

   Could you please share the screenshot of GR accounting document.

 

Regards,

AKPT

Org Structure Isn't appearing in PPOM_OLD

$
0
0

Dear Gurus,

 

I'm getting a very stranger error, All OM object Id's were uploaded through LSMW by using PP02, but when i checked in PPOM_OLD to see org structure I'm unable to view the Org structure view & also I've checked the internal tables HRP1001 and PO10, PO13 & I can view the details. below is the following screens

 

Case 1 PPOM_OLD:

 

1 - S.png

here I'm unable to view the Sub-Org units details

 

Case 2 HRP1001:

1 - S1.png

here I'm able to view all the details with relationships maintained.

 

Case 3 PO10:

 

1 - S2.png

1 - S3.png

 

here I can also view the relationships. but I'm still unable to view in simple maintenance PPOM_OLD.

 

Kindly please provide me ur valuable Inputs.

 

Urs

 

Mohan

Datasource append and data display

$
0
0

Hi gurus,

 

I am aiming to add ZTAG1 from T052 into 0ven_compc_attr dss zztag1 field.

At T052 key fields are MANDT ZTAGG ZTERM.

I have ZTERM in the datasources structure.

 

 

 

 

 

My code is as below.

 

 

 

when '0ven_compc_attr'.

 

 

  clear: l_s_data_ven_comp.

  loop at i_t_data into l_s_data_ven_comp.

 

 

 

 

    select single ztag1 from T052

      into l_s_data_ven_comp-zztag1

      where ZTERM = l_s_data_ven_comp-zterm AND

            ZTAGG = ''.

 

 

 

 

 

     modify i_t_data from l_s_data_ven_comp.

 

I donno why the rsa3 shows column ZZTAG1 however no data on the column although at T052 ztag1 is assigned for one particular zterm.

 

the code is not also passing to debug mode.

 

I would appreciate anyıne's help on that topic.

 

Regards.

 

Eddy.


Re: Datasource 3FI_GL_XX_SI for Any Ledger not extracting data

$
0
0

Hi,

 

I think you have are checking in RSA3 of customizing client.. can you check in other client and i did recently the same and  there is no issue at all.

 

also what is the status  of the datasource in FAGLBW03.. it should be green.

 

Regards,

Rajesh

Re: add amount of 2 time wage type into 3rd wage type and send to payroll

$
0
0

Dear Sharma,

 

Kindly find below PCR will match your requirement.

 

Time type are: 9005, 9006

 

Time wage type: 4005 insert this PCR in TM00 schema.

 

1 - S.png

 

Ur's

Mohan

Re: While doing Return GR through movement type 122 wrong batch is appearing/determining

$
0
0

Is this a standard PO and normal GR ?

Can you please share screen shot ?

 

Regards

Dev

Re: developing portal on handheld device .

$
0
0

what is the right direction??

any advice?

Datasource for Basic profitability, fixed and variable costs

$
0
0

Hi,

Can you please help me in understanding what extractors are required for  Basic profitability, fixed and variable cost reporting?

 

Thanks.

Re: Datasource for trial balance

Problems using n_tr (PFC)

$
0
0

Hi,

 

I am using n_tr object. This is my script:

 

n_tr ltr_Trans

 

ltr_Trans = CREATE n_tr

ltr_Trans.Userid = 'UserCn'

ltr_Trans.DBPass = 'PwdCn'

ltr_Trans.LogID = ltr_Trans.Userid

ltr_Trans.LogPass = ltr_Trans.DBPass

 

ltr_Trans.DBMS = 'O10 Oracle10g (10.1.0)'

ltr_Trans.ServerName = 'SRV01'

 

ltr_Trans.DBParm = "PBDBMS=0,Async=1,DisableBind=1,DelimitIdentifier='No'"

 

if ltr_Trans.of_Connect() <> 0 then

  MessageBox('Access Level Look-Up Error', 'Error getting Security Access Level for user')

  Return FALSE

end if

 

The problem is when I assign the value to ltr_Trans.DBParm. During debugging when the variable value is assigned, the sqlerrtext shows: "Transaction not connected" and SQLCode = -1.

 

I don't see where is my problem.

 

Thanks in advance for your help.


Forecast beyond Phase Out Period

$
0
0

Hello,

 

We have product P1 with forecast values for next 12 months. We added a phase out profile recently to phase out this product after June 2014.   In phase out profile, we enabled the "After end date, apply constant factor" as "0%".

 

In planning area, we have the forecast setting to store the "corrected forecast" in a separate key figure.

 

When a univariate is run for this product, we see forecast values, "corrected forecast" values till June 2014 only, which is correct,  but when i save them, the corrected forecast values are copied till June 2014 only and values after June 2014 in Planning Book remain as such. They are not cleared out. 

 

I tried clearing the "corrected forecast" manually and ran again, but still the values somehow got populated again beyond phaseout period.  There are no macro's affecting this KF.

 

Any light thrown on this would be appreciated.

 

Thanks!!

Re: Convert Image to SOLIX

$
0
0

thank you for your answer

You think that i can convert image on SOLIX table format ? with another language (C# .NET) and use the module function as a web service?

 

 

thank you

Re: Block master t-code

$
0
0

Samiksha,

 

XK03 is a display transaction and does not update any tables. The only reason I can think of removing xk03 access and giving a Z tcode will be to hide certain sensitive fields (ie bank info, tax data etc).

 

To achieve this either use FK03/MK03 depending on your requirements. If that does not work, you can create a transaction variant using SHD0, and turn the requisite fields invisible. You can assign this variant to your Z tcode and remove authorization to XK03.

 

For update transactions like XK01 and XK02, you can define sensitive fields in the vendor master. Once a user changes these fields, the vendor gets automatically blocked for payment, until a superior/manager approves the changes and unblocks the vendor for payment. The config node is:

SPRO -> Financial accounting(new) -> AR and AP -> vendor accounts->master data -> prep. for creating vendor master data -> define sensitive fields for dual controlCapture.PNG

Re: SPAM looping in DDIC Activation

$
0
0

Just a quick message to thank you as my google search gave me this hit and solved my issue

Re: How to delete the last record of a particular field

$
0
0

If there are multiple entries for an invoice ( > 2 ) and you want to delete only the last entry - Copy Gangadhar Ragula's code. Insert one more variable, lv_count ( See the sample code below ) . Else If you want to keep only the first invoice and delete the rest , then implement the solution proposed by Manish.

 

DATA : lv_count TYPE i.

 

SORT gt_final BY belnr. (If not sorted before)

 

LOOP AT gt_final INTO gs_final.

   lv_count = lv_count + 1.

 

   AT ENDOF gs_final-belnr.

      IF lv_count > 1.

       gs_final-del_flag = abap_true.  "(Add this field to gs_final structure).

      ENDIF.

   clear lv_count.

   ENDAT.

 

   MODIFY gt_final FROM gs_final INDEX sy-tabix.

 

  ENDLOOP.


DELETE gt_final where del_flag = 'X'.

Viewing all 8676 articles
Browse latest View live




Latest Images