Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all 10425 articles
Browse latest View live

Re: Copy BADI for organizational data on item level

$
0
0

Hi Andreas,

I see in               IF_EX_CRM_COPY_BADI~ORGMAN

VALUE( IS_ORDERADM_I )

VALUE( IS_REF_ORDERADM_I )

 

There is an Item ref and current item parametes in the badi ..Did you put a breakpoint here and checked the outcome by maintaining customizing settings

at item level..

Not sure of your fields what you want to change at item level of org ..

 

I cant guage your requirement but there is also method for items  Method ORDERADM_I is there

If this method dosen't work then you need to take care in some other BADI or FM ..

 

Br,

Vijay

 

Please move this query to CRM group ..


Re: Check the change log for message text in SE91

$
0
0

Try transaction SE95."The Modification Browser"

 

Regards,

Raymond

Re: Help with a BW Start Routine

$
0
0

Insurethat allthe weeksare alwaystransmitted in the samepacket. Then, if required SORT the package, loop at the package and  sum values and increment a counter when stock not zero, at end divide sum by counter and use a MODIFY itab lines statement.

 

Regards,

Raymond

Re: Inserting duplicates into table

$
0
0

Hi Egemen,

 

In your case use MODIFY instead of INSERT.

basic difference between INSERT, UPDATE & MODIFY --

INSERT: when new record has to inserted into table.

UPDATE: When record in present in table & need to be change.

MODIFY: this combination of both Insert & Update, means if record is not present it will add the record into table otherwise it will update the existing record without inserting again.

 

For more information check these link.

Link1

Link2

 

Regards,

Jyoti

How to read a PREL_DATEN Field

$
0
0

Hi,

 

In an IT,  I have a Field,  and its type is PREL_DATEN , I would like to know how to get the information from this field.

 

Any idea.

 

Thanks!!

Re: Selections variant with tabstrips

$
0
0

Hello Markus,

 

I have never had an issue with using tabbed selection screens and variants.

 

Can you provide more information?

 

Regards,

Kim

Re: Help with a BW Start Routine

$
0
0

Hello,

 

you have to use LOOP.......ENDLOOP statement.

 

if stock ne 0.

sum = stock + sum.  sum is a variable.

 

endif.

 

at last, sum value is total stock 25558745.

 

for average : use: sum / 52.     

 

Thanks

Sabyasachi

Re: SAP SCRIPT - change the output language

$
0
0

Hi Murali,

 

Why not store the English text as a standard text element and then pull it in with an include statement.

 

For example:

/:  INCLUDE Z_SETTLE_GI  OBJECT TEXT ID ST LANGUAGE E.

 

Regards,

Kim


Re: Help with a BW Start Routine

$
0
0

Hello,

at 1st try to enhance total stock and avg stock  in datasource (rsa6) on selective datasource in ecc site, i think loading performence will be better then start routine execute in bi site. if it is not possible then try to use the code in start routine.

 


that means customizing datasource.

 

for loading pourpose in bw site use end routine for better perfomence.

Thanks

Sabyasachi

 

Message was edited by: Sabyasachi Karforma

Re: Restirct table entries

$
0
0

Hi Srilatha,

 

I am puzzled as to why users are using SE11 & SE16.

 

To control the display of table entries:

1.  Eliminate access to SE11 and SE16.

2. Create view(s) of the tables.

3. Create a parameter transaction that calls t-code SM30 for the table.

4. Restrict the disply by customizing table event AA or use of authorization groups.

 

Regards,

Kim

Email body is turned into an attachment

$
0
0

Hi!

I hope some of you might help me to find out this issue...

I made an e-mail sender, it is working properly.

I check the email in SOST, it seems OK.

But after the e-mail lands in my gmail account, the text (Apple, banana, cake) disappears from the e-mail body and it is turned into an attachment (Shopping list.HTM).

There's a new text in the email's body: "Create a standard text for the disclosures.". I found it comes from SODIS transaction, but I don't know does it cause the problem or not?

 

Here's the code, simply copy-paste it, it is working...

REPORT  ztest_nyt.

* e-mail section
DATA: gv_mlrec         TYPE so_obj_nam,
       gv_sent_to_all   TYPE os_boolean,
       gv_email         TYPE adr6-smtp_addr,
       gv_subject       TYPE so_obj_des,
       gt_text          TYPE bcsy_text,
       go_send_request  TYPE REF TO cl_bcs,
       go_bcs_exception TYPE REF TO cx_bcs,
       go_recipient     TYPE REF TO if_recipient_bcs,
       go_sender        TYPE REF TO cl_sapuser_bcs,
       go_document      TYPE REF TO cl_document_bcs,
       go_attachment    TYPE REF TO cl_document_bcs.

DATA: lt_tline TYPE STANDARD TABLE OF tline,
       ls_tline LIKE LINE OF lt_tline.
*

TRY.
     "Create send request
     go_send_request = cl_bcs=>create_persistent( ).

     "Email FROM...
     go_sender = cl_sapuser_bcs=>create( sy-uname ).
     "Add sender to send request
     CALL METHOD go_send_request->set_sender
       EXPORTING
         i_sender = go_sender.

     "Email TO...
     gv_email = 'xyz@gmail.com'.
     go_recipient = cl_cam_address_bcs=>create_internet_address( gv_email ).
     "Add recipient to send request
     CALL METHOD go_send_request->add_recipient
       EXPORTING
         i_recipient = go_recipient
         i_express   = 'X'.

     "Email BODY
     MOVE 'Apple' TO ls_tline-tdline. APPEND ls_tline TO lt_tline.
     MOVE 'Banana' TO ls_tline-tdline. APPEND ls_tline TO lt_tline.
     MOVE 'Cake' TO ls_tline-tdline. APPEND ls_tline TO lt_tline.

     REFRESH: gt_text.
     LOOP AT lt_tline INTO ls_tline.
       AT FIRST.
         APPEND '<html>' TO gt_text.
       ENDAT.
       CONCATENATE ls_tline-tdline '<br>' INTO ls_tline-tdline.
       APPEND ls_tline-tdline TO gt_text.
       AT LAST.
         APPEND '</html>' TO gt_text.
       ENDAT.
     ENDLOOP.
     MOVE 'Shopping list' TO gv_subject.
     go_document = cl_document_bcs=>create_document(
                     i_type    = 'HTM'
                     i_text  = gt_text
                     i_subject = gv_subject ).

     "Add document to send request
     CALL METHOD go_send_request->set_document( go_document ).

     "Send email
     CALL METHOD go_send_request->send(
       EXPORTING
         i_with_error_screen = 'X'
       RECEIVING
         result              = gv_sent_to_all ).
     IF gv_sent_to_all = 'X'.
       COMMIT WORK.
     ENDIF.

     "Exception handling
   CATCH cx_bcs INTO go_bcs_exception.
     WRITE:
       'Error!',
       'Error type:',
       go_bcs_exception->error_type.
ENDTRY.

 

I would like to keep my text in my e-mail body.

 

Thank you

Tamas

Re: USER EXIT ZXPADU02

$
0
0

Hi Gaurav,

 

Normally, you can update Qxxxx fields in infotypes with a code like this:

 

data:fieldname(25) type c value '(MP200000)Q2000'.

        field-symbols: <fs> type Q2000.

 

        ASSIGN (fieldname) TO <fs>.

         MOVE '5' to <fs>-ANZHL.

 

Unless, in your case, the system will change the value in the ZXPADU02 but will then overwrite your value in program MP200040 FORM display

 

FORM display USING di_abrtg di_abrst di_ktart di_zeinh.

   IF di_zeinh EQ hours.

     MOVE di_abrst TO q2000-anzhl.

*  else.                                               

   ELSEIF di_zeinh EQ days.           

     MOVE di_abrtg TO q2000-anzhl.

   ELSE.                           

     CLEAR q2000-anzhl.          

   ENDIF.

 

I am not a Time expert but I don't think it's a good idea to change this value in the user exit infotype.

It's a calculated field and you can maybee solve your problem in Time configuration.

Re: USER EXIT ZXPADU02

$
0
0

Hi,

 

If you're in the PAI (ZXPADU02), you can change the internal value of IT2001 that will be refresh on the PBO.

 

The code should be like:

CASE innnn-infty.

WHEN '2001'.

CALLMETHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn

     EXPORTING

       prelp = innnn

     IMPORTING

       pnnnn = i2001.

 

MOVE XXX TO P2001-ANZHL.

 

CALLMETHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp

     EXPORTING

       pnnnn = i2001

     IMPORTING

       prelp = innnn.

 

ENDCASE.

 

 

Best regards,

Jonathan

Re: Color a particular cell in alv grid when there are more than one table

$
0
0

Hello,

I think you first generate your it_final table correctly. For cell color the code is already there but you have put your code outside of the loop of IT_FINAL. Put inside the loop then only it will satisfy

 

ld_index = lv_ine.

 

Thanks,

 

Abhijit

Re: How to include multiple message class in a report?

$
0
0

We can't use the multiple message id's with REPORT like:extension but we can use multiple message classes directly  i hope (not sure ) .

 

Regards

Mahesh .


Re: USER EXIT ZXPADU02

$
0
0

DEAR JONATHAN,

 

first of all 'THANX' for replying

 

i have used this and it is working for all field of pa2001 but the feild that i want to update is q2000-anzhl  which is not part of pa2001 or innnn,

it belongs to structure q2000 and i want to update this field in pbo , but i am unable to do this with this method.

 

regards

Custom Info structure not getting updated

$
0
0

HI ALL,

 

We are using a custom info structure for storing the last 20 documents. These documents include sales orders, billing documents, sales activities.

 

This info structure gets updated whenever these documents are created.

 

The update mode for this info structure was changed from V1 update mode to V2 update mode.

After this sales orders, billing documents are getting updates in this info structure.

But the sales activities are not getting updated.

The modules that update this info structure is are called as update tasks.

 

Whenever I activate update debugging the info structure gets populated with sales activity number. But if I run it directly without update debugging it is not updating the info structure.

 

Can anyone tell me whats the reason for this behavior?

 

The info structure is populated through enhancements to standard programs. I have tried to use explicit commit work and wait up to 90 seconds, but this doesnot change the behavior.

Re: How to include multiple message class in a report?

$
0
0

We can't use the multiple message id's with REPORT like:extension but we can use multiple message classes directly  i hope (not sure ) .

 

Of course we can. Read the syntax description of MESSAGE and become sure.

Dynamic data into Sm30

$
0
0

Hi, I have created dynamic selection screen using the FM's FREE_SELECTIONS_INIT & FREE_SELECTIONS_WHERE_2_EX. From these FM's I'm getting the WHERE condition to perform SELECT query. I want to show the data which we fetch for this WHERE condition in SM30. For this I'm calling SM30 thru the FM VIEW_MAINTENANCE_CALL. I have created FORM inside the TMG Event 'AA' and got the entries into TOTAL table by calling the sub-routine TABLE_GET_DATA. This TOTAL table is having all the entries. I want to show the entries in SM30 for the WHERE_CLAUSES of this dynamic selection. Thanks & Regards, Adithya M.

Re: ALV print preview different from report

$
0
0

Hi Purnand,

 

when you print preview an ALV Grid, it become a List ALV for print.

This is normal. The only problem I can see is the size of page for printing where not all columns fits in a single row.

But this you can change in print options.

 

Regards,

Frisoni

Viewing all 10425 articles
Browse latest View live


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