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

Update infoType 0008

$
0
0

Hi expert,

 

when i delete record in info type 0008  , i want update the last record

I thought I could update infotype 0008 in userexit ZXPADU02 whenever infotype 0008 was saved using the function module HR_INFOTYPE_OPERATION but it is not working for me.

 

Any help would be appreciated.

 

Best Regards

Ami


F4 in ALV grid

$
0
0

Hi,

I tried adding the F4 functionality to one field of ALV into the field catalog:

  k_outtab_fields-ref_table  = 'USR21'.

  k_outtab_fields-ref_field  = 'BNAME'.

 

The F4 could display me a listing of users, however, it is not able to return the value selected into the ALV grid. Could someone help? Thanks in advance

 

Rgds,

ET

ME9F - Custom development not works for all user id

$
0
0

Dear All,

 

I have a requirement like if P.grp is other than AB1 and AB2, the message should not get triggered  in ME9F

and should show a pop-up message that the P.grp is not AB1 and AB2.

 

In T-code: ME9F, after initial screen, by selecting the check box of the PO line item and clicking for message output, here the logic has been

included by the ABAP'er and it is working fine as expected for "me".

 

The issue is like the development works fine for my user id and not for customer.

I "guess" this might me due to authorization/role issue, or due to parameter id or any other issue.

 

Could you pls help which parameter id / roles needs to be added or deleted which is causing this issue.

 

Thanks for the help.

Vasanth 

DBIF_RSQL_INVALID_CURSOR Error while using SELECT ENDSELECT

$
0
0

Hello Experts,

I am having an ABAP report that selects data from BKPF in batches using SELECT ENDSELECT statement with PACKAGE SIZE option.

First select passes fine, on reaching the ENDSELECT and doing the 2nd  iteration SELECT statement is creating a DUMP: DBIF_RSQL_INVALID_CURSOR.

I checkd some links and SCN posts. There is no COMMIT . BREAK-POINT in between.

Its an emergency as its affecting a critical deliverable.

Can you please help?

 

Thanks,

LT

Validating tab delimited file

$
0
0

Hi,

I have to make a report that have to upload tab delimited file from presentation server and perform operation then.

Now, can anyone tell me:

1. how to validate if file is tab delimited at all or not?

2.how to check if file has correct data i.e. say in the incoming file there should be 18 column, all of them can be filled or not at a time. how to check if file has data for required column only?

 

Regards

Ajit C

ABAP Dump:DBIF_RSQL_INVALID_CURSOR in SAP Query

$
0
0

Hello All,

 

We have a strange dump DBIF_RSQL_INVALID_CURSOR coming up in of our Custom Query in MM module. The Query goes in dump for some users and for other user it is working perfectly.

 

There has been no change done from ABAP side in the Query and it was working well before.

 

We analyzed the Dump in ST22 and found that dump is triggered at Select statement (Join statement for MARC)..However this is happening for some users.

 

There seems to be no ABAP error as nothing has been done on it.

 

Could any one let me know why this DUMP is coming..is it a KERNEL change issue or something in BASIS triggers it.

 

 

 

Please suggest!!

 

 

Thank you

 

Arvind

Creating TO using FM L_TO_CREATE_DN

$
0
0

Hi Expert,

 

I am trying to create TO using FM L_TO_CREATE_DN for a delivery number. My code is below:

 

CALL FUNCTION 'L_TO_CREATE_DN'
       EXPORTING
         i_lgnum                    = l_lgnum
         i_vbeln                    = l_vbeln
         i_squit                    = c_x         
         it_delit                   = t_delit     
         I_TEILK                    = c_x
       IMPORTING
         e_tanum                    = l_tanum
       TABLES
         t_ltak                     = t_ltak     
         t_ltap_vb                  = t_ltap1     
         t_wmgrp_msg                = t_wmgrp_msg
       EXCEPTIONS
         foreign_lock               = 1
         dn_completed               = 2
         partial_delivery_forbidden = 3
         xfeld_wrong                = 4
         ldest_wrong                = 5
         drukz_wrong                = 6
         dn_wrong                   = 7
         squit_forbidden            = 8
         no_to_created              = 9
         teilk_wrong                = 10
         update_without_commit      = 11
         no_authority               = 12
         no_picking_allowed         = 13
         dn_hu_not_choosable        = 14
         input_error                = 15
         OTHERS                     = 16.

 

But I am not getting any TO using this code. Also no error messages. How to get TO using above FM?

Any possible solution would be gratefully accepted.

 

Thanks,

Arindam Samanta.

BAPI_DOCUMENT_CHANGE2 creates inconsistencies in document infor record

$
0
0

Hi guys!

 

I've got a small problem with function module BAPI_DOCUMENT_CHANGE2. Maybe one of you are faced the same already.

 

Situation:

We have assigned document info records to material master. The document info record uses classification to store some additional information.

 

Symtom:

We perform updates on the document info record + classification. Sometimes we have to delete one of the allocated classes. This works fine via transaction CV02N but if we delete the class allocation via the BAPI, we have an inconsistency in CV02N. The entries in table AUSP are deleted in both scenarios.

In the screenshot below you can see that one of the two assignments in inconsistent.

 

classification.jpg

 

Tech. information:

When we execute the BAPI, we use the deletion indicator in parameter CLASSALLOCATIONS and CHARACTERISTICVALUES. First, I thought that the problem could be causes because we delete the characteristics too, but when we don't delete the characteristics, the class assignment is not deleted either.

 

Thanks a lot and best regards,

Florian


How to check whether an sd invoice has a document attached inside

$
0
0

Hi ppl,

i need to check, within a report, whether a sd invoice (VF01) contains a document attached (as pdf or doc or txt).

IS there a std table i can look into (IE using invoice number as key) and check if it contains any attachments?

When i i say attachments i refer to external documents you can insert/link to an invoice using a button

within the invoice dynpro (in 46c is up left in the main vf01 or vf02 dynpro).

the next step would be do download it and send it to customer(always through a background report ).

Any clues?

Pls, it's a very very urgent issue.

Thanks a lot.

Bruno

Assert Error on FV60

$
0
0

Hi folks !

 

I got an error on batch inputed FV60 document. When i try to delete him, a dump occurs (more details in attachment). How can i resolve this?

 

 

 

Is there anynote tofix it?

Regards,

 

Hi I m planning to take up the SAP ABAP certification please help me with sample question paper tips etc

$
0
0

Hi I m very new to SAP and planning to take up the SAP ABAP certification please help me with sample question paper,  tips on how to prepare

 

Message was edited by: shruthi Manas

Combining Internal tables

$
0
0

Hello, have 2 internal tables. both have different structures but there is one field in both tables which is the same but it is named differently in both internal tables.

 

internal table 1 has a lot of fields but i only want these fieldS:


MATNR
BUKRS
BELNR

 

Internal table 2 has a lot of fields but i only want these fields:

PartNumber
Store

 

What I did is this.
I created one final internal table and declared it as this.

TYPES: BEGIN OF s_fin,
MATNR type MARA-MATNR,
BUKRS type BSEG-BUKRS,
BELNR type BSEG_BELNR,
Part  type MATNR-MATNR,
Store type Zext-Store,
END OF s_fin.  

DATA: int_fin type standard table of s_fin,
      wa_int_fin type s_fin.

LOOP AT IT_TAB1 INTO WA_TAB1.
wa_int_fin-MATNR = WA_IT_TAB1-MATNR.
.
.
.
wa_int_fin-PART = WA_IT_TAB2-PART.
wa_int_fin-store= WA_IT_TAB2-STORE.

APPEND WA_itab_final to itab_final.

ENDLOOP.

 

The problem is that data in my first internal table is coming in my final table fine but, second internal table keeps sending one store number to my final table. somehow i need to refresh the work area of my second table as well and also match Material number to part number. I am not sure how to do that. Please help.

Thanks.


Thanks.

Error : Field wa_name does not exist in the form

$
0
0

Hi Experts,

 

I have a query similar to your original post but don't know exactly how to proceed.

 

When i am trying to issue Delivery output for T code VL02N after selecting Output type e.g. 'ZABC'

and then selecting print preview, it gives following error.Please see the screen shot :

wa_name.png


I have checked the driver program as well as smartform thoroughly , wa_name has not been declared any where.

I tracked down the place of error and it coming from FM 'SSFCOMP_PROCESS_DOCUMENT'


CALL FUNCTION 'SSFCOMP_PROCESS_DOCUMENT'

        EXPORTING  HEADER            = %HEADER

                   DOCSTRUC                   = %DOCSTRUC

                   STARTPAGE                  = CONTROL_PARAMETERS-STARTPAGE

                   ARCHIV_INDEX_TAB      = %ARCTAB

                   MAIL_APPL_OBJECT      = MAIL_APPL_OBJ

        IMPORTING  RESULT                = %RESULT_PD

        EXCEPTIONS OTHERS              = 1.

   IF SY-SUBRC <> 0. PERFORM %RAISE. ENDIF.

   DOCUMENT_OUTPUT_INFO = %RESULT_PD.

 

SY-SUBRC becomes 1, consequently it raises above error using subroutine %RAISE.


Interestingly, when i pass same data to the FM for different Outbound Delivery No., it does not show any error.

In this case SY-SUBRC is EQ zero. and smartform print preview gets processed successfully.


Dont know how to track down the error, please let me know the solution to eliminate this.


Best Regards.

Saurabh Singh

Debug an Smartform (Initialization)

$
0
0

Hello,

I want to debug the Initialization program in my smartform, I got the user: probau, and I have added a line to debug: BREAK PROBAU. Please see image below:

Captura.PNG

This smartforms is used  in MIGO Transaction:

Captura1.PNG

But when I do clic in POSTED button, only display a correct message but never run the debug mode:

 

posted.PNG

Anyone knows how can I solved this?

SAP Characteristic Issue

$
0
0

Hi Gurus,

 

I'm facing a problem where I need to get "sub characteristics" (if this is what they are called) for a Material. I searched SDN and Found how to get characteristics for a Material, using tables KSSK, KLAH, AUSPm using BAPI_OBJCL_GETDETAIL, etc.

 

For a Material I have several characteristics, one of them Being VS_TREATMENT (141) and value TM. Now, going to transaction CT04, I see that this characteristic has a field called Active Type N (N = 1 to 10 --> Untreated, Fungicied, etc).

 

My problem is how can I get this Active Type for the Material I'm in? I can't find the relationship between these 2. Can anyone give me a light on this?

 

Thanks in advance.

 

Regards,

Ernesto.


Enhance CV03N

$
0
0

Hallo,

 

we want to enhance CV03N so that we can see more informations under the tab "Object Links" for "Material Master".

We want to show same more informations from table mara or makt.

 

Is it possible to enhance this screen without motifications?

 

Thanks

Arnfried

Delivery Item Modification at "SAVE"

$
0
0

Hi All,

 

The requirement here is to change the Country of Origin/Region of Origin from the Foreign Trade tab of first Item of an Outbound Delivery with the Country of Origin/Region of Origin from the Batch Item line at the moment of saving the delivery. There are a couple of User Exit and Badis available, but do not have the option to modify them.

 

Fields to change EIPO-HERKL and EIPO HERKR.

 

So far I have:

 

Custom Exits:

EXIT_SAPLV50E_001

EXIT_SAPLV50E_002

EXIT_SAPLV50E_003

EXIT_SAPLV50E_004

EXIT_SAPLV50E_005

EXIT_SAPLV50E_006

 

Badi

 

LE_SHP_DELIVERY_PROC

 

User Exit

 

MV50AFZ1

 

I then searched for Explicit Enhancement but found none. The thing is that it seems this data is calculated at the time of Delivery Creation VL01N (user can then change this data manually) or when Line Item is changed (allowing me to change data but not being saved to the DB).

 

I need to change this at time of saving Delivery. Does sombedy know a work around for this?

 

Any help will be much appreciated.

 

Regards,

Ernesto

How to convert ecxel date example 41640 to date 1/1/2014

$
0
0


Hi Gurus

I have a requirement where the table is already saved with excel date as 41640 which is 1/1/2014.

Now I need take this value and I need to convert it to 1/1/2014 in sap date format.

 

Can you please help.

Multiple select on table control

$
0
0

Hi,

 

Is it possible to select multiple rows of a table control using shift + control keys? If so, how can I achieve this?

I have mutilple select option checked but that works only if the lines are individually selected.

 

Regards,
Esha

Report variant values saved somewhere in SAP?

$
0
0

Hello Gurus,

 

I am an end user of a Z report that we have in our system. This report I could execute for only one material number (which is also a selection screen field for the report) at a time earlier. So now I got it enhanced to be able to run for multiple materials at the same time. But now what I observed is that all the material numbers that I had saved in different variants are gone! The ABAPer is telling me that it is because we changed the selection screen field on which the variants are dependent. He says that I will not get those values back even if we reverse the change.

 

Now I have got myself into a situation. I had 42 different variants for the same report and there were multiple different values stored in those variants for the material number. But they are all gone now and unfortunately I have not documented those/remember them.

 

How could I get those material numbers again what I maintained in the variants earlier?

 

Please help.

 

Regards,

V S

Viewing all 8332 articles
Browse latest View live


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