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

Execute button missing after displaying the error message on selection screen

$
0
0

Hi,

 

Execute(F8) button is missing in my program after displaying the error message in the selection screen.

 

AT SELECTION-SCREEN.

If field IS INITIAL.

   Message s001 display like 'E'.

   call selection-screen 1000.

endif.

 

i tried different combinations after the message statement in the above code.

 

*       Set SCREEN 0.  <== Giving error message SET SCREEN not allowed in subscreens (Screen RVV50R10C 1010)

*       LEAVE to SCREEN 1000.<= Same error message as above.

*       call SCREEN 1000.<= Giving error message Selection screen RVV50R10C 1000 was not called using CALL SELECTION-SCREEN.

*       LEAVE to LIST-PROCESSING <== Giving same error as of SET SCREEN.

*       CALL SELECTION-SCREEN 1000.  <== Execute button missing.

 

 

In the AT SELECTION-SCREEN OUTPUT we have the FM.

 

 

CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'

          EXPORTING

               p_status  = sy-pfkey                           "hp_370442

               p_program = lf_program

          TABLES

               p_exclude = lt_cua_exclude.

 

 

Please let me know your inputs.

 

Thanks in advance.


Uploading/Using only some fields of excel to ABAP program

$
0
0

Hi All,

 

I have to use only 22 fields of an excel input file out of the 60 fields the file contains. Customer will not change the structure of the file. Moreover, I know the datatype of only the 22 fields  that I intend to use and not the rest.  Is there anyway I can upload the file and use it without knowing the datatype of the fields I dont wan to use ? Is there anyway I can upload only the fields I want and not the remaining ? How do I handle this ?  Kindly let me know. I am trying to avoid going back to the customer asking the datatypes. Thanks for your help.

 

Best Regards,

Shankar.

Restrict PO approval on Company Code (ME28)

$
0
0

Hi All,

 

As i want to restrict user to see only relevant PO's for Company codes which he is responsible when he run ME28.

 

Well before this i have tried various user exits M06E0004 & M06E0005 and ME*...

 

and search BADI but i didn't found the solution as most of then is triggering after displaying the result..

 

As i want to restrict the display of irrelevant POs which are not under his company code..

 

Thanks in Advance.

Ahmed.

abap query for KONV, EKKO and EKPO

Wrong value in RV61A-AWEIN on return order

$
0
0

Our customer wants to force the UOM in return sales orders based on invoice, for some materials.

 

For example if an invoice, has UOM box and he makes a return sales order, the UOM in the return sales order is changed to Units.

 

For this we used user exit USEREXIT_MOVE_FIELD_TO_VBAP in MV45AFZZ, with function MD_CONVERT_MATERIAL_UNIT and it works.

 

Every field in the sales order is changed but in Condition detail in item Conditions the quantity is changed but not the UOM in fields Qty conversion RV61A-KMEI1 and Cond.base value RV61A-AWEIN.

 

Does anyone know how can I find out why SAP is not updating those values? I suspect there are some code that is copying those values.

 

Althought I do not think the problem is in the new code, here it is:

 

FORM userexit_move_field_to_vbap.

 

*  VBAP-zzfield = xxxx-zzfield2.

 

IF sy-tcode EQ 'VA01'.

   IF CVBRP-VBELN IS NOT INITIAL.

     IF VBAK-VBTYP = 'H'.

 

     DATA: lv_material type MARA-MATNR,

           lv_um_in type MARA-MEINS,

           lv_quantity type EKPO-MENGE,

           lv_quantity_out type EKPO-MENGE,

           lv_schme type MVKE-SCHME.

 

 

*       LOOP AT CVBRP.

 

             clear : lv_material,

                     lv_um_in,

                     lv_quantity,

                     lv_schme.

 

            lv_material = cvbrp-matnr.

            lv_um_in = cvbrp-vrkme.

            lv_quantity = cvbrp-fkimg.

 

 

            SELECT SINGLE SCHME

                   FROM MVKE

                   INTO lv_schme

              WHERE MATNR = lv_material

              AND   VKORG = VVBRK-VKORG

              AND   VTWEG = VVBRK-VTWEG.

 

              IF SY-SUBRC EQ 0.

 

 

 

 

              CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'

               EXPORTING

                     i_matnr                    = lv_material

                     i_in_me                    = lv_um_in

                     i_out_me                   = lv_schme

                     i_menge                    = lv_quantity

               IMPORTING

                     E_MENGE                    = lv_quantity_out

               EXCEPTIONS

                     ERROR_IN_APPLICATION       = 1

                     ERROR                      = 2

                     OTHERS                     = 3

               .

               IF sy-subrc EQ 0.

 

                 MOVE lv_quantity_out to cvbrp-fkimg.

                 MOVE lv_schme to cvbrp-vrkme.

 

               ENDIF.

 

          ENDIF.

 

 

 

    ENDIF.

 

   ENDIF.

 

ENDIF.

 

 

 

 

    ENDFORM.                    "USEREXIT_MOVE_FIELD_TO_VBAP

Change Status of CRM Serviceorder with CRM_ORDER_SAVE

$
0
0

Hi experts,

 

we are using IT-Servicemanagement on Solman 7.1.

 

Now I would like to Change the Status of a few objects by executing the function module CRM_ORDER_MAINTAIN.

By executing this function module I don't get any error and it seems to work, because when I execute the fm CRM_ORDER_READ directly after maintaining the status, I get the new status.

 

However, to write the change to the DB I've to execute the fm CRM_ORDER_SAVE, and on this function module I get the exception "document_not_saved".

 

In Log-handle and syst I can only find the error message ID=CRM_ORDER and Number = 037, which is not very helpful and only says, that an error has occurred.

 

WHat is the problem?
Does anyone know what I make wrong?

 

Many thx in advance

Scroll button missing in CV01N Transaction

$
0
0

Hi Experts,

 

I have an issue in transaction CV01N. If multiple attachments are attached to a document, the scroll option is available on screen with small button but somehow arrow key button to scroll up & down is not visible and left & right scrolling button is available. My client requires those buttons UP & DOWN,

 

After referring some code I came to know that, that is ALV GRID display. 

So, can we get? If yes, can you please suggest how to achieve it.

In sufficient memory exception at runtime?

$
0
0

hi experts,

               When i am exicuting the ALV report, in sufficient memory exception is coming, what is the solution to fix this problem.

plz give me some suggestions.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

thanx & regards,

yogesh.


We are using FM ‘HR_INFOTYPE_OPERATION’ to update infotype data, but few infotypes are not getting updated, but FM 'HR_CONTROL_INFTY_OPERATION' is working for these info types but we still wanted to use ‘HR_INFOTYPE_OPERATION’ only, suggestions pls ..

$
0
0

We are using FM ‘HR_INFOTYPE_OPERATION’ to update standard infotype data, but few infotypes are not getting updated through this function module. Few days back all infotypes were getting updated successfully but all of a sudden we are facing this issue.

For these info types when used FM 'HR_CONTROL_INFTY_OPERATION' they are updated succesfully, these are all standard info types only, as a matter of fact SAP itself will change the info type framwork if required, we do not want to change it.

What could be the reason for this. Your suggestions please..

DBIF_RSQL_INVALID_RSQL error

$
0
0

hi experts,

 

 

What happened?
    Error in the ABAP Application Program

    The current ABAP program "/BMW/SAPLATL_TW_I336_INQUIRY" had to be terminated
     because it has
    come across a statement that unfortunately cannot be executed.

 

What can you do?
    Note down which actions and inputs caused the error.


    To process the problem further, contact you SAP system
    administrator.

    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Note which actions and input led to the error.

    For further help in handling the problem, contact your SAP administrator
    .

    You can use the ABAP dump analysis transaction ST22 to view and manage
    termination messages, in particular for long term reference.

 

Short text

    Error in module RSQL of the database interface.

 

Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
     in
    procedure "GET_ORDER_DATA" "(FORM)", nor was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    The SQL statement generated from the SAP Open SQL statement violates a
    restriction imposed by the underlying database system of the ABAP
    system.

    Possible error causes:
     o The maximum size of an SQL statement was exceeded.
     o The statement contains too many input variables.
     o The input data requires more space than is available.
     o ...

    You can generally find details in the system log (SM21) and in the
    developer trace of the relevant work process (ST11).
    In the case of an error, current restrictions are frequently displayed
    in the developer trace.

 

How to correct the error
    The SAP Open SQL statement concerned must be divided into several
    smaller units.
    If the problem occurred due to the use of an excessively large table
    in an IN itab construct, you can use FOR ALL ENTRIES instead.
    When you use this addition, the statement is split into smaller units
    according to the restrictions of the database system used.


    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:

    "DBIF_RSQL_INVALID_RSQL" "CX_SY_OPEN_SQL_DB"
    "/BMW/SAPLATL_TW_I336_INQUIRY" or "/BMW/LATL_TW_I336_INQUIRYF03"
    "GET_ORDER_DATA"

 

    The exception must either be prevented, caught within proedure
    "GET_ORDER_DATA" "(FORM)", or its possible occurrence must be declared in the
    RAISING clause of the procedure.
    To prevent the exception, note the following:

 

Information on where terminated
    Termination occurred in the ABAP program "/BMW/SAPLATL_TW_I336_INQUIRY" - in
     "GET_ORDER_DATA".
    The main program was "SAPMSSY1 ".

    In the source code you have the termination point in line 108
    of the (Include) program "/BMW/LATL_TW_I336_INQUIRYF03".
    The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in
    procedure "GET_ORDER_DATA" "(FORM)", but it was neither handled locally nor
     declared
    in the RAISING clause of its signature.

    The procedure is in program "/BMW/SAPLATL_TW_I336_INQUIRY "; its source code
     begins in line
    59 of the (Include program "/BMW/LATL_TW_I336_INQUIRYF03 ".

 

 

 

SELECT vbak~vbeln                                         "MOD-006

         vbap~posnr

         vbak~audat AS erdat                                "MOD-006

         vbak~auart

*        vbak~lifsk                                         "Del MOD-005

         vbak~vkorg

         vbak~bstnk

         vbak~kunnr

         vbak~cmfre

         vbak~vdatu

         vbuk~cmgst                                         "Ins MOD-005

         vbpa~kunnr

         vbap~pstyv

         vbap~abgru

         vbap~kbmeng

         vbap~werks

*TDR22042010 <<< add shipping point                         "MOD-007

         vbap~vstel                                         "MOD-007

*TDR22042010 >>> add shipping point                         "MOD-007

    FROM vbak

    INNER JOIN vbuk                                         "Ins MOD-005

      ON  vbuk~vbeln = vbak~vbeln                           "Ins MOD-005

    INNER JOIN vbap

      ON  vbap~vbeln = vbak~vbeln

    INNER JOIN vbpa

      ON  vbpa~vbeln = vbap~vbeln

    INTO TABLE gt_orders

    FOR ALL ENTRIES IN lt_vakpa

    WHERE vbak~vbeln = lt_vakpa-vbeln

     AND  NOT vbap~pstyv IN gt_hl_item_cat

     AND  vbpa~posnr = gc_posnr

     AND  vbpa~parvw = lc_ship_to                           "MOD-006

     AND  vbpa~kunnr = kunag.             "KUNAG contains 'ship to' party !!    "MOD-006

 

 

Contents of system fields

Name     Val.

SY-SUBRC 0
SY-INDEX 5703
SY-TABIX 3
SY-DBCNT 5
SY-FDPOS 4
SY-LSIND 0
SY-PAGNO 0
SY-LINNO 1
SY-COLNO 1
SY-PFKEY
SY-UCOMM
SY-TITLE CPIC and RFC Control
SY-MSGTY
SY-MSGID
SY-MSGNO 000
SY-MSGV1
SY-MSGV2
SY-MSGV3
SY-MSGV4
SY-MODNO 0
SY-DATUM 20130710
SY-UZEIT 174556
SY-XPROG /BMW/SAPLATL_TW_I336_INQUIRY
SY-XFORM /BMW/ATL_TW_I336_INQUIRY_STAT

SapGui problem

$
0
0

I havea problemwhen selectingthe option ofquickcut and paste, I select itand does not performthe operationwhen using the7.10versiondid not havethis problemwhen usingversion7.20I could notdo thisfunsionperformingthecommandI canuseCtrl+Y.

Annexscreen

Calling FF.5 through zprogram

$
0
0

Hi All,

 

I have a requirement, according to that I have to pick file from desktop change its format and pass it on to FF.5

I have used gui_upload to pick and converted the file in an itab. Now how do I pass this itab to FF.5 in my zprogram?

 

I  tried

 

  Submit RFEBKA00

    WITH

     SELECTION-TABLE iout

      and return

 

But this gives me a dump. PERFORM PARAMETER TOO SHORT.

 

Any help please.

 

Thanks!

no value display in pricing?

$
0
0

I have add a field zzpernr in pricing table but when I call va01 no value is display.

I added code in exit

 

 

FORM USEREXIT_PRICING_PREPARE_TKOMP.

 

 

MOVE XVBPA-PERNR TO TKOMp-zzpernr.  but no value display?

 

class cl_salv_bs_runtime_info and alv block list

$
0
0

Hi all,

 

I have a requirement to submit a report and export the output to an internal table.

The report that i have to extract is using alv blocks.

i used the class  cl_salv_bs_runtime_info to get the alv , but it only catches the last alv in the block.

Is there any way to get around that?

 

thanks for your help.

zako

EDI for Scheduling Agreement

$
0
0

Hello experts,

I'm working on EDI for Scheduling Agreement. The scenario is buyer sends Schedule Lines (DELJIT and DELFOR) in EDI format. Then these EDI files needs to be imported into the Scheduling Agreement as schedule lines. Then according to the availability of the material, a Dispatch Advice needs to be sent to the buyer in the form of an EDI message.

Being a beginner to SAP EDI, i'm facing few problems.  As of now, I do you have following concerns...

  1. 1. The EDI files received from buyer are in string format. I'm not able to comprehend it. For format please find the attachment.

 

Should I directly import it into the SAP system? or Do I have to compulsory convert it into the IDOC format? If yes, do I compulsory need a convertor for it?

  1. 2. In either case, please guide me, how should I proceed? I've been struggling with ALE/EDI for couple of months but still did not get any useful information. 

 

Please, feel free to comment. All suggestions will be greatly appreciated.


Unit of Measure search help for a specific material

$
0
0

Dear all,

 

I am looking for a search help (F4 press) to bind it with the UOM column in the ALV to display the alternative units of measure that are available for this material only not the whole list.

 

Thanks a lot.

 

Regards,

Mohammed Mohsen

Do i need to UNLOCK the Z table prior LOCKing it for updation, as a make sure step?

$
0
0

Hello

 

After doing some validations, I am deleting record/s from a custom table via my prog. well. Flow is as below,

 

Logic -1

 

1) Lock the table by using ENQ FM

   IF sy-subrc = 0.

2) Deelete the entries from the Z table

 

3) Unlock the table by using DQ FM

   ENDIF.

 

is it OK?

 

or do i need to go as below?

 

Logic -2

 

1) Unlock the Z table by using DQ FM  ==> This is additional statement as to make sure

 

2) Lock the table by using ENQ FM

    IF sy-subrc = 0.

3) Deelete the entries from the Z table

 

4) Unlock the table by using DQ FM

ENDIF.

 

Pls. let me know whether Logic -1 is safe & correct? or Logic -2?

 

Thank you

Number_get_next

$
0
0

Dear all

 

I have used 'number_get_next' fm to generate sno. in snro i have defined number range with 10 digits ..but in the output im getting only first 7 digits after ecxecuting the program.how to resolve this

 

 

Thanks

How to add customized fields(POITEM) to the BAPI_PO_CREATE1

$
0
0

Hi All,

 

There is a requirement to post PO with BAPI 'BAPI_PO_CREATE1'.  In this case, there are few customized fields in line level (POITEM ). i need to post PO with these customized fields.

 

i extended the BAPIMEPOITEM and BAPIMEPOITEMX with customized fields. li try to post it through the EXTENSIONIN. 

 

Anyway , i could not post the PO with customized fields. Can you help me to solve this . Appreciate if you could provide some sample code.

 

Thanks in advance,

Rehan

Status 54 and 55 in IDoc mean?

$
0
0

Hi ,

 

 

Could you please tel me as to what the status 54 and 55 mean ?

 

Well I know

 

54 : Error during formal application check

 

55 : Formal application check OK

 

But my question is what does it mean ?

 

 

Is it the transfer between ALE and application layer ?

How does it happen and when it happens ?

And at which point of time the status of 54 and 55 get populated.

 

 

Thanks

Kannan

Viewing all 8332 articles
Browse latest View live


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