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

how to restrict multiple table control line selection in single screen?

$
0
0

Hi Experts,

    

                            I have one requirement from  client ,i have three table control wizard in a single screen.If i select any one row of one table control the remaining two table controls should not allow the user to select a row.Since line selection option in the table control wizard is not an sy-ucomm command,how can we validate this?

Please give the solution for this.For helpful answer we will reward u points.

 

 

 

 

tc.png

 

 

Thanks in Advance,

Ashok Puttammanavar


Get text from trfcqdata-arfcdata01-07

$
0
0

Friends,

  Our users need a report showing data from inbound queues.  They want to be able to be able to restrict by and display by several fields that are in the trfcqdata-arfcdata01 - trfcqdata-arfcdata07 fields, which are 256 raw fields.  I have run the data through several raw to text function modules, but I can still not 'see' all the data, just the headings.  I have gone thourgh searching for arfcdata01, trfcqdata and others but I have not found a solution yet.  Thank you for any help on this and I will award helpful answers.

Kevin

Generating dynamic columns in ALV Report

$
0
0

Hi All,

 

Can any one guide me how to display the ALV Report based on the values in internal table.Here in my report(PP Module) the selection screen is the Material Number only.after executing this report, it will show the different defects for that particular material.That means based on the material the number of defects in different columns will be appeared.

 

eg1.

                                                   def1    def2   def3   def4

Material-1                                      1        2        4       0

Material-2                                      3        0        6       2

 

here i need to generate the columns dynamically based on the defect values for each material.

 

eg.2

                                                   def1    def2   def3   def4   def5

Material-1                                      1        2        4       0       0

Material-2                                      3        0        6       2       0

 

 

in the above eg.2 the two materials are not having def5 value (i.e ZERO) then no need to display, if the values is present for at least one material  like in  eg.1 for Material-2 (for Def4) then that column should be displayed. Hope my query so clear with the above examples....and please let me know the solution and more over i am using reuse_alv_grid_display for this report. if not possible with this FM then atleast suggest me some code snippet using oops....

 

Thanks in Advance

How to validate and display error message without making the screen disabled

$
0
0

I am using Enhancement AIST0002. Inside the exit exit_saplaist_003 i am coding  and validating Fields Lease Length and Notice Date and Lease Start Date.

 

But there should be an error message displayed when Notice Date and Lease Start Date difference is more than 99 years.

 

I am throwing a message for this. But every time the message is thrown the whole screen is disabled which shouldn't be the case. The screen field should be active.

 

Please guide me on this.

ME21/ME22 get PR Number in User Exits

$
0
0

Hi,

 

I need to validate data in ME21/ME22 tcodes using purchase requisition number (PO with PR as reference) but Ive tried without success (I read the EKPO internal table but the BANFN field is always empty). The following user exits have been used.

 

EXIT_SAPMM06E_006

EXIT_SAPMM06E_007

EXIT_SAPMM06E_008

EXIT_SAPMM06E_012

EXIT_SAPMM06E_013

EXIT_SAPMM06E_016

EXIT_SAPLEBND_002

 

Do you know other user exit I can use?

 

Thanks

Luis

How to create column headings in the output in SAP ABAP

$
0
0

Hi,

 

I am new to ABAP and I would like to know, how I can create column headings in the output of any program developed in SAP ABAP?

I know how to use header and footers but for ex if there are 6 fields/columns in the output, how can I keep headings for those columns. Please illustrate the process with steps and example if any. That will be really helpful.

 

Thanks,

Hari

Exit USEREXIT_SAVE_DOC_BEFORE_PREP note 751000

$
0
0

Hi All,

 

We are working on a enhancement in a delivery process. We want to change the field LIKP-XBLNR

when the PGI(Post Goods Issue) is created.

The requirement is that the number in the LIKP-XBLNR be recorded, when the PGI is created, by VL01N or VL02N transaction.

We implemented this note 751000, and now we work withUSEREXIT_SAVE_DOC_BEFORE_PREP, but thefield LIKP-XBLNR does not change.

 

Please your help with the procedure to be followed to keep a field when implemented USEREXIT_SAVE_DOC_BEFORE_PREP.

 

Or please give me another way to solve my requirement.

 

I am a functional consultant and am looking for the appropriate technical solution.

 

Regards,

Jhonny

T-code ME22N customization through Customer-Exit

$
0
0

Guys,

 

I want to customize the Telephone field of Address Tab in Header section of ME22N. that this Telephone field should allow only 10 digits. How?


Converting digit into words through HR_IN_CHG_INR_WRDS..

$
0
0

i am using this function module in debit credit report that is linked with sap script..

 

data : sub_tot like bseg-wrbtr.
DATA lv_amt       TYPE p DECIMALS 2.
data  lv_word like spell-word.
data : lv_amount TYPE PC207-BETRG.
*data : i_value like konv-kwert.
data : lv_inwords(255) TYPE c,
tmp_amt  type TDSYMVALUE.
data : spell_fig(80).
*break-point.

data : fig1(70),
        fig2(20),
        fig3(20).
tmp_amt = sub_tot.
lv_amount = tmp_amt.


    CLEAR in_tab.
    READ TABLE in_tab WITH KEY name = 'AMOUNT'.


    CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
      EXPORTING
        amt_in_num               = lv_amount
     IMPORTING
       AMT_IN_WORDS             lv_inwords
     EXCEPTIONS
       DATA_TYPE_MISMATCH       = 1
              .

move space to spell_fig.
split lv_inwords at 'Rupees' into fig1 fig2 .
concatenate fig1 'AND' fig2 'Only*' into spell_fig separated by space.

 

not getting any amount in print..also not getting any dump..

please help

I need to create a input field for product family and Order count – user will input any number in this field. The output should be that many most recent records (sales orders).

$
0
0

Hi friends,

 

I am doing a sd report which have an input field  product family? But i dont knw how to fetch it. and Order count –user will input any number in this field. The output should be that many most recent records (sales orders).

so i need help to solve these two fields.

 

Sales Organization             VBAK-VKORG

Distribution Channel           VBAK-VTWEG

Division                               VBAK-SPART

Sales Order #                      VBAK-VBELN

Document creation date      VBAK-AUDAT

Plant                                    VBAP-WERKS

Customer (Sold To)             VBAK-KUNNR

Material                                VBAP-MATNR

Material Characteristic         AUSP-ATINN   

Product Family                     VBAP-MATNR

Sales Manager                     VBPA-PARVW

Order count                           User entry

 

 

 

 

 

 

 

 

 

VBAP-MATNR

VBPA-PARVW

User entry

Password protected zip of spool in SAP ABAP

$
0
0

Hi Experts,

 

I have a requirement to do the following.

 

Need to send the spool details to the client through mail as password protected zip file. Now this is doing manually for lots of Jobs regularly. Please give me some ideas to implement it in ABAP. I'm trying this for long time but couldn't get any idea.

How can I use parallel processing in ABAP?

$
0
0

Hello everyone,

 

I am experiencing some difficulties in the implementation of a function to use under parallel processing.
Here's what I have:

 

  1. Function Group created;
  2. Function Module created;
    1. Attributes: Normal Function Module;
    2. Import: Variables that I want to process internally ("Associated Type": ANY; "Pass Value" selected);
    3. Export: Variables that I want to retrieve their values ("Pass Value" selected);
    4. Source Code: implementation of the function using the Import Variables and assigning them to Export Variables.
  3. Program in ABAP created as follows:

 

LOOP AT i_tab INTO aux_tab.

 

index = sy-tabix.

CONCATENATE 'Task' index INTO taskname.

 

CALL FUNCTION 'Z_FUNCTION'

     STARTING NEW TASK taskname

          DESTINATION IN GROUP DEFAULT

               PERFORMING receive_results ON END OF TASK

     EXPORTING

          var1 = var1

          var2 = var2, and so on...

 

ENDLOOP.

 

FORM receive_results

     USING

               taskname.

 

     RECEIVE RESULTS FROM FUNCTION 'Z_FUNCTION'

          IMPORTING

               var3 = var3, and so on...

ENDFORM.

 

If I don't use the "RECEIVE RESULTS FROM..." function, everything works (except for the fact that I don't receive the value of 'var3'). However, when I use such function, I receive this error: CALL_FUNCTION_REMOTE_ERROR (short text: "The function module 'Z_FUNCTION' cannot be used for 'remote' calls.").

 

Even if I don't use generic types for the import variables and check the "Remote-Enabled Module" option I still get errors, but this time they don't have anything to do directly to my code.


Thank you so much in advance!

Purpose of minimum and maximum number in maintain attributes for idoc segment

$
0
0

Dear Friends..

 

Could anybody explain the purpose of minimum and maximum number in maintain attributes for idoc segment with an example.

 

Thanks in advance..

Search Help Exit

$
0
0

Dear Experts,

 

 

I have a requirement in which I have to put certain validation in F4 help in Customer field in XD03.

But the thing is when I see the field name in XD03 screen by using F1 and tool tip it says RF02D-KUNNR (RF02D is a structure) and when i see the

field KUNNR of RF02D there is no search help at data element level.. and when i see KUNNR filed in SE11 it does contain a search help C_KUNNR..

KUNNR in RF02D have a different data element and KUNNR when seen in SE11 have a different data element.

 

 

So I want to as that in which field do i have to implement search help enhancement i.e. on RF02D-KUNNR or on KUNNR (As the both have a different data elements)..

 

 

Thanks in advance..

 

 

Regards,

Paavan

Error Message Debugging

$
0
0

Hello

 

I'm quite new to ABAP debug and there is a question in my mind.

 

For example, if I call transaction VF01 to create a billing document but it ends up with a message -

 

No billing documents were generated. See log

Message no. VF032

 

I can find this message in New Debugger. But the problem is that this information message doesn't really tell what exactly is wrong.

 

Then I follow the message to look into Log and find another message -

 

Error Log

            0080001234 000000 Document is incomplete so billing cannot be carried out

           Technical data

               Tech. data details

                Client                                 200
                Group Number
                Sales Document Number                  0080001234
                Item Number of the SD Document         000000
                Schedule Line Number                   0069
                Counter in Control Tables              00
                Message Identification                 VF
                System Message Number                  069
                Output Type                            E
                Message Variable 01
                Message Variable 02
                Message Variable 03
                Message Variable 04
                Group Type                             F

 

OK now I know the actual error is VF069 however I cannot set a breakpoint for this VF069 because the program doesn't seem to go there. For this kind of "hidden" error message how can I make my debug efficient?

 

yu


SAP Mail Recipient Configuration

$
0
0

Hi Gurus,

 

As a security measure, we are maintaining the validity of inactive users, who are no longer working in the company (in USR02 table GLTGB field)

Now, even after the validity is set, if a sender tries to send a sap mail, the system doesn't warn him; the message sends to the inactive users but the sender is unaware of this.

My requirement is to warn the sender with a custom error message:

msg-1_Layer 1.png

So I need to create an enhancement in SAP office: SOADRESS.

Can someone pls explain the procedure to do this.

And which FM to choose from:

EXIT_SAPFSSOD_001

EXIT_SAPLSO13_001

EXIT_SAPLSO13_002

 

Regards

~Kaushalya

Authorization for OOC3

$
0
0

Hello experts,

 

What is the difference btw OOC3 and S_AHR_61011887? When giving authorization via PFCG, and adding name S_AHR_61011887 to T-Code table. I assumed OOC3 authorization would work. However, it does not. Do I have to writhe in exactly OOC3?

 

Thank you for explanation.

 

K.

Statement "Call Screen" is not allowed in this Form (MIGO)

$
0
0

Hi Experts,

 

I am getting an dump in MIGO of call screen for program SAPLKKBL and also the below ones.

 

Cannot received P/Os : The goods receipt procedure does not work properly, at the end, after checking and posting the document, SAP shows that the material document has been created but the document does not print and when you leave the page a banner entitled " SAP office express info" appears with the following content: " Express document"update was terminated" received from author "Author name"" After this, the material document is nowhere to be found and the transaction has dissapeared as it never happened.

 

I am not aware of MIGO transaction to proceed in creating PO's please help

 

Thanks

Editing a code for a method in se19

$
0
0

Hi,

 

 

Path:  SE19 -> edit implementation ->classic badi implementation (here name is 'CL_CU_DEP_EDITOR') ->display->interface->method (CHECK_ACTIVE).

method if_ex_cu_dependency_editor~check_active.



endmethod.




i want to edit and write a code for  in between method and endmethod statements.Here enhancement cannot be used .
So please suggest a valid way to do it.

Regards,
Vinit.

SAP Server too slow

$
0
0

Dear Concern,

 

We have recently setup a new SAP Server. We have completed all the Installation steps.

 

And SAP is working fine.

 

The whole issue is coming when We try to delete a imported Custom Data Dictionary Object from SAP be it Custom Table/ Structure/Data Element etc.

 

i..e We have imported Co and Data files in this new SAP Server. Due to some reasons, we need to delete the Objects imported through the SAP Server.

 

And when we try to delete Custom Data Dictionary Objects, program dumps.. And nothing is deleted.

Please advice me what is the root cause and what should i do to avoid this?

Viewing all 8332 articles
Browse latest View live


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