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

Re: How could I "feature" a SCN content on my own blog?

$
0
0

Hi,

 

If this topic isn't already covered by one of the 400+ SCN spaces, please create a formal space request using the instructions I'll send you offline (eMail).

 

Thanks,

 

Jason


Re: SOAP to RFC synchronous scenario..

$
0
0

Hi,

 

Create service interface with synchronous mode, choose request and response message structure in both side. Create the sender soap channel with quality of service as best effort.

 

Regards,

Manigandan

reconsiliation of challan qty.

$
0
0


Hello Guys,

 

I have a issues regarding subcontracting challan reconsilation.

 

it is showing errors the material doc "x" does not have materials relevent for subcontrg.

 

 

kindly guide me regarding this issues.

 

with regards,

sanjay agarwal

what is lead in sap crm ? and how to create lead ???

Re: Storage unit

$
0
0

Strategy B represent Bulk storage where in one bin you can have multiple SU. You need to confirm which SU are planning to pick. During physical picking also you are supposed to confirm the system which SU are you picking so from system / picking  perspective it is fine for the system to prompt you to enter the SU

Re: SQL server error log alerts from solman: G:No errors

$
0
0

Hi Roland,

 

Thank you for the notes.

2011421 I have found as well, and is not related to my issue.

2006729 and the notes supplied in this note also do not seem relevant to my issue.

 

My issue: Solution Manager reports : "G:No errors" , and it looks like because the word "error: is in here, solman thinks it is an error.

I cannot find this text in the SQL error log itself.

 

Here a screenshot of the alert in the alert inbox:Knipsel.JPG

Re: Function module to update the pricing discount in a campaign

$
0
0

Hi Deepika,

 

Did you find any way to update the discount pricing in camapign.

 

 

Thanks,

Satya

Re: Reschedule an outlook meeting in SAP ABAP

$
0
0

I send you the code of a function module ZVC_NOTIFY_APPOINTMENT that changes an appointment. Function receives the iCalendar method in parameter I_METHOD (in your case, REQUEST).

Obviously, as you know, the code may not suit 100% to your specific needs because the exact business scenario may require more or less functionality.

 

Hope it helps.

 

 

 

 

FUNCTION zvc_notify_appointment.
*"----------------------------------------------------------------------
*"*"Módulo funciones actualiz.
*"
*"*"Interfase local
*"  IMPORTING
*"     VALUE(I_CONTACT_DATA) TYPE  VBKA
*"     VALUE(I_SEQNR) TYPE  SC_SEQNR OPTIONAL
*"     VALUE(I_METHOD) TYPE  CHAR20
*"----------------------------------------------------------------------

INCLUDE <cntn01>.
TYPE-POOLS: sccon.

DATA lo_appointment TYPE REF TO cl_appointment.
DATA lt_text TYPE so_txttab.
DATA ls_text LIKE LINE OF lt_text.
****************************************************************
DATA: lv_message TYPE bcsy_text,
lv_send_result
TYPE c,
lo_receiver
TYPE REF TO if_recipient_bcs,
lo_email
TYPE REF TO cl_bcs, lt_attachment TYPE soli_tab,
lo_document
TYPE REF TO cl_document_bcs, lx_exception TYPE REF TO cx_bcs.

DATA: lwa_contacto TYPE scgenappt,
l_inter     
TYPE kunnr,
l_intertxt  
TYPE name1_gp,
lit_txtbody 
TYPE so_txttab.
DATA: lit_lines TYPE TABLE OF tline,
lwa_lines
TYPE tline.

DATA:l_id LIKE  thead-tdid,
l_name    
LIKE  thead-tdname,
l_object  
LIKE  thead-tdobject.

DATA l_stamp TYPE string.
DATA l_sequence(4) TYPE c.
DATA ls_appt_data TYPE scsappt.

" DATA:wa_email LIKE t_email.

DATA: lv_row TYPE so_text255,
lv_cnt_nn
TYPE n LENGTH 2,
lv_blank_tt
TYPE c LENGTH 2 VALUE '',
lv_date_from
TYPE sc_datefro,
lv_time_from
TYPE sc_timefro, lv_date_to TYPE sc_dateto,
lv_time_to
TYPE sc_timefro.

DATA:l_subject TYPE sood-objdes,
l_auxinter
(10),
l_auxclase
(20),
l_idcontac
(4).
DATA lv_appt_guid_str TYPE string.
DATA lv_appt_guid TYPE sc_appguid.

" Register date
DATA l_reg_date TYPE datum.

DATA l_pernr TYPE pernr_d.

DATA: l_uname      LIKE pa0105-usrid,
l_uname12   
LIKE pa0105-uname.
DATA l_email TYPE text40.

DATA l_appt_id TYPE sc_genappt.
DATA l_exit_info TYPE sc_exitinf.

DATA lv_org_mail TYPE adr6-smtp_addr.
DATA:lo_sender TYPE REF TO if_sender_bcs.


CONSTANTS: c_parvw TYPE parvw VALUE 'ZM',
c_posnr
TYPE posnr VALUE '000000'.


CLEAR lv_message.

" Get appointment data from DDBB
l_exit_info
= i_contact_data-vbeln.
SELECT SINGLE genappt_id
FROM scgenappt
INTO l_appt_id
WHERE exit_info EQ l_exit_info.
CHECK sy-subrc EQ 0.


CREATE OBJECT lo_appointment
EXPORTING
internal_id
= l_appt_id.

CALL METHOD lo_appointment->get_guid
RECEIVING
guid
= lv_appt_guid.

*  CALL METHOD lo_appointment->get_date
*    IMPORTING
*      date_from = lv_date_from
*      time_from = lv_time_from
*      date_to   = lv_date_to
*      time_to   = lv_time_to.

" Only send notification if appointment date
" is not before creation / modification date.
lo_appointment
->get_data( IMPORTING appointment_data = ls_appt_data ).
*  IF ls_appt_data-change_dat IS NOT INITIAL.
*    l_reg_date = ls_appt_data-change_dat.
*  ELSE.
*    l_reg_date = ls_appt_data-entry_dat.
*  ENDIF.
*  CHECK l_reg_date LE lv_date_from.
*
*  lv_appt_guid_str = lv_appt_guid.

TRY.

lv_row
= 'BEGIN:VCALENDAR'.
lv_cnt_nn
= STRLEN( lv_row ).
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.


CLEAR lv_row.
lv_row
= 'VERSION:2.0'.
lv_cnt_nn
= STRLEN( lv_row ).
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.

CLEAR lv_row.
CONCATENATE 'METHOD:' i_method INTO lv_row.
lv_cnt_nn
= STRLEN( lv_row ).
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.

lv_row
= 'BEGIN:VEVENT'.
lv_cnt_nn
= STRLEN( lv_row ).
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.

CLEAR lv_row.
lv_row
= 'UID:'.
CONCATENATE lv_row l_appt_id INTO lv_row.
lv_cnt_nn
= STRLEN( lv_row ).
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.

IF i_seqnr IS NOT INITIAL.
l_sequence
= i_seqnr.
ELSE.
l_sequence
= ls_appt_data-sequence.

ENDIF.

CLEAR lv_row.
CONCATENATE 'SEQUENCE:' l_sequence INTO lv_row.
CONDENSE lv_row NO-GAPS.
lv_cnt_nn
= STRLEN( lv_row ).
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.
CLEAR:lv_row.

" Build timestamp with current time
CLEAR l_stamp.
CONCATENATE 'DTSTAMP:' sy-datum(4) sy-datum+4(2) sy-datum+6(2) 'T' sy-uzeit 'Z' INTO l_stamp.
lv_row
= l_stamp.
lv_cnt_nn
= STRLEN( lv_row ).
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.

*      IF i_method EQ 'REQUEST'.
*        CLEAR lv_row.
*        CONCATENATE 'ORGANIZER:' lv_org_mail INTO lv_row.
*        lv_cnt_nn = STRLEN( lv_row ).
*        CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
*        APPEND lv_row TO lt_attachment.
*      ENDIF.

" IF i_method EQ 'REQUEST'.
CLEAR lv_row.
CONCATENATE 'DTSTART:' i_contact_data-ktabg 'T' i_contact_data-ktabt INTO lv_row.
" lv_row = 'DTSTART:'.
" CONCATENATE lv_row lv_date_from 'T' lv_time_from 'Z' INTO lv_row.
lv_cnt_nn
= STRLEN( lv_row ) .
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.

CLEAR lv_row.
CONCATENATE 'DTEND:' i_contact_data-ktaen 'T' i_contact_data-ktaet INTO lv_row.
" lv_row = 'DTEND:'.
" CONCATENATE lv_row lv_date_to 'T' lv_time_to 'Z' INTO lv_row.
lv_cnt_nn
= STRLEN( lv_row ) .
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.

IF i_method EQ 'CANCEL'.
lv_row
= 'STATUS:CANCELLED'.
lv_cnt_nn
= STRLEN( lv_row ).
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.
ENDIF.


IF i_method EQ 'REQUEST'.
lv_row
= 'SUMMARY:Cita Outlook'.
ELSEIF i_method EQ 'CANCEL'.
lv_row
= 'SUMMARY:SMI Duty cancellation'.
ENDIF.
lv_cnt_nn
= STRLEN( lv_row ).
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.

*      lv_row = 'STATUS:CANCELLED'.
*      lv_cnt_nn = STRLEN( lv_row ).
*      CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
*      APPEND lv_row TO lt_attachment.

" Get contact description
CLEAR lv_row.
l_id
= '0001'.
l_name
= l_exit_info.
l_object
= 'VBKA'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id                      = l_id
language                = sy-langu
name                   
= l_name
object                 
= l_object
TABLES
lines                   = lit_lines
EXCEPTIONS
id                      = 1
language                = 2
name                   
= 3
not_found              
= 4
object                 
= 5
reference_check        
= 6
wrong_access_to_archive
= 7
OTHERS                  = 8.

IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

LOOP AT lit_lines INTO lwa_lines.
CONCATENATE lv_row lwa_lines-tdline INTO lv_row SEPARATED BY space.
ENDLOOP.
CONCATENATE 'DESCRIPTION:' lv_row INTO lv_row SEPARATED BY space.
lv_cnt_nn
= STRLEN( lv_row ).

CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.

lv_row
= 'END:VEVENT'.
lv_cnt_nn
= STRLEN( lv_row ).
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.

lv_row
= 'END:VCALENDAR'.
lv_cnt_nn
= STRLEN( lv_row ).
CONCATENATE '0' lv_cnt_nn lv_blank_tt lv_row INTO lv_row RESPECTING BLANKS.
APPEND lv_row TO lt_attachment.
CLEAR:lv_row.

CALL FUNCTION 'SO_RAW_INT_TO_RTF'
TABLES
objcont_old
= lt_attachment
objcont_new
= lt_attachment.

" 1. Create email object
lo_email
= cl_bcs=>create_persistent( ).

" 2. Determine email subject
IF i_method EQ 'CANCEL'.
l_subject
= 'Cancellation of an appointment'.

ELSE.
" REQUEST
SELECT SINGLE * INTO lwa_contacto
FROM  scgenappt CLIENT SPECIFIED
WHERE  client      = sy-mandt
AND    genappt_id  = l_appt_id.

" Datos de interlocutor
SELECT SINGLE b~kunnr b~name1 INTO (l_inter,l_intertxt)
FROM  vbpa AS a INNER JOIN kna1 AS b
ON    a~kunnr = b~kunnr
WHERE  a~vbeln  = lwa_contacto-exit_info
AND    a~parvw  = 'WE'.

" Montar Subject(Cabecera del correo)
l_auxinter
= l_inter.
" Quitar ceros a la izquierda
SHIFT l_auxinter LEFT DELETING LEADING '0'.
CONDENSE lwa_contacto-txt_short .
" Separar la clase de contacto del texto del comentario
SPLIT lwa_contacto-txt_short AT space INTO l_auxclase lwa_contacto-txt_short.

" Obtener ttpo de contacto
SELECT SINGLE ktaar INTO l_idcontac
FROM  tvkkt CLIENT SPECIFIED
WHERE  mandt  = sy-mandt
AND    spras  = sy-langu
AND    vtext  = l_auxclase.


" Montar cadena de texto
" Interlocutor
CONCATENATE '(' l_auxinter INTO l_auxinter.
" Descrip. Interlocutor
CONCATENATE l_intertxt(10) ')' INTO l_intertxt.
" Interlocutor + Texto con paréntesis
CONCATENATE l_auxinter  l_intertxt INTO l_intertxt SEPARATED BY space.
" Clase de contacto + Texto
CONCATENATE '[I0005]' l_auxclase INTO l_auxclase SEPARATED BY space.
CONCATENATE l_auxclase l_intertxt lwa_contacto-txt_short  INTO l_subject.

ENDIF.


" 3. Create document object with subject and body
lo_document
= cl_document_bcs=>create_from_text(
i_text
= lt_attachment
i_documenttype
= 'ICS'
i_subject     
= l_subject ).

" 4. Set sender email address
CALL FUNCTION 'EFG_GEN_GET_USER_EMAIL'
EXPORTING
i_uname        
= 'EMAIL'
IMPORTING
e_email_address
= lv_org_mail.
lo_sender
= cl_cam_address_bcs=>create_internet_address( lv_org_mail ).
TRY.
CALL METHOD lo_email->set_sender
EXPORTING
i_sender
= lo_sender.
CATCH cx_send_req_bcs .
ENDTRY.


" 5. Email recipient address
SELECT SINGLE pernr INTO l_pernr
FROM vbpa CLIENT SPECIFIED
WHERE  mandt  = sy-mandt
AND    vbeln  = i_contact_data-vbeln
AND    posnr  = c_posnr
AND    parvw  = c_parvw.

SELECT  SINGLE usrid INTO l_uname
FROM  pa0105 CLIENT SPECIFIED
WHERE  mandt  = sy-mandt
AND    pernr  = l_pernr.

l_uname12
= l_uname(12).
IF l_uname12 IS NOT INITIAL.
CALL FUNCTION 'EFG_GEN_GET_USER_EMAIL'
EXPORTING
i_uname        
= l_uname12
IMPORTING
e_email_address
= l_email.
ENDIF.
lv_org_mail
= l_email.
lo_receiver
= cl_cam_address_bcs=>create_internet_address( lv_org_mail ).
lo_email
->add_recipient( i_recipient = lo_receiver ).

" 6. Attach document to email
lo_email
->set_document( lo_document ).

" 7. Send email
lo_email
->set_send_immediately( space ).
lo_email
->send( EXPORTING i_with_error_screen = 'X' RECEIVING result = lv_send_result ).

" COMMIT WORK.

CATCH cx_bcs INTO lx_exception.
" WRITE:/ 'Message sending failed:', lx_exception->error_type.

ENDTRY.


ENDFUNCTION.


what is lead in sap crm ? and how to create lead ???

Re: SAP Script : PO MEDRUCK - Delivery address not Printing

$
0
0

Hi Anil..

 

Thanks..

 

Now in my adress not prinitnig complete address.

PO BO and fine REGIOn and LAND one not prinitnig ..

 

Please find the below syntex and let me know any  of this below is wrong.

 

ADDRESS DELIVERY PARAGRAPH AS

  TITLE    &SADR-ANRED&

  NAME     &SADR-NAME1&, &SADR-NAME2&, &SADR-NAME3&, &SADR-NAME4&

  STREET   &SADR-STRAS&

  POBOX    &SADR-PFACH&  CODE &SADR-PSTL2&  CITY &SADR-PFORT&

  CITY     &SADR-ORT01&, &SADR-ORT02&

  POSTCODE &SADR-PSTLZ&

  COUNTRY  &SADR-LAND1&

  REGION   &SADR-REGIO&

  FROMCOUNTRY &LFA1-LAND1&

ENDADDRESS

Re: T.Code last used details- OKP1

$
0
0

Hi Roshan,

Further to what Saurabh suggested , you can also make use of CDHDR/CDPOS tables to retrieve the data you were looking for.

 

 

Regards

Varun

Re: How to convert the Null values into zero's in webi.

$
0
0

Hi,

 

=if (isnull(Salary);0;[Salary])

 

Please create this variable and use in the report.

Re: revert Transport request changes

$
0
0

Hi Ranj

 

You can use either of the below approach to revert the changes:

 

1) If the object was existing before importing the TPZ file, you can go to history of the object and activate its previous version. In case this is a new object you'll have to manually delete the object.

 

2) In case you don't have access to perform above mentioned actions in Quality server directly you can revert the changes in the dev system and again import the new TPZ file which you revert the changes.

 

 

Regards

Vj

Re: SAP KERNEL UPGRADE FROM 700 TO 720 ON WINDOWS ENVIRONMENT

$
0
0

Hi Sunil,

 

Thanks for your immediate reply. 

Re: Manual Freight condition without Tax

$
0
0

You can place this freight condition type below the tax condition type in your pricing procedure.

 

 

G. Lakshmipathi


Re: What is the correspondig BKPF field of the "reference" field in FB01 ?

$
0
0

Just press F1 on the field, then click technical information.

You will find the table and field name where the data got stored.

dev.jpg

Re: Copying Data from existing database to another new

SYNTAX_ERROR SAPLBBP_BD_DRIVER_31I

$
0
0

Hi

i implemented the oss note for my follow on document error but after i implemented this note (1837138) when i want to create SC i have this error

 

 

 

Category               ABAP Programming Error                                                      
Runtime Errors         SYNTAX_ERROR                                                                
ABAP Program           SAPLBBP_BD_DRIVER_31I                                                       
Application Component  SRM-EBP                                                                     
Date and Time          09.07.2014 11:06:02                                                         
                                                                                                   

 

Short text                                                                                       
    Syntax error in program "SAPLBBP_BD_DRIVER_31I ".                                            


 

What happened?                                                                                   
    Error in the ABAP Application Program                                                        
   
    The current ABAP program "SAPLBBP_BD_META_BAPIS" had to be terminated because                
    it has                                                                                      
    come across a statement that unfortunately cannot be executed.                               
   
    The following syntax error occurred in program "SAPLBBP_BD_DRIVER_31I " in                   
    include "LBBP_BD_DRIVER_31IU09 " in                                                         
    line 177:                                                                                    
    "Method "FIND_ERP_CNT" is unknown or PROTECTED or PRIVATE."                                  
    " "                                                                                          
    " "                                                                                          
    " "                                                                                          
   
    The include has been created and last changed by:                                            
    Created by: "SAP "                                                                           
    Last changed by: "ADMIN2 "                                                                   
    Error in the ABAP Application Program                                                        
   
    The current ABAP program "SAPLBBP_BD_META_BAPIS" had to be terminated because                
    it has                                                                                      
    come across a statement that unfortunately cannot be executed.

Re: Abap dump error SYNTAX_ERROR

$
0
0

i cant solve my problem by this note

Re: Approver name for outgoing payment

Viewing all 8676 articles
Browse latest View live




Latest Images