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

Can program name be passed as a variable in submit statement

$
0
0

Hi Team,

 

I have a requirement to submit program based on the  country code. But I think submit statement only allows direct program name after the sattement.

 

can anyone throw some light here.

 

ex  if it is US , submit RPCEDTU0

               XX  , submit RPCEDTXX

 

 

Regards,

Sourya Prakash.


Submit statement not creating spool rather after program exit sp01 get updated

$
0
0

Hi Team,

 

 

I am using submit statement to submit a report to spool and return. But I observe the spool not getting generated right after returning from the submitted program rather when the program is excited / program execution completed we could see spool no in sp01 and also table tsp01.

 

I need to get the spool number so that the contents to convert into pdf and download.

 

Can any one please help on this.

 

 

Regards,

Sourya Prakash.

Implicit Enhancement of an internal table

$
0
0

Hi,

I've been trying to add a field to an internal table via an implicit enchancement but cannot get it to work - not sure if it's even possible:

 

data: begin of i_tab occurs 0.

     include structure mara.

data: field1,

        field2,

enhancement 1 zz_itab.

        zfield,

endhancement.

end of i_tab.

 

The error is: "Comma without preceding colon (after zfield)"

 

Thks,

William

Don't use GET PERNR error

$
0
0

Hello Experts,

 

I'm trying to write a code using GET PERNR statement for every first time but keeps getting the error when try to execute my code. Here is the error (Do not use the GET PERNR event).

 

 

Can somebody please help me rectify this error. For reference here is my code.

 

report  zad_hr_test line-size 200.

****************************
*Database Table
****************************
tables: pernr,           " Pernr structure for Logical database
        pa0001,           " Actions
        pa0002.           " Personnel Info

****************************
*Infotypes
****************************
infotypes: 0001,         " Actions
            0002.         " personnel info

****************************
*Variable Declaration
****************************
data: form_nam like p0001-ename,
       v_age(5) type c,       "variable for calculating age in days
       v_ctr1 type i value 0, "counter
       v_ctr2 type i value 0, "counter
       var(5) type c ,        " variable to store btrtl
       var1(5) type .      " variable to store werks

*****************************
*Internal Table Decalartion
*****************************
data: begin of i_tab1 occurs 0,
        werks like pa0001-werks"personnel area
        btrtl like pa0001-btrtl"personnel sub area
        pernr like pa0001-pernr"employee number
        ename like pa0001-ename"employee name
        begda like pa0002-begda"employee join date
        persg like pa0001-persg"employee group
        persk like pa0001-persk"employee sub-group
        plans like pa0001-plans"position
        gbdat like p0002-gbdat,   "date of birth
      end of i_tab1.


******************************
*START-OF-SELECTION
******************************
start-of-selection .

get pernr .

i_tab1-pernr = pernr-pernr.

   rp_provide_from_last p0001 space pn-begda pn-endda .   " Macro for IFT-0001
   rp_provide_from_last p0002 space pn-begda pn-endda .   " Macro for IFT-0002
**--> Populate internal table
   move p0001-werks to i_tab1-werks .
   move p0001-btrtl to i_tab1-btrtl .
   move p0001-pernr to i_tab1-pernr .
   move p0001-ename to i_tab1-ename .
   move p0002-begda to i_tab1-begda .
   move p0001-persg to i_tab1-persg .
   move p0001-persk to i_tab1-persk .
   move p0001-plans to i_tab1-plans .
   move p0002-gbdat to i_tab1-gbdat .
**--> Append data to internal table
   append i_tab1 .
   clear i_tab1 .

   loop at i_tab1.
     write:/ i_tab1-werks,
             i_tab1-btrtl,
             i_tab1-pernr,
             i_tab1-ename,
             i_tab1-begda,
             i_tab1-persg,
             i_tab1-persk,
             i_tab1-plans,
             i_tab1-gbdat.
   endloop.

 

Many thanks in advance.

problem when increase line in smartforms template

$
0
0

Dear Guru,

                I have a problem when create template on smartforms that when i increase the line it going back on previous status and this error appears after basis consultant make upgrade for our system , any one can help , thanks.

Working with the Tablecontrol and lock objects

$
0
0

This video explains how to create Tablecontrols in ABAP and Work with the lock objects .

 

proxy error , when i use to consume WSDL of 3rd party

$
0
0

hi ,

 

I have refer the document http://www.netweavercentral.com/index.php/2011/consume-a-web-service-in-abap/

to consume a proxy , actually i have to give a solution for the client that we can consume a web service of third party or not,

actually iam doing this for first time , and for testing purpose i have done the steps which is shown in the document,

 

 

but iam getting the error

Proxy Generation: error occured

Exception occurred in communication framework:Error in HTTP Framework:404Connection Failedhttp://www.deeptraining.com/webservice

 

please help me ,

 

regards,

 

imtiaz khan

How to create search help by Hierarchy wise

$
0
0

Dear Experts,

                    i am doing Report generation program in HR module. In selection Screen i need to filter a data's by hierarchy wise.i dont know what is the logic to use.My selection screen is

 

Plant

department

section.

 

if i select  depertment after selecting plant , the deparment value should filter under selected plant.in this logic for section too.

 

for eg.

 

Plant

1001

1002

1003

 

department

1001-cutting

1001-checking

1002-cutting

1002-checking

1003-cutting

1003-cutting

 

if select plant 1001

when i use F4 option in department

Should Display the value

1001-cutting

1001-checking only...

 

 

 

am egarly waiting your reply... Please anyone Suggest me...


Split 1 record into 2 or 3 lines in CL_GUI_ALV_GRID

$
0
0

Hello to Everyone,

 

How do we Display 1 record into multiple lines in CL_GUI_ALV_GRID?

 

Example:

I have Sales Order Header, Item, and Schedule line fields to be displayed in ALV.

 

There are 41 Sales Order Header fields to be displayed.

 

ALV displays all 39 fields as 1 Record and we have to scroll towards the right or left.

 

I want to display, lets say, 13 fields on each line - total 3 rows.

 

Is it possible?

 

After Fieldcatalog, LVC_FIELDCATALOG_MERGE, I changed the row_pos for few cols to 2 and 3,

 

but during output getting the following Message:

 

"Multiple lines are only supported for printing and in print view"

 

Im using an Editable ALV and the requirement is Custom.

 

Thanks

Rajeev

BAPI_ACC_DOCUMENT_POST Tax (NVV)

$
0
0

Dear Experts,

 

I'm currently using BAPI_ACC_DOCUMENT_POST to post accounting documents.I calculated my taxes via function module CALCULATE_TAX_FROM_GROSSAMOUNT and each accountgl table was filled for each currencyamount table before passing into the BAPI. The taxes were

appended as extra line items after I have posted.

 

In order for the taxes to be displayed on FB03, I populated the accounttax instead.

If the tax only has VST, the posting is successful.

However, the taxes for my postings have both VST

and NVV (input sales tax). Problem comes in when I'm trying to post both VST and NVV via the BAPI.

 

Lets say I have to post $100 with tax code IP to GL account 000475100.

Tax code IP has VST and NVV.

 

-----ACCOUNTPAYABLE--


accountpayable-itemno_acc = 1.

accountpayable-vendor_no = 0000213664.

APPEND accountpayable.

CLEAR accountpayable.

 

----ACCOUNTGL--


accountgl-itemno_acc = 2.

accountgl-gl_account = 0004751000.

APPEND accountgl.

CLEAR accountgl.

 

-----ACCOUNTTAX--


accounttax-itemno_acc = 3.

accounttax-gl_account = '0001863140'. "tax gl acct

accounttax-cond_key = 'MWVS'.

accounttax-ACCT_KEY = 'VST'.

accounttax-TAX_CODE = 'IP'.

APPEND accounttax.

CLEAR accounttax.

 

accounttax-itemno_acc = 4.

accounttax-cond_key = 'MWVN'.

accounttax-ACCT_KEY = 'NVV'.

accounttax-TAX_CODE = 'IP'.

APPEND accounttax.

CLEAR accounttax.

 

----CURRENCYAMOUNT--


currencyamount-itemno_acc = 1.

currencyamount-amt_doccur = -100

APPEND currencyamount.

 

currencyamount-itemno_acc = 2.

currencyamount-amt_doccur = 93.45

APPEND currencyamount.

 

currencyamount-itemno_acc = 3.

currencyamount-amt_doccur = 4.78. "VST

currencyamount-amt_base = 93.45. "net amt

APPEND currencyamount.

 

currencyamount-itemno_acc = 4.

currencyamount-amt_doccur = 1.77. "NVV

currencyamount-amt_base = 93.45. "net amt

APPEND currencyamount.

 

 

When i passed the tables to the bapi, I get error 'Balance in

transaction currency'. I do not understand as my currencyamount table

is balanced.

 

I have implemented OSS 838350 and 979102.

I've also looked through OSS 626235 but do not understand.

 

Please help me.

Thanks.

 

Regards,

Hwee Ling

Budget update from held purchase order

$
0
0

Hi all,

 

We an an issue with update of the budget for a WBS element (transaction CJ31) .

The "normal" behavior of a budget ( SAP Note 339856 ) would be that the budget is updated with the amount of the held purchase orders.

However, it's not always the case.

For example, if the amount is decreased, the budget is not decreased.

I've searched through sapnote and through debugging transaction ME21N but didn't find something relevant.

 

Any idea ?

 

For information, we are currently upgrading from 4.7 (SP SAPKH47036 for SAP_APPL) to SAP ECC 6.0 (SP SAPKH60604 for SAP_APPL) and it happens on both systems.

 

Thanks for your help.

How to create top of page in a container, cl_salv_table=>factory

$
0
0

Hi All,

 

Does anyone know how to create top of page in a container?

 

Previously, my top of page code is working before i change my alv to be display in a container.

 

Below is my code.

 

cl_salv_table=>factory (

exporting

    r_container  = g_custom_container

    list_display  = if_salv_c_bool_sap=>false.

    container_name = 'CONTAINER1'

importing

    r_salv_table = go_alv

changing

    t_table        = gt_output ).

 

 

cl_salv_form_layout_grid, cl_salv_form_header_info is not working once i create the container and display my alv in it.

 

Could anyone please help?

 

Regards,

Sham.

Compare strings with spaces in between

$
0
0

Hi all,

 

I used this following select stament:

 

      wa_t001l_lgobe-sign = 'I'.
      wa_t001l_lgobe-option = 'CP'.
*      wa_t001l_lgobe-low = lv_ps
      CONCATENATE '*' lv_psloc '*' INTO wa_t001l_lgobe-low.
      APPEND wa_t001l_lgobe TO r_t001l_lgobe.

 

   SELECT SINGLE lgort
        FROM t001l
        INTO lv_lgort
        WHERE werks = p_werks
        AND   lgobe IN r_t001l_lgobe.

      IF sy-subrc = 0.
      ENDIF.

 

 

r_t001l_lgobe = *AA-  123*

 

The sy-subrc returns 4. The select stament cannot seems to find strings with spaces in between. Anyone knows what is wrong here?

 

 

BAPI_CONTRACT_CHANGE - conditions not created

$
0
0

Hi,

When i am trying to insert  a new line item using BAPI_CONTRACT_CHANGE, the item gets created but the conditions are not getting created. Is there any solution for the same?

 

Regards,

Venkat Varadan

Let the system calculate the tax amounts ???

$
0
0

Hello SAP experts,

Our environemnt is R/3 4.7. We have an INVOICE iDoc which gives the below error when posted in the system. We have verified and everything seems to be fine with the data. The vendor master settings are good. The iDoc posted fine when we are removing the tax code from segments - E1EDK04 and E1EDP04 i.e. making it blank. Can someone please help me out? Please let me know if I am posting it to wrong forum.

 

Let the system calculate the tax amounts

Message no. FF752

 

Diagnosis

You are posting using a tax code for which the total of the tax amounts (including the non-deductible portions) is zero but which contains values other than zero in the individual items. You have neither entered a tax amount for this tax code nor have you let the system calculate the taxes.

 

 

Procedure

If this message is a warning message, then you can confirm your entries by pressing "Continue".

 

If this message is an error message, then you

 

Enter the taxes on a detailed level,

Let the system calculate the taxes,

Enter a different tax code.

Procedure for System Administration

Check the tax code and, if necessary, define it in Customizing for taxes on sales/purchases.

 

To do this, choose Maintain entries (F5).


Hi everyone , I have a little bit confusion to remember the all abap tables and their fields .

$
0
0

I have a little bit confusion to remember the all abap tables and their fields . I want to know how did names are giving to tables and their fields (Ex: LFA1 for vendor & KNA1 for customer master ) .

                                                                  Here LFA1 table L stands for what

                                                                                           F stands for what

                                                                                           A stands  for what

                                                                                          1 stands  for what

                                                                      

Here My doubt is not only for LFA1 table , remaining tables names and their fields also . Is there any particular reason for giving names of tables and their fields . If Its any reason behind the names history  please reply me .

 

Thanks in Advance,

 

Regards,

Ashok reddy

While doing SPAU,if both programs are identical

$
0
0

Hi,

 

  While doing SPAU (by last transport request),I found both programs are identical(left window as well as right window),I can simply skip or I can do re-set.

For this can somebody throw light on this,please?

 

With Regards,

Jaheer.

Issue with custom font in Smartform

$
0
0

Hello all,

 

We have created a custom Z font in SE73 as we do not have SEGOE (Normal, Bold, Italic and Bold Italic) font in standard SAP.

 

We are having issues when we convert to PDF as we get the message 'Cannot extract the embedded font ‘Segoe’. Some characters may not display or print correctly' but the text is still displayed and there is no text lost.

 

We are getting this error in some cases when the OTF data is being used to convert to PDF.

 

We need to use SEGOE font and cannot replace it.

 

Please suggest if you have any ideas to resolve this issue.

 

Thank you.

 

Regards,

Kirthi.

Spool not generating in background job scheduling

$
0
0

Hi Experts,

 

I have an ALV report . When I try to run it in background it is performing certain action, but it is not generating any Spool. It is saying "No Spool list to display". I want to check the spool once the background job has completed. please help me.

 

 

Thanks.

Unable to get the logo modifications done for ESS payslip features on transportation from Dev to Production client.

$
0
0

Hi,

 

I had done some modifications in HR features ( EDTIN, HRFOR ) & Smartform ( ZHR_ESSPAYSLIP_TO_PDF ) in Development and then I transported the changes to production. My new smartform and changes to feautres was able to see from Tcode smartforms & PE03 . But my changes were not reflecting in the ESS production. I kep a logo in the development box smartform it was reflected in ESS development.

I got the smartform with added logo too in my production . But that logo is not coming in the ESS production. I had logo also in the production  (SE78) .

 

Could you please any body help me where I am missing the thing?

 

Regards,

Praveen Chitturi

Viewing all 8332 articles
Browse latest View live


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