Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all 8768 articles
Browse latest View live

Debugging to Understand the process?

$
0
0

Hi Experts.

My company went back to work with the module 'RE'.

I'm working with functional FI working like RE.

Occurred a  Dump:  (Overflow during the arithmetical operation (type P) in program).Please see attached file.

 

- REAJPR Transaction.

-The error ocurred in productive envoirement.

-The functional didnt find in configuration the motive of DUMP.

-The error ocurred because a field size receiving incompatible variable .i find a sap note ,etc...

ld_indexchgperlast = abs( <ls_recindex>-indexchgpoilast ). 

 

-But the functional sayed that error ocurred because the wrong value in variables and he wants that i debug and understand how this

variables are fulfilled.

-I debugged and found

 

rd_indexchgpoilast = ld_dateindexbase - ld_lastadjmindexbase.

 

Now i need  to understand  how this variables ( ld_dateindexbase and  ld_lastadjmindexbase ) are fulfilled.

 

 

Somebody know a way to do it ?

With debug its very very hard and tiresome.

 

I accept suggestions.

 

thanks a lot.


Read html page content.

$
0
0

Hi,

 

I have a require. Let me explain with example.

 

html Page:

html.JPG

Code Page:

<html>
<body>
<p id="p1">Hello World!</p>
<input type="text" name="firstname">
<input type="button" value="1" name="no" onclick="moveNumbers()">
<script>
function moveNumbers()
{
document.getElementById("p1").innerHTML = document.getElementById("p1").value;
}
</script>
</body>
</html>

 

Through interface "IF_HTTP_CLIENT" i am able to read code page,

but my requirement is read "123456" information from html body.

 

Is any class or method exist in SAP, please suggest.

 

Regards.

Praveer.

checking foreign key relation while updating table though program

$
0
0

Hi Experts,

 

I have a table A in which a field z_field  is having Entry/Check on table B. So if I update table A in SM30 I can see that it is checking table B for field Z_field so if I enter anything that is not available in B it would throw error.

 

How can we achieve the same when we are uploading data through a program using modify statement.

 

thanks

Rahul.

Sq02 ABAP coding for extra field

$
0
0

Hi experts ,

 

I have created a Query to find the difference in PO value and Invoice Value . I have defined a Extra field named " Difference"  and got the value but I am unable to code the below cases

 

where one PO line has more than one Invoice . I want to code so that System add all Invoices posted on PO line .

 

So for example

 

PO line 100

 

Invoice 1   50

Invoice 2    50

 

Total of Invoice for Line iten is 100 so difference is 0 . Right now I am getting 2 separted line and -50 each in difference Field .

 

Many Thanks

Regards

PreetI Agarwal

submit and return of a program with ALV output

$
0
0

Hello SAP Experts,

 

Can you please help me on this? In my program, I submitted a standard program with an ALV output. I find it odd that even if there is a AND RETURN command after the submit, the submitted program still displayed its ALV output and not sucessfully imported from memory the data from the submitted program.

 

Can you please advice?

 

Thanks.

 

GST.png

Change Payment order No.(REGUP-VBLNR)

$
0
0

Hi All,

 

I have requirement where after payment run from F110 want to change 3 digit of Payment order No. (REGUP-VBLNR).

 

I tried to search for User Exit or BADI but didn't get appropriate one.

 

Please help if any one worked on similar requirement.

 

Thanks,

Ashutosh

Calling a new FM in Inbound Proxy is giving CX_SY_DYN_CALL_ILLEGAL_TYPE

$
0
0

Hello,

 

I am trying to call a new FM in my Inbound Proxy (Synchronous). I am passing all mandatory parameters.

 

Error:

An
exception with the type
CX_SY_DYN_CALL_ILLEGAL_TYPE occurred, but
was
neither handled locally, no

 

When I debug the proxy, the control does not even go into the FM, it just throws the exception. I am using other FM's in the Proxy. This has worked some time back but is giving these errors from 2days. Your help is appreciated.

 

Thanks,

Vijay.

Problem in pdf print of the slovakian characters.

$
0
0

Hi, I have a smart form which has to be printed in slovakian language. the print preview of the smartform is perfect. but when we see the pdf output throught PDF! some characters are not getting displayed. Can anybody please help me in resolving this issue, only some characters are not printed. example č, ľ


How to download sap script to pdf and send to mail

$
0
0

Hi All,

 

Good Day!!!

 

my requirement is through custom program we are creating documents. in the out put we will get document numbers. when user check the document number and clock on print preview user can able to see the document. my requirement is when program creates documents I need to download into pdf and need to send to mail. I should not save the pdf in my desktop. it has to convert in program level and as well has to send to mail id.

 

for this I have written the following code.

 

 

 

CLEAR: maildata, mailtxt, mailbin, mailpack, mailhead, mailrec.

  REFRESH: mailtxt, mailbin, mailpack, mailhead, mailrec.
*Creation of the document to be sent File Name
  maildata-obj_name = 'TEST'.
*Mail Subject
  maildata-obj_descr = 'Subject'.
*Mail Contents
  mailtxt-line = 'Here is your file'.
  APPEND mailtxt.

 

CLEAR: mailpack, mailbin, mailhead.
  REFRESH: mailpack, mailbin, mailhead.
  DESCRIBE TABLE mailtxt LINES tab_lines.
  READ TABLE mailtxt INDEX tab_lines.
  maildata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( mailtxt ).
*Creation of the entry for the compressed document
  CLEAR mailpack-transf_bin.
  mailpack-head_start = 1.
  mailpack-head_num = 0.
  mailpack-body_start = 1.
  mailpack-body_num = tab_lines.
  mailpack-doc_type = 'RAW'.
  APPEND mailpack.


CLEAR itcpo.
  itcpo-tdgetotf = 'X'.
  itcpo-TDDEST   = 'LOCL'.
  CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      device                      = 'PRINTER'
      dialog                      = ''
      form                        = 'ZRFI_NOTA_D_C'
      language                    = sy-langu
      OPTIONS                     = itcpo
    EXCEPTIONS
      canceled                    = 1
      device                      = 2
      form                        = 3
      OPTIONS                     = 4
      unclosed                    = 5
      mail_options                = 6
      archive_error               = 7
      invalid_fax_number          = 8
      more_params_needed_in_batch = 9
      spool_error                 = 10
      OTHERS                      = 11.
  IF sy-subrc = 1.
    p_cancelled = 'X'.
  ELSEIF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

 

CALL FUNCTION 'CLOSE_FORM'
      IMPORTING
        RESULT                   = itcpp
      TABLES
        otfdata                  = otf
      EXCEPTIONS
        unopened                 = 1
        bad_pageformat_for_print = 2
        send_error               = 3
        spool_error              = 4
        OTHERS                   = 5.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
*    *Move OTF code to structure SOLI form email
    CLEAR solisti1. REFRESH solisti1.
    LOOP AT otf.
      solisti1-line = otf.
      APPEND solisti1.
    ENDLOOP.


LOOP AT solisti1.
    MOVE-CORRESPONDING solisti1 TO mailbin.
    APPEND mailbin.
  ENDLOOP.
  DESCRIBE TABLE mailbin LINES tab_lines.
  mailhead = 'TEST.OTF'.
  APPEND mailhead.
*  creation of the entry for the compressed attachment
  mailpack-transf_bin = 'X'.
  mailpack-head_start = 1.
  mailpack-head_num = 1.
  mailpack-body_start = 1.
  mailpack-body_num = tab_lines.
  mailpack-doc_type = 'OTF'.
  mailpack-obj_name = 'TEST'.
  mailpack-obj_descr = 'Subject'.
  mailpack-doc_size = tab_lines * 255.
  APPEND mailpack.


mailrec-receiver = 'xxx@gmail.com'.
  mailrec-rec_type = 'U'.
  APPEND mailrec.
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data              = maildata
      put_in_outbox              = 'X'
      commit_work                = 'X'
    TABLES
      packing_list               = mailpack
      object_header              = mailhead
      contents_bin               = mailbin
      contents_txt               = mailtxt
      receivers                  = mailrec
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      document_type_not_exist    = 3
      operation_no_authorization = 4
      parameter_error            = 5
      x_error                    = 6
      enqueue_error              = 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.

 

with the above code program is not converting into pdf.

after calling close form or before calling close form do I need to use any FM to convert the data into PDF.

 

Could  anyone please help me in this regards.

 

Thanks in advance,

Sravan

smartform drag and drop

$
0
0

All,

 

This doesn't work. Reckon SAP is addressing this and getting it fixed?

 

Thanks.

Class ZCL_IM__VENDOR_INVOICE does not implement BAdI interface IF_EX_BADI_FDCB_SUBBAS04

$
0
0

Hello guys I try to implement BADI_FDCB_SUBBAS04 but when I click on one method I get this error:

Captura.PNG

Could anyone can help me?

Trusted and Trusting Connections Issue

$
0
0

Hi

 

I need to Create a trusted RFC between Gateway and Backend system. Because I have a combined frontend and backend system setup.

I only created in transaction SM59 an RFC connection to itself.

 

It should have the nameconvention: <SID>CLNT<CLIENT>.

And in the Logon & Security tab it should use the current user.

 

 

120.jpg

 

117.jpg

 

 

But when I create an RFC destination to the other system and make it trusting via transaction SMT1.

 

123.jpg

 

It show this kind of issue. I can't create successfully.

 

Eric

VOFM coding help wanted

$
0
0

I have been assigned a task to create a scale base routine in VOFM based on using KBETR. I believe it's based on the following code:                   

 

 

  1. * Partial quantity 
  2. form frm_staffelbas_023. 
  3.    data: da_xkwert like komv-kawrt, 
  4.          da_xkwerx(16). 
  5.    unpack xkwert to da_xkwerx. 
  6.    move '000' to da_xkwerx+13. 
  7.    pack da_xkwerx to da_xkwert. 
  8.    xkwertxkwert = xkwert - da_xkwert. 
  9. endform. 

 

Can anyone help me on what the formula should looked like as modifying this particular code does not work for us.

Include Cost Center in Idoc INVOIC01 for FI invoice processing

$
0
0

Hi,

 

Which Idoc segment/ field in INVOIC01 do we need to use to enter the cost center number for the creation of an FI invoice?

 

Thanks

Sofia

Is there any possible not to update freight in header level condition tab in VA02 even if we change inco1 value in VA02?

$
0
0

Hi Friends,

Is there any possible not to update freight in header level condition tab in VA02 even if we change inco1 value in VA02.

 

with reagards,

saai


Establishing connection btw 2 clients in the same R/3 instance, same Port??

$
0
0

Hi all,

 

 

I am trying to establish a connection between client800 and client020  , both are in the same R/3 instance.

 

in both clients I need to do the following steps :1 - T-code : SALE --> define and assign logical system

                                                                     2-  T-code : SM59  --> create RFC connection

                                                                     3-  T-code : WE21 --> create Port.

 

 

My question is : Do these clients have the same port (since they are in the same R/3 instance) ?


Thank you.

VBAP field updated depending on VBAP field change

$
0
0

Hi,

 

I have appended a field (ZZ_DEL_BLOCK_DATE) to table VBAK and modified screen 8459 of program SAPMV45A to include the new field in the Additional Data B tab of VA01, VA02 and VA03. This all works perfectly and the field ZZ_DEL_BLOCK_DATE can be updated in VA02.

 

I have a requirement that when the delivery block (VBAP-FAKSK) is removed from an order (in VA02) that the ZZ_DEL_BLOCK_DATE of each of the VBAP records is updated with the current date. 

 

I have the below code written in userexit_save_document_prepare of program MV45AFZZ. I have debugged to see XVBAP-ZZ_DEL_BLOCK_DATE being updated with the current date however; the VBAP table does not get updated in the database.

 

  IF sy-tcode = 'VA02'.
   
IF *vbak-faksk IS NOT INITIAL AND vbak-faksk IS INITIAL.
      
LOOP AT xvbap.
          xvbap
-zzdel_block_date = sy-datum.
      
ENDLOOP.
   
ENDIF.
ENDIF.

 

The structure VBAP is empty when I debug.

 

  1. Is this the correct place for such code?
  2. Is xvbap the correct structure to be updating?
  3. Is there something else I need to be setting in the code in order to update ZZ_DEL_BLOCK_DATE in each of the VBAP records?

 

Any help would be appreciated.

 

Brian.

Update custom MIRO field values to Accounting document

$
0
0

Hello,

 

I have a requirement to add custom fields to MIRO transaction, save the values in RBKP table and pass on the values to the corresponding accounting document text fields (Extras - Texts in accounting documents - OBT8). I have completed the first part. Now, I need to pass the values of MIRO custom fields to the accounting document. I believe SAVE_TEXT function module could be used to update the fields, but is there a user exit where I can write the logic?

 

Thanks,

Where to find contents of SHPMNT05

$
0
0

Hi All,

 

I need to know what segments contain what fields for SHPMNT05?  Is there a site that provides that documentation?

 

Neal

Customer Name and Material Number

$
0
0

Hello,

 

I am working on a report at work where I am pulling data from various tables to present a forecast.  I have the most of the data by using various T codes and tables. However, I was wondering is there a code or table that I can have the customer name with material number?  I looked under KNA1 no luck.  I thought I could create a query in SQVI but I can find a table that will match the ones with the common relationship which is usually Material number (EKKO, EKPO and etc.)  Can someone help me?

 

Thanks,

Angelique

Viewing all 8768 articles
Browse latest View live


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