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

Special characters in Smartforms

$
0
0

Hi,

 

I'm working with webdynpro abap and in my application I have to generate a smartform which one has been created and converted to a PDF file.

In the conversion routine, some special characters are loosing the properties itself, for example: the characterΩ has been transformed in © and I don't know why this is happening.

The function that I'm using to generato the pdf file is the code below:

 

CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format              = 'PDF'
        IMPORTING
          bin_file             = e_result
        TABLES
          otf                    = t_out-otfdata
          lines                 = t_saida
        EXCEPTIONS
          err_max_linewidth = 1
          err_format        = 2
          err_conv_not_possible = 3
          err_bad_otf      = 4
          OTHERS         = 5.

 

And after I take the bin file that the function returns and use the static method from the cl_wd_runtime_services class:

 

 

cl_wd_runtime_services=>attach_file_to_response(
    i_filename      = 'Calibracao.PDF'
    i_content       = v_pdf
    i_mime_type     = 'application/pdf'
    i_in_new_window = 'X'
    i_inplace       = 'X'

).

 

Follow an attachment file...

 

Anyone knows  can help?


Call Transaction behaviour

$
0
0

In my program I am passing on some values to Call Transaction 'CJ9C' using bdc_data. The objective is the called transaction should show result to the user and then the control should be returned to the calling program once user presses back button. However its not happeneing and the called transaction does NOT show anything to user but the control immediately returns to the calling program.

I tried sevaral options from ctu_param but its not happeneing.

Any clues would be helpful.

 

Thanks in advance

[SAPscript] Mail sent tio wrong receiver

$
0
0

Hi @all,

 

I have a problem with sending mails (Order confirmation, offers).

 

When the user sends a mail, sometimes it happens, that the mail appears twice in SOST. One mail to correct receiver, one mail to wrong receiver. The wrong receiver is always the receiver from the previous mail.

 

I can´t follow this problem, because it orrurs just sporadically.

 

Has anybody an Idea? Is this problem known to somebody?

 

Thank you,

Best regards.

Print PDF file from spool

$
0
0

Hi Expert,

 

ECC 6.0

 

There are lots of threds for PDF file print from spool hoever no one gives the exact solution.

 

Can any one give me solution how to print a PDF file (BIN) data from the spool

 

Senario : we have drawings in PDF formate and stored into SAP system want to print them from spool.

 

Please do not give any senario related to conversion spool to PDF exc. exact solution required for PDF form print from spool

 

Please help us!

 

Regards,

Subhanshu Shrivastava

submit job specific time ?

$
0
0

Dear All,

 

 

I have a requirement of submitting the job at specific time. There is a Ztransaction whose recording i had obtained through sm35 and now i need to create a job for a mass change of this recording and that should be done only in the evening.

 

my doubt is within the abap program once i had created the internal table with all the recording values how can i use the filled internal table to create and execute the job. there is a following code available on internet to submit the job. but where i can specify the internal table prepared with values.

 

SUBMIT zreport and return

with p_param1 = 'value'

with p_param2 = 'value'

user sy-uname

via job jobname

number jobcount.

if sy-subrc > 0.

"error processing

endif.

Events in oops ALV

$
0
0

Hi abap gurus,

             I'm having a small doubt regarding events in class cl_gui_alv_grid_display. Generally for a event to be triggered we follow these steps:

 

1.define a class for event handling.

2.define a method for a particular event in that class and then implement that class.

3.create object for that class.

4.register the event by using set_handler.

 

   My doubt is that whenever we do a particular action how that particular event is getting raised i.e., where Raise event code has been written

   because user_command event has been raised in raise_event of class cl_gui_alv_grid but this method is not accessed in any of the class or method

   still how that event is raising and in debugging mode if i keep break point in this method it is not triggering for user command event.

 

Regards,

Rakesh reddy challa.

List of Adobe form routine needed

$
0
0

Hello Abap Xperts!

 

I am configuring new output types for MM forms (Purchase Doc, Contracts, Quotation, ...). I am able to find all I need except the right form routine for adobe forms.

 

Is there any table or a way to find all the adobe form routines available?

 

Thanks to all

deniz

Status Program name for transaction code

$
0
0

Hi Experts,

 

For TCODE MM01, program name in TSTC is given as SAPMMG01 where as if you goto MM01->System->Status->Program it is giving as SAPLMGMM.

I need some table or FM using which I get status program name linked to transaction. i.e SAPLMGMM for transaction MM01.

Please help.

 

Regards,

Mani


POPUP screen with the table and confirmation

$
0
0

Hi All,

 

I have searched for POPUP screens and i did not get the relevant function module.

POPUP should hold the values of internal table ( could be 5 and 6 rows) and should with the confirmation button.

In simple words i could say the function module should have the combination of " POPUP_TO_CONFIRM + POPUP_WITH_TABLE_DISPLAY ".

 

 

 

Please share your ideas!!

 

 

 

 

Thanks,

Pradeep.

Create variable with dynamic NAME

$
0
0

The task is to create variable with dynamic name. NOT type(!) but namу! All the ways using cl_abap_typedescr and cl_abap_elemdescr classes that I saw are useless.

I want to implement something like this semantically:

 

 

    CREATE DATA (name) TYPE var_type.

 

 

But this syntax is incorrect.

 

 

Is there any solution?

Enhancing Talent Management Infotype 7408

$
0
0

Hello Experts,

 

I have a requirement to enchance the Talent Management Infotype 7408 and add 3 fields to the table(HRP7408) and screen. I've tried to create the enhancement in the PM01 transaction but all it always gives me errors.

 

If I try to enchance the screen structure the following error is shown:

     "Screen structure HCMT_BSP_PA_XX_R7408 must first be created"

 

If i try to enhance a single screen the following error is shown:

     "Infotype 7408 can not be enhanced"

 

Is there anyway I can enchance this infotype? Any other transaction?

 

Thank you and best regards,

David Pereira

Save chart as a pdf file in sap

$
0
0

Hi ,

 

I created a reported and generated chart using cl_gui_chart. after generating the chart i need to save the graph as a pdf file .

I fetched the customize graph data as a xml format and try to convert using function module convert_otf as a pdf file .

But not able to generated the xml data into chart. Please help me in this situation .

 

Thanks

Rajeev

BAPI to update SO schedule line

$
0
0

Hi Expert,

 

  i would like to ask is there any BAPI behaviour same as SO item availability?

  Currently we are using SAP BAPI "BAPI_SALESORDER_CHANGE"  to change the schedule information.

  We find they it is not possible to insert an item with Order Qty 0.

  but if we use SO item availability in VA02, it will able to create the schedule line item 2 , 3 or more with order Qty 0.

 

  attached document is the VA02 screen capture for it.

 

Thanks

3 ALV custom containers download in single file

$
0
0

Hi,

 

We have three ALV custom containers in the same output screen &  the user requirement is to download the three alv outputs in single excel file. Please advise.

 

Regards,

Devdatth

Passing data between selection screens

$
0
0

Hi all,

 

I have created 2 selection screens in 2 different Report programs. I figured out that the possible ways to access data between them is by using abap memory . Now if i want to avoid this , how can i achieve the same?

 

I do not want to have 2 reports. I am just looking for possible solutions.

 

Thanks,

Maqsood


select Query taking more than 10 mins to execute

$
0
0

Hi,

Please help to increase the performance the below select statement :

SELECT ekko~ebeln

            ekko~bsart

            ekko~aedat

            submi

            ebelp

            matnr

            menge

            meins

            umrez

            umren

            lmein

       FROM ekko INNER JOIN ekpo

       ON ekko~ebeln = ekpo~ebeln

       APPENDING table i_opekpo

       WHERE ekko~ebeln  IN  r_ebeln

         AND ekko~aedat  IN  r_erdat

         AND ekko~reswk  IN  s_werks "  S_WERKS-LOW

         AND bsart IN ('ZUB1', 'ZUB3', 'ZUB5')

         AND ekpo~loekz  space

         AND matkl       IN s_matkl.

   ENDIF.

 

   IF i_opekpo[] IS NOT INITIAL.

SELECT vbrk~vbeln

             vbrk~knumv

             vbrk~fkdat

             vbrk~erzet

             vbrk~kunrg

             vbrk~spart

             vbrp~posnr

             vbrp~vrkme

             vbrp~umvkz

             vbrp~umvkn

             vbrp~meins

             vbrp~fkimg

             vbrp~fklmg

             vbrp~matnr

             vbrp~werks

             vbrp~aubel

             vbrp~aupos

             vbrp~autyp

             vbrp~vgbel

             vbrp~vgpos

             vbrp~netwr

             vbrp~mwsbp

                FROM vbrk

                INNER JOIN vbrp

                ON  vbrk~vbeln = vbrp~vbeln

                INNER JOIN j_1iexchdr

                ON vbrk~vbeln = j_1iexchdr~rdoc

                INTO TABLE it_vbrp

                FOR ALL ENTRIES IN i_opekpo

                WHERE aubel = i_opekpo-ebeln

*            AND aupos = i_opekpo-ebelp

                AND vbrk~fksto EQ  space

                AND vbrk~sfakn EQ  space

                AND j_1iexchdr~status EQ 'C'.   this select is taking more than 10 mins to execute plz help me ...


problem with select....where IN statement

$
0
0

Hi,

 

i have the following select-statement in my z-abap:

 

  DATA: s_kostl    TYPE RANGE OF cosp-objnr,

  DATA: s_kstar    TYPE RANGE OF kstar,

.

.

.

 

  SELECT (lv_feldname) INTO lv_betrag

                  FROM coss WHERE lednr = '00' AND

                             objnr IN s_kostl AND

                             gjahr = gjahr AND

                             kstar IN s_kstar AND

                             wrttp = '04' AND

                             versn = '000'.

 

now i get a dump, because s_kostl and/or s_kstar contains about 11.000 entries (DBIF_RSQL_INVALID_RSQL).

 

how can avoid this ? or how i have to 'rewrite' my SQL statment that the ranges-tabs s_kostl AND s_kstar can be processed

correctly ?

 

br, Martin

migo: valuation data locking issue

$
0
0

Hi Experts,

I have a requirement to automatically trigger a GI with movement type 910 when a GR with movement type 101 is done against a Purchase order(PO). And after that i need to create a document for the sub material with movement types 909 and 343.

 

When i am using the BADI : MB_DOCUMENT_BADI.

After posting the 101 movement type it is showing the error as valuation data is locked by the user (same user).

 

How can i achieve this?

Your inputs are highly appreciated.

 

Regards,

Anvesh

Reversal possible for SE14 transaction?

$
0
0

Thinking I could select certain fields to delete, I used tcode SE14 I executed direct processing for table LFA1 Activate and Adjust database - Delete data.  Now all of my vendor master data has been deleted!  Luckily, this is in test system, but is there a way to reverse this program and restore it?  If not, is using LSMW best choice to recreate the records?,

call transaction ME23N with parameters

$
0
0
after execution of report with call transaction for me23n than double click on PO we have faced the below error, plz give me  valuable suggestion.
Viewing all 8332 articles
Browse latest View live


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