Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all 8332 articles
Browse latest View live

Printing string type variable in SAP Script

$
0
0

Hi Experts,

I am working on SAP Script and i have an issue which is, i am passing a string type variable to the script from program but in output i only see 255 characters but my variable is of 349 characters long. If i am declaring that variable in program string type then it throws dump. Kindly help me to solve the issue.

Can you also tell me how to see complete value of a variable in debug running mode of SAP script.

 

Thanks

Ashutosh Katara


Create a WebService (mb52)

$
0
0

Hi people.
I have a requirement to create a WebService of the MB52 Transaction.

It´s necessary for a legacy system.

 

Is that posible ?

 

Thanks for your help

Regards

VA01 PO Number

$
0
0

Hi all,

 

Please, some advice.

In VA01, field PO Number, is normal to fill with character string? Or only numbers?

Because the field is CHAR(35).

hi

$
0
0

can we open one program in two sessions with change mode?  how can we do that?

POP UP for output device while printing production order

$
0
0

Hi All,

I saw you post regarding the POP issue for production order printing in Co02.

I am having the same issue but I checked in the program and all parameters like No-Dialog , TDNOPREV are set to X , Still I am getting the pop up for output device. Could you please help me in resolving this issue. Its kind of urgent for me .Appreciate your quick help.

 

Thanks,

Nusrat

How to add extra field in tcode-MB52

$
0
0

Hi Experts,

 

I have a requirement copy the MB52 standard program to zprogram and add one field from MARM-MEINH in that report item label also in selection screen,So after i added its not working fine means while i give data in selection screen along with that added new field data output is coming based on each material last MEINH field data showing in output but requirement is each material all MEINH should come and while we keep blank in selection screen that MEINH field it should show all MEINH data under each material.Anyone can help me for this requirement where i have add my logic.

 

Thanks.

How to read spool data and it's fieldcat

$
0
0

Dear all,

    When we run an ALV report in background job, we will have spool data, now I want to get spool data and it's output data fieldcat base on the spool no. I found a FM to read spool data:  RSPO_RETURN_ABAP_SPOOLJOB , but I still want to get it's fieldcat , so is there any FM or method can be used ?

 

 

thank you for your sincerely answer!

How can we send SAP Data to BO thru WEBGUI?

$
0
0

Hi Expert,

 

I am just a bit unconfident on how can I send SAP data to BO thru WEB GUI. Do I need to establish port connection? The requirement doesn't want any mediator, just directly pass SAP data to BO (thru infoset or function module)? Please help me understand this concept. Thanks.

 

Bale


How can we find out BTEs for a transaction?

$
0
0

Hi All,

 

Is there any BTEs for F110 Transaction?. My requirement is when i run f110 in Payment Run option.

I want capture the script data and convert it into PDF format then send the mail to vendor.

I need any BADI/BTEs?

 

Thanks in Adv.

 

Regards,

Raj.

Add custom field in MIGO

$
0
0

Hi,

   when i try to add new tab in MIGO my new tab added successfully but when i click on item OK it don't show the Excise Invoice tab. i am using MB_MIGO_BADI badi. please help me how to solve this issue?

 

 

Mukesh

Getting Error of Runtime Exceeded while generating OTF for PDF in smartform.

$
0
0

Hi All,

 

I am getting a error of runtime exceeded while generating OTF file for PDF in smartform through FM. The report is taking too much time before giving the output...and most of the time going to dump saying report has exceeded the runtime. All is working well till the Smartform FM reached. I debugged this FM and found that the TABLES parameter is having problem, may be there are too many tables in that parameter.Please help. Below is the code-

 

 

 

CALL FUNCTION'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    formname           = c_form_name
  IMPORTING
    fm_name            = v_fm_name

  EXCEPTIONS
    no_form            = 1
    no_function_module = 2
    OTHERS             = 3.

 

 

 

CALL FUNCTION   v_fm_name
  EXPORTING
    control_parameters      = wa_control
    output_options             = wa_output
    user_settings                = 'X'
    spl_gl                         = p_spl_gl
    open_dt                      = p_budat
    bukrs                         = p_bukrs
    w_check                    = w_check
    w_check1                   = w_check1

  IMPORTING
*   document_output_info =
    job_output_info                  = wa_otf
*   job_output_options     =

  TABLES
    kna1                       = t_kna1
    bsid_p                     = t_bsid_p
    bsid                         = t_bsid
    TEXT                       = t_text
    spl                           = t_spl
    bsid_x                      = t_bsid_x
    bsid_l                       = t_bsid_l
    bsid_h                      = t_bsid_h
    bsid_q                     = t_bsid_q
    bsid_tot                   = t_bsid_tot

  EXCEPTIONS
    formatting_error           = 1
    internal_error             = 2
    send_error                 = 3
    user_canceled              = 4
    OTHERS                     = 5

    .

 

 

SAP UI5 Integration in Eclipse

$
0
0
Hi SAPUI5-experts,

I am new to SAP Fiori and SAP UI5, so wanted to try my hands on this.



Thus i am following one post from SAP Technical (Link : Install SAPUI5 in Eclipse Juno) for this integration.


At Forth Step it says to install SAP NetWeaver Gateway PluginForEclipse_2.5.400.zip file, but i was unable to find the file on internet, furthermore after some googleing i found on this page (Link : SAP Development Tools for Eclipse) that it will work if we add the URL (SAP Development Tools for Eclipse - Kepler Software Repository) in New Soft. Install Eclipse.


But when i tried that i am getting errors. (Plz look 2 screenshots)
I tried diff selections but still it is now installing...
HELP NEEDED BADLY

Help need for badi method me_process_po_cust~check

Order time ranges

$
0
0

Hi Group,

 

 

Its regarding Order delivery day and time , I have requirement to check time of order to decide on the route.

 

 

I am getting order day time YYYYMMDDHHMMSS and processing time, and I have to check whether this falling in the below order processing time slot or not:

 

 

Slot1 : Midnight to 18:00

slot2 : End of Slot1 to 19:30

slot3 : End of slot2 to 23:59

 

when order date = today and processing time is slot1

    then code = 1

when order date = today and processing time is slot2 and order time(hhmm) is after 18:00

      then code =2

when order date =  today and processing time is slot3 and order time(hhmm) is before 18:00

       then code = 3

when Order date = yesterday and processing time is slot 1

   

    then code = 99.

 

 

can any body sugget how I can write above code effectively in ABAP.

Do we have any function module to get leading 'X' in a variable?

$
0
0

Hi Experts,

 

Do we have any FM to get leading 'x' in a variable? My requirement is i have bank key field of 15 char length.for example see below code.

 

DATA : L_bank TYPE CHAR15.

l_bank = 'ABCD1234'.

 

in the above variable i have to display like ...'XXXX1234'.I need pad with 'X'.Last 4 digits as it is and remaining with 'x'.how to do this?

 

Thanks in adv.

 

Regards,

Raj....


How to Access the class attribute that refers to some other class

$
0
0

Hi All,

 

I have one doubt on how to access the attributes of a class that has been declared as TYPE REF TO some other class or interface. In my case type ref to is pointing to some other class whose attribute is suppose to be set using the object of a class that inherits the first class. I am not having the code snippet to make my requirement even more clear but hope you could have got an idea of my problem.


When I tried accessing it directly through the object of the inherited class it gives a run-time error as the attribute is accessed via null reference.


Your help is needed to solve this.




Thanks in advance.

Error /SAPPSSRM/HIER041

$
0
0

Dear Experts,


when I try to transfer a purchase requisition from ECC to SRM, the transaction PPO2 gives me the error 'In 0002 there are no functional positions'.

 

 

Do you know the cause of the error?

 

 

Thank you all.

 

 

Federico

GUI_UPLOAD: cannot interpret data in file

$
0
0

Dear Experts,

 

Im trying to upload simple CSV file into ALV and I'm getting the error message from GUI_UPLOAD: cannot interpret data in file.

 

What could be wrong at this:

 

DATA: ta_csv_data_raw  TYPE STANDARD TABLE OF zst_preisupload,

         wa_csv_data_raw  LIKE LINE OF ta_csv_data_raw.


zst_preisupload:

1.JPG


GUI_UPLOAD:


  v_filename = p_fname.

   CALL FUNCTION 'GUI_UPLOAD'

     EXPORTING

       filename = v_filename

       filetype = 'ASC'

     TABLES

       data_tab = ta_csv_data_raw.


Thank you!

How to unmap UPC from material using bapi_material_maintaindata_rt

$
0
0

Hello Expert,

 

Can you please tell me how to unmap the upc from material using bapi_material_maintaindata_rt. I am trying to run the bapi with different set of data but it is failing for each time. Please provide required parameter that need to be passed to bapi for upc deletion.

 

Kindly help.

how to block pagination in alv - Alv OO

$
0
0

hello

 

i want to know which method i use to block pagination ALV

 

 

thank

Viewing all 8332 articles
Browse latest View live


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