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

Issue in ESS Portal leave application

$
0
0

Hi

we are  facing an issue with 2nd level approval .

Once the first level  leave approval is done if employee is changing the leave dates , it is directly going to 2nd level approver , but it should go again to first level approver .

 

How to send this to first level approver again (Once dates are changed ) or how to disable the edit activity in webdynpro once first level approver is completed .


Help for BAPI BAPI_PO_GETDETAIL

$
0
0

Dear all,

 

I need help with BAPI BAPI_PO_GETDETAIL with table EXTENSIONOUT.

I try to get specific fields but I have some problems.

First I succeed to read first specific fields which were in field VALUEPART1 but I have to read VALUEPART2 and VALUEPART3 in order to get all fields.

 

In VALUEPART2 I have some strange fields during 100 char like square in policy windings (e.g.. __! - Replace ! by pipe) and after some specific fields values and so on for VALUEPART3...

 

I would like to have a serious method in order to get fields values and later to update PO using BAPI_PO_CHANGE.

 

Thanks for your help.

 

David

Call screen from BSP

$
0
0

I have created a bsp application and I want to call a screen through submit report. I dont know how to do it. Please guide me

Upload smart form as post script format in application server

$
0
0

Hi All,

 

Can you please tell me the procedure how to upload the smart form output into postscript format in application server.

i have a requirement to upload a letter most probably be made in smart form needs to be uploaded in postscript format in application server.



Please reply.Points will be awarded.





about getting internal table data from other FG by field-symbol

$
0
0

Hi all,

 

I want to get an internal table data from standard Function Group to my Z Function Group.

The internal table variable is defined as 'gt_aaa occurs 0' in standard FG.

How can I use field symbol to get the data of it into my own program?

 

Basically, I know:

Define a string:

text01 TYPE string VALUE '(SAPLXXXX)GT_AAA'.

 

Define a fs:

<gt_aaa>

 

Define a local variable

gt_aaa

 

And then assign (text01) TO <gt_aaa> and let gt_aaa = <gt_aaa>.

But it seems not work, and I have tried many possibilities in definition but none all them are working.

Does anyone the correct way to do that?

when transfering data from PS to AS # symbol causing error

$
0
0

hi all ,

 

i am getting error regaurding salesorder creation.

when i am transfering data from presentation to application server text file at the end of file in application server getting # symbol

this symbol was not going and making the error in sales order creation.

 

and here in this text file pipe symol is using as a seperator.

 

even though i am using REPLACE ALL OCCURENCES this error is not moving.

 

please give your valuable solution.

 

Best regaurds,

sainath kaja.

Currency Field value is not populating in MP

$
0
0

Hi Experts,

 

In my requirement I've added currency field in the item level to the Transaction ME22N. In that Currency field value is not populating, but in the database level it is updating.

 

Kindly revert me how to solve this issue.

 

 

Kindly regards,

Saran.

Runtime error 'DYNPRO_FIELD_CONVERSION' while creating order

$
0
0

Dear Experts,

 

While creating an order with reference to contract (Via t-code VA42 or VA43) ,system is getting runtime error 'DYNPRO_FIELD_CONVERSION'.

 

Error analysis

    The program run has been interrupted and cannot be resumed. The program

    "SAPMV45A" tried to output fields on screen 4900. During the conversion of the

    data an error occurred.

 

And the error analysis is clearly showing that the problem while passing value from ABAP program to screen variable.

 

How to correct the error

    A conversion error occurred when displaying fields on the screen.

 

 

    The formats of the ABAP output field and the screen field may not

    correspond.

 

 

    Some field types require more spaces on the screen than in the ABAP

    program. For example, a date output field requires two more spaces on

    the screen than the corresponding field in the ABAP program. In the

    attempt to display the date on the screen, an error occurs that

    triggers this error message.

 

 

    Screen name............... "SAPMV45A" Screen number............. 4900 Screen

    field.............. "RV45A-KWMENG" Error text................ FX015: Sign lost.

    Other data:

 

But the source code extract is showing some different thing as below.

 

Line  SourceCde

 

 

    1 *---------------------------------------------------------------------*

    2 *       Einteilungsdatum ausgeben.                                    *

    3 *---------------------------------------------------------------------*

    4 MODULE VBEP-EDATU_AUSGEBEN OUTPUT.

    5

    6   CALL FUNCTION 'PERIOD_AND_DATE_CONVERT_OUTPUT'

    7        EXPORTING INTERNAL_DATE   = VBEP-EDATU

    8                  INTERNAL_PERIOD = VBEP-PRGRS

    9        IMPORTING EXTERNAL_DATE   = RV45A-ETDAT

   10                  EXTERNAL_PERIOD = RV45A-PRGBZ.

   11

   12

>>>>> ENDMODULE.

 

I am getting confused why and where exactly the system is going for runtime error?

 

I searched in SDN and other sites also. But no luck.

 

If any one faced same situation, help me.

 

Thanks and regards,

Aumprakasharya T


MONTHS_BETWEEN_TWO_DATES_NEW

$
0
0

I am entering below inputs in the above function module   : -

 

I_DATUM_BIS    =   01.06.2015

 

I_DATUM_VON  =   01.07.2014

 

I_KZ_INCL_BIS  = *

 

I_KZ_VOLLE_MONATE = x

 

 

When I execute the above function module with above inputs I am getting the output : -          1.100000000000000E+01

 

What type of number I am getting in month as this function module  gives the month between two dates ..please suggest ??

SAP Adobe Forms SAP Print issue

$
0
0

Hi All,

 

My Adobe form is working fine and printing fine in case if preview is done and printout is given from pdf.

 

However, if printout is given directly without generating the pdf that is through SAP print is not reclaiming the space in which field are hidden using the scripting.

 

Thanks in advance

data from VBRK- VBRP - BSET

$
0
0

Hello,

 

I tried to make link between VBRK and BSET, and VBRP and BSET.

 

Is my code correct?

 

loop at it_vbrk into wa_vbrk1.


           select single bukrs belnr gjahr awkey xblnr glvor from bkpf into corresponding fields of  wa_bkpf
           where awkey = wa_vbrk1-vbeln
           and glvor = 'SD00'.

           if sy-subrc = 0.
             select single bukrs belnr gjahr buzei hwbas hwste lstml from bset into corresponding fields of wa_bset where
             bukrs = wa_bkpf-bukrs and
             belnr = wa_bkpf-belnr and
             gjahr = wa_bkpf-gjahr and
             lstml = wa_vbrk1-landtx.

             wa_loc_data= wa_bset-hwbas.


endloop.


If yes? what if i have more items in BSET?

SAP shadow schema password

$
0
0

Hi,

 

I would like to know the default password for a shadow schema.

 

We are updating sap using sum and I reset the user password and I can't connect.

 

We have ERP 6.0 ehp7 with hana.

submit program issue not generating spool.

$
0
0

Hi Experts,

 

I am facing weird problem while calling the submit program (e.g.
ZREPORT_BG) from actual program (e.g.ZREPORT). Actually I have requirement to
create an activity group in background by selecting background check box in the
selection screen.

 

But when I am calling submit program ZREPORT_BG, I have few
issues as below.

 

 

  1. Start-of-selection and end-of-selection events
    are not triggering in the calling program (ZREPORT_BG).
  2. Alv display output is displaying in the called
    program.
  3. Spool is generating with the last message in the
    calling program (irrespective to sy-subrc).

    

 

Please let me know if I am missing anything while calling
program.

 

 

Thanks,

Siva

After TRANSPORT, the program does not appear in package

$
0
0

After TRANSPORT, the program does not appear in package

 

 

 

In DEV I have the package Z001

 

 

 

Within this package i create the program:

 

 

 

ZAA_EJEMPLO

 

 

 

and the transaction

 

 

 

ZAA_EJEMPLO

 

 

 

DEV to QAS transport was performed.

 

 

 

In QAS I use the transaction SE80 to inspect the contents of the package Z001.

 

 

 

In transaction SE80 the ZAA_EJEMPLO program IS NOTN displayed inside the package Z001

 

 

 

In QAS I use the transaction SE80 to verify the existence of ZAA_EJEMPLO program. The program exists.

 

 

 

I see the program attributes and confirmed that its package is Z001

 

 

 

I use the ZAA_EJEMPLO transaction and the program runs

 

 

 

Another colleague (USER B) with another SAP account uses transaction SE80 to verify the existence of ZAA_EJEMPLO program.

 

 

 

The program does not exist. It is  not shown in the transaction SE80

 

 

 

But "USER B"  use the transaction ZAA_EJEMPLO and the program runs.

 

 

 

What happened?

 

 

 

1.

 

 

 

How can i show the program ZAA_EJEMPLO inside the package Z001

Need help with this SELECT against BSIS

$
0
0

I have a Web Dynpro app that calls an RFC to do some asynchronous processing to avoid the 1-minute time-out I'd otherwise run into.  The RFC is a bunch of SELECT statements against BSIS that are all very similar to each other with slight differences.  I write the data out to a zTable.  Once the RFC ends and the Action fires back in my WDA application, I read the data in from my zTable and continue processing.

 

The problem I'm running into is that the SELECT statement just "hangs", and I think it's probably due to the large numbers of parameters in my WHERE...IN internal table.  But I'm also not sure about the >= and <= I have in this statement, nor am I sure I've created the best index.  So, I'm going to provide as much information up front as I can, and I'm hoping that someone out there can give me some ideas on how to get this -- and the related -- BSIS queries running in a somewhat-timely fashion.

 

Here's the query:

 

SELECT hkont

          geber

          budat

          shkzg

          dmbtr

          fipos

     FROM bsis

     INTO CORRESPONDING FIELDS OF TABLE lt_bsis_cash_in

     WHERE geber IN lt_geber     AND

           bukrs = 'PUR'         AND

           hkont >= '0000400000' AND

           hkont <= '0000499999' AND

           budat IN lt_budat.

 

When I enter a range of WBS Elements in my WDA app, I get the corresponding GEBER values, sort and de-dupe, and pass it into this query via internal table LT_GEBER.  At 1,000 entries, LT_GEBER has 984 entries.  At 2,000 entries, LT_GEBER has 1,948.  Both of these run pretty quickly (a minute or so).  But when I go up to 2,500 entries and LT_GEBER has 2,440 entries, the query just "hangs" during processing.  In every instance, LT_BUDAT has "I BT 19920101 20150214" (so I'm selecting on budat between 1/1/92 and 2/14/15).  We just have one company code here, so the BUKRS = 'PUR' could probably be removed.

 

As you might have guessed, my other queries are different in the ranges of HKONT that I'm selecting.  In the example above, our "Cash In" records are in the range of 400000-499999.

 

When the query runs with 1,000 or 2,000 WBS Elements selected, ST05 looks like this:

 

4 FILTER

  Filter Predicates

 

  3 INLIST ITERATOR

 

    2 TABLE ACCESS BY INDEX ROWID BSIS

 

      1 INDEX RANGE SCAN BSIS~Z4

 

Index Z4, which I built for these queries, looks like this (I've added #Distinct values based on a sampling of 653,408 rows; the entire BSIS table has just over 65,000,000 records):

 

MANDT (1)

BUKRS (1)
GEBER (12,895)

HKONT (1,532)

BUDAT (2,791)

 

So at this point, I'm not sure what to do.  A better index?  Restructuring the query to do less in the WHERE clause and do more by looping through the table and deleting records that don't match my criteria there?  Something else?

 

This is all on ECC 6.0.  If you need additional information, please let me know.  Any information folks can provide is GREATLY appreciated.  Thanks so much for your time.

 

Dave


Dialog Program Table Control Drop down list dynamic values

$
0
0

Hi,

 

Recently added drop down list column for the existing table control structure.

I want to display values dynamically for the drop down list column on Table control based on row values. I tried to design code on POV, but it's not triggered once you select drop down .

 

Please help me.

 

Thanks in advance.

Delete statement not working

$
0
0

HI All,

I have written following delete statement that should keep only field A and B  in internal table.

How ever field C not deleted(ie internal table has fields A,B,C instead of A and B only).I will be thankful for kindly guiding.

 

 

DELETE IT_TAB where  data1 = '1234' and ( field ne 'A' or field ne 'B' ).

 

 

Thanks.

Open_DI of BTE 01000821 could not determine any function modules

$
0
0

Hi All ,

 

I am getting the information popup message 'Open_DI of BTE 01000821 could not determine any function modules' in our system when trying to change the delivery date for all line items of sales order in VA02 through EDIT-> FAST CHANGE OF-> DELIVERY DATE.

 

I found a similar thread on this topic. The thread suggests maintaining the configuration for CRM system. ( making CRMATP active in BF11). However , in my case we don't have a CRM system. All the ATP checks are done in ECC system only.

 

I tried to debug to find why this message is triggered.

 

NOTE :

  • I placed debugger on FM for this BTE 10000821 . The control does not comes to the FM and hence BTE is not triggered.
  • The popup is coming eventhough no CRM system present.
  • The message is coming only for some dates and not all dates.

 

~Tanmay

Design2008 impacting bsp display and rendering time

$
0
0

We are going through upgrade to ECC 7.0 and are attempting to pick up Chrome support for our bsps.  So, I have converted my bsps to Design2008. Things have (obviously) changed in the look and feel, but also performance.  I don't see many posts regarding Design2008, so I'm hoping I can get some feedback from others.  There seems to be hardly any threads on Design2008, and none which tell the deprecations or changes between 2003 and 2008 (unlike 2002 to 2003). Is no one using it?

 

Here are some of the things we have encountered...any ideas?

 

- Editable inputfields created with CL_HTMLB_INPUTFIELD=>FACTORY are now displaying with the same blue background as disabled inputfields.

- xhtmlb:protectDoubleSubmit no longer appears as a popup box.  The text just appears in a clear background, so it's overlaid on the screen contents.

- Significant lag time loading pages, especially the first load of the bsp - apps that took 3 seconds previously are now taking around 15 seconds.  It would appear to be rendering time, since the browser just displays an all-white screen.

- Any html tags added in phtmlb:messageBar no longer render (ex. <B> for bold), now it just displays the tag itself.

- items created with phtmlb:formLayout (Item/InputField) are now displaying a colon after the label.  It's irritating because it's adding the colon even if the item has no label.  How can we remove it?

 

Thanks so much in advance!

Lisa

SAPScript: Do not print LAST page if NEXT page is empty

$
0
0

Hello,

 

I have a SAPScript with pages FIRST, NEXT, and LAST. The requirement is, if the content of FIRST does not spill over to NEXT, do not print the LAST page anymore. Is this possible to do?

 

Thank you very much.

Viewing all 8768 articles
Browse latest View live