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

Re: How to call Oracle Package/Procedure in oData

$
0
0

Dear Midhun,

 

Thanks for your reply!

 

Yes, we are using the SMP3(SP07), also converted the JDBC to Odata for reading the data from Oracle Back-End System, its working perfectly fine. As I mentioned in the post, Is it possible to call the oracle package/procedure through oData(Data Source as JDBC).

 

Regards,

Tirupati


Create a attachment link for server based picture in BusinessObjects report

$
0
0

Hi all,

 

In businessObjects BI, I try to create an attachment link for server based picture in BusinessObjects report

 

When I try to retrieve the attachment link from Query, its return as below:

 

(Sample) \\SERVER01\attachment\Picture_314

 

but the expected results should return as

 

(Sample) http://SERVER01/Core/Attachments/ShowAttachment.aspx?AttachmentKey=9413

 

When the user try to click on link -> \\SERVER01\attachment\Picture_314

 

They cannot see the attachment picture, even I see the picture by the server link.

 

Your advise would be greatly appreciated.

 

 

Thanks and regards,

Wilfred.

Re: Role Import - deactivate Busines Process/ SBP mapping

$
0
0

Hello Kamaraju,

 

You need to do this via Abapers as its not given as standard functionality.

 

However, these are attributes whcih you can utilize while building Workflows and decision tables and lot many ways to design your security approach.

 

Rajesh

Unable to Activate Transformation

$
0
0


Hi

 

I am not able to activate one transformation. The related DTP is also inactive.

 

 

In the version management there is no recent transport on these objects or any dependent objects.

 

When i try to activate DTP it says Trfn is inactive. The DTP is showing inactive and not executable

 

When i try to activate TRFN through program i get below error. The trfn is also not executabel.

 

At the i moment i cant figure out what changed the status , but i want to activate these objects. Pl help

 

trfn.png

SAPScript - word-split after printing 72chars

$
0
0

Hi,

 

We have this problem in our Solman prod system that emails are generated with email body having words splitted-up by a new line, after printing 72chars in the line. This issue doesn't happen in our Solman dev system. I compared the SAPScript form which generates the email, and they are the same form.

Any idea what configuration or settings I need to change in prod to fix this?

 

Thanks,

Tess

 

SAPScript word split.jpg

Re: how to convert LIST_FROM_MEMORY output as an .xlsx attachment in mail

$
0
0

Please check the below code for some help.

 

FORM p_send_email. "Commented for testing

FIELD-SYMBOLS: <field> TYPE any.

DATA: p_email(50) TYPE c VALUE 'sap.help@orientalrubber.com'.

DATA :

BEGIN OF i_dload OCCURS 0 ,

dload(1000) ,

END OF i_dload ,

it_receivers LIKE somlreci1 OCCURS 1 WITH HEADER LINE,

w_object_content LIKE solisti1 OCCURS 1 WITH HEADER LINE,

w_doc_data LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE,

w_rsnum(10),

w_bdmng(14),

w_meins(4),

*---for e_mail address

ws_email TYPE adr6-smtp_addr,

*--Internal table declaration

it_objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE,

it_objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,

it_objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,

it_objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,

it_reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE,

doc_chng LIKE sodocchgi1,

tab_lines LIKE sy-tabix,

w_longtext(255) TYPE c,

v_date(10) TYPE c,

text(200) TYPE c,

w_text(50) TYPE c,

*---declaration for diaplaying msg in the body of mail.

w_msga(18) TYPE c,

w_msgb(22) TYPE c,

w_msgc(27) TYPE c.

DATA: w_filename(27) TYPE c.

*--Get receipient address

CLEAR it_reclist.

*---passing e_mail address

ws_email = p_email.

*---setting name of file for csv

CONCATENATE 'file data ' sy-datum sy-uzeit INTO w_filename.

 

IF ws_email IS NOT INITIAL.

* build body of message

CONCATENATE 'Dear All,' ' ' INTO it_objtxt

SEPARATED BY space.

APPEND it_objtxt.

CLEAR it_objtxt.

APPEND it_objtxt.

CONCATENATE 'Please check attached file' ' ' INTO it_objtxt

SEPARATED BY space.

APPEND it_objtxt.

CLEAR it_objtxt.

APPEND it_objtxt.

CONCATENATE 'Regards,' ' ' INTO it_objtxt

SEPARATED BY space.

APPEND it_objtxt.

CLEAR it_objtxt.

it_objtxt = sy-uname.

* CONCATENATE 'Display Message' ' ' INTO it_objtxt

* SEPARATED BY space.

APPEND it_objtxt.

CLEAR it_objtxt.

it_reclist-receiver = ws_email.

it_reclist-rec_type = 'U'.

it_reclist-express = ' '.

it_reclist-com_type = 'INT'.

APPEND it_reclist.

ws_email = 'test@abc.com'. " Put actual Email here

it_reclist-receiver = ws_email.

it_reclist-rec_type = 'U'.

it_reclist-express = ' '.

it_reclist-com_type = 'INT'.

APPEND it_reclist.

*--Set title of object and email

CLEAR: w_text.

CONCATENATE 'testin on' sy-datum sy-uzeit INTO doc_chng-obj_descr.

* doc_chng-obj_descr = 'Error List for Swipe In/Out'.

doc_chng-obj_name = 'INBOUND'.

DESCRIBE TABLE it_objtxt LINES tab_lines.

READ TABLE it_objtxt INDEX tab_lines.

doc_chng-doc_size = ( tab_lines - 1 ) * 255 + strlen( it_objtxt ).

*--Move the Report Name as the Heading line for email file

CLEAR: w_longtext.

w_longtext = 'Testing data'.

it_objbin = w_longtext.

APPEND it_objbin. CLEAR it_objbin.

*--Append Blank Lines

APPEND it_objbin. CLEAR it_objbin.

APPEND it_objbin. CLEAR it_objbin.

**--User name

CLEAR text.

MOVE: 'User:' TO text,

sy-uname TO text+6.

it_objbin = text.

APPEND it_objbin. CLEAR it_objbin.

* ---appending heading to Internal table of Email

CONCATENATE 'heading' 'Message'

INTO w_longtext SEPARATED BY ','.

it_objbin = w_longtext.

APPEND it_objbin. CLEAR it_objbin.

LOOP AT gt_error INTO wa_error.

DO.

ASSIGN COMPONENT sy-index OF STRUCTURE wa_error TO <field>.

IF sy-subrc <> 0.

EXIT.

ENDIF.

* Look for Commas in the field value. If it exists, put quotes around

* value so that the file opens correctly with all the columns aligned

* in Excel.

SEARCH <field> FOR ',' IN CHARACTER MODE.

* If search for commas are successful.

IF sy-subrc = 0.

CONCATENATE '"' <field> '"' INTO <field> IN CHARACTER MODE.

ENDIF.

IF sy-index = 1.

i_dload-dload = <field>.

SHIFT: i_dload-dload LEFT DELETING LEADING space.

ELSE.

* Put Comma as a separator for values in IT_DLOAD internal table

SHIFT: i_dload-dload LEFT DELETING LEADING space.

CONCATENATE i_dload-dload <field> INTO i_dload-dload

SEPARATED BY ',' IN CHARACTER MODE.

ENDIF.

ENDDO.

it_objbin = i_dload-dload.

APPEND it_objbin. CLEAR it_objbin.

ENDLOOP.

ENDIF.

* ENDIF.

*Convert to correct format

CALL FUNCTION 'SO_RAW_TO_RTF'

TABLES

objcont_old = it_objbin

objcont_new = it_objbin.

* create the control table entry for the main email

DESCRIBE TABLE it_objtxt LINES tab_lines.

CLEAR it_objpack-transf_bin.

it_objpack-head_start = 1.

it_objpack-head_num = 0.

it_objpack-body_start = 1.

it_objpack-body_num = tab_lines.

it_objpack-doc_type = 'RAW'.

APPEND it_objpack.

DESCRIBE TABLE it_objbin LINES tab_lines.

it_objpack-head_start = 1.

it_objpack-head_num = 0.

it_objpack-body_start = 1.

it_objpack-body_num = tab_lines.

it_objpack-transf_bin = 'X'."'C'.

it_objpack-doc_type = 'CSV'.

it_objpack-obj_descr = w_filename.

it_objpack-obj_name = 'BILLING'.

it_objpack-doc_size = tab_lines * 255.

APPEND it_objpack.

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

document_data = doc_chng

* PUT_IN_OUTBOX = c_x

commit_work = 'X'

TABLES

packing_list = it_objpack

* object_header = it_objhead

contents_bin = it_objbin

contents_txt = it_objtxt

receivers = it_reclist

EXCEPTIONS

too_many_receivers = 1

document_not_sent = 2

operation_no_authorization = 4

OTHERS = 99.

IF sy-subrc <> 0.

WRITE: / 'failure in sending mail'.

ELSE.

WRITE: / 'Success in sending mail'.

ENDIF.

ENDFORM. " p_send_email

 

Hope this helps.

Standard Fiori application, local testing and SimpleProxyServlet - doesn't work

$
0
0

Hello!

 

Trying to test a standard Fiori application in Eclipse using Tomcat 7.0.

 

I've use all available guides and googled it intensively, but it seems that SimpleProxyServlet doesn't work for me.

 

So my web.xml contains:

 

<servlet>

  <servlet-name>SimpleProxyServlet</servlet-name>

  <servlet-class>com.sap.ui5.proxy.SimpleProxyServlet</servlet-class>

</servlet>

 

<servlet-mapping>

  <servlet-name>SimpleProxyServlet</servlet-name>

  <url-pattern>/proxy/*</url-pattern>

</servlet-mapping>

 

<context-param>

  <param-name>com.sap.ui5.proxy.REMOTE_LOCATION</param-name>

  <param-value>http://mycompanyurl.ru:8000</param-value>

</context-param>


Component-preload.js:

---cut----


"hcm.emp.payslip.Configuration",

  {

  oServiceParams : {

  serviceList : [ {

  name : "SRA006_SRV",

  masterCollection : "Payslips",

  serviceUrl : "HCM_PS_MON/proxy/sap/opu/odata/sap/SRA006_SRV/",

  isDefault : true,

  mockedDataSource : "/hcm.emp.payslip/model/metadata.xml"

  } ]

  },


---cut----


I've tried various options like   serviceUrl : "/proxy/sap/opu/odata/sap/SRA006_SRV/",   serviceUrl : "proxy/sap/opu/odata/sap/SRA006_SRV/",   but nothing helps.


Where should I put my vision to solve that strange behavior?

Re: Where I can find message Server audit log file (ms/audit=3)?

$
0
0

Are you sure that it is something related to SCN support forum ?

This forum is specified only for SCN related issue not SAP. Did you check the SCN Site Index to find appropriate forum for your discussion ?


Re: How execute report in after 15 seconds

$
0
0

Hello Gopi,

check program SAP_TIMER_DEMO which is good sample for your needs.

You can easily find it (and other usages) by use "Where used" of constructor method...

Re: How execute report in after 15 seconds

$
0
0

3/4th the program logic in there.

 

You should add a button and call a method.

1) At the initialisation of the report set the button properties to invisible
   with a loop at screen statement.

  Capture the +15secs time

 

2) Inside the handler for the submit finished, check if the +15 secs time frame is met

    write another loop at screen to make the button visible

    Now, write a Submit to the report.

 

Best Regards,

Remi

Re: Performance improvement with Select or LOOP with WHERE clause

$
0
0

Hi Venkata

 

How many records are you wanting to extract in general?

 

Regards

 

Arden

Re: Offcycle Workbench 0267 Issue

$
0
0

Hi Praneeth/Sankersan Dey

 

Offcycle workbench is working fine but my scenario is we are giving salary advance 10 days before and for that particular month it should show zero amount or it shouldnt process payroll for that period Below is the process that i have followed please help me out on this

 

Executed for 01.05.2015  The total gross amount is 2,23,238 Done Live run

 

1.JPG

 

 

 

 

Did off cycle work bench for the period that is on 20.06.2015 The amount populated in /101, /550 and /559  that is  223,238 The info type 0267 created  automatically after doing off cycle workbench

 

When i executed for same employee on Regular run that is on 01.06.2015 period I can see below error According to Scenario Already we made Payment 223238 on 20.06.2015  when i execute regular payroll i can see below error

2.JPG

 

In Display Log Checked for 01.06.2015 period The payroll shouldnt execute or it  should show Total gross amount Zero  But i can see 3,34,036 I wonder How this amount has come

3.JPG

 

Did live run for 01.06.2015 and executed for 01.07.2015 I can see difference /552 334036 and /559 payment should be 562,091 Its is completely wrong It should show /559 and /560 2,23,238 but i can see 562091 which is wrong

 

 

4.JPG

Re: How to make visible original number when transfer call?

$
0
0

Hello Dawood,

 

Yes, as i mentioned below, R-number enabling was helpful for cold transfer.

But there is another request from customer - to make such a functionality in warm transfer...

 

Trying to investigate this at the moment.

 

Best regards,

Sasha

Re: New Button Not Visible

$
0
0

Please check if the Thing Type Properties are set properly for the button. May be post a screenshot of the properties.

 

Thanks & Regards,

Meghna

Re: error message from bdcmsgcol of BDC.

$
0
0

Hi Yogendra,

 

I have written the code as

 

Types: begin of y_final

Matnr type mara-matnr,

msg type msgv1.

end of y_final.

 

now i have  a doubt of how do i use it in field catalog,

Please help.


Re: Add a custom column in standard SAP portal screen

$
0
0

Hi Rama,

 

I have found the DDIC structure HAP_T_WD_DOCUMENTS for this, but this is tagged as "Cannot Be enhance' and so I am not able to add new fields to this structure.Is there any other option?

 

Please suggest.

 

 

Thanks,

Suchi.

Re: INTERNAL ERROR IN BELOW QUERY

$
0
0

Hi Eric,

ok Sir,

Any Solution to correct this problem

Regards

Karthick

Re: Division of packed from same type = zero

$
0
0

Hi Pavan,

 

ty for your answer.

I'm in conditions and fixed point arithmetic is disabled in functiongroup V61A. So I think I can't change the fixed point arithmetic flag and also I don't know if it shall be by SAP that the fixed point aritmethic is enabled for this functiongroup.

 

So is there a reason, why SAP has disabled this flag for this coditioning?

 

For now, I would do the calculation in a method where the class has the fixed point flag set.

 

 

Regards,

Shkelzen

Re: Design Studio 1.3 SDK - Passing a value into Design Studio from a SDK component. How?

$
0
0

Hi Armando,

 

Since this thread is now closed and your last issue is really a new question, I'd suggest opening a new discussion with an example of your problem so it gets better visibility and community feedback accordingly.

 

Regards,

 

Mustafa.

Re: how to calculate Tenants/customers Utility consumption on SAP

Viewing all 8676 articles
Browse latest View live




Latest Images