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

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!


With a structure find a table

$
0
0

Hello ,

 

i want to know how can i find a table when i know the structure ?

 

i type in se16 MEPO1235 and i get this message* where as in the technical information it is written table name : MEPO1235

 

 

( MEPO1235 is a structure, not a table )*

 

 

 

Thank you for your help

FKK_DOCT_SAMPLE_INI_OP problem

$
0
0

Hi Experts,

 

I have a problem with adding a new tab at FPE1, FPE2 and FPE3.

I have made the screen, copied the three functions:

FKK_DOCT_SAMPLE_INI_OP

Z_PSCD_EXT_XXX_ADD_OP_FDS_PBO

Z_PSCD_EXT_XXX_ADD_OP_FDS_PAI

... and set it in SPRO.

Everything works fine, tab ok, fields ok, data goes into fileds.

My problem is, when I try to disable the fields (in case of FPE3) than I cannot.

I use the functions FKK_DOCT_AKTYP_GET and FKK_DOCT_SUBSCREENS_MODIF, but when it loops through the screen names it does not find them.

Any suggestions?

Thanks a lot,

David.

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 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

SAPSCRIPT - TROY Signature related

$
0
0

We added a new company code and needed to add one more signature to the TROY DIMM installed on the printed. We got a new files from TROY and installed on our existing printer. This printer is was already using this setup and print signatures and MICR code. Now after installation certains windows and signature is getting printed on second page bt in same position. MICR number is not in MICR font installed on printer.

 

Please let me know what am I doing wrong.

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

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


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

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

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

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?

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

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..


BAPI Production Order Confirmation

$
0
0

Hi Experts,

          I have one task on BAPI Production order  Confirmation , Please any one guide me. I have searched and got the function Module alone but I dont know about how to use and all. the function module name as

 

BAPI_PRODORDCONF_CREATE_ACT    Enter Activity Confirmation                                              

 

BAPI_PRODORDCONF_CREATE_HDR    Enter Order Confirmations                                                

 

BAPI_PRODORDCONF_CREATE_TE     Enter Time Event Confirmation                                            

 

BAPI_PRODORDCONF_CREATE_TT     Enter Time Ticket Confirmation                                           

 

BAPI_PRODORDCONF_EXIST_CHK     Existence Check for Confirming Production Order                          

 

BAPI_PRODORDCONF_GETDETAIL     Detailed Data for Production Order Confirmation                          

 

BAPI_PRODORDCONF_GETLIST       Confirmations List                                        

 

Please Any one do the needful.

How to hold data in a subscreen

$
0
0

Hi everyone,

 

Is there any way to hold data in a sub screen , because after any input on the screen data in the screen will be automatically vanished. So how to avoid this problem.???

In normal screen, we have to put tick on one attribute then data will be hold after the input, but in sub screen there is no such a attribute..

 

Thank you,

Pathum.

Bapi_requisition_change

$
0
0

I tried for function module BAPI_REQUISITION_CHANGE. When i give purchase requisition number as a input it gives me message that "This Purchase Requisition number xx does not exist" I dont know what I am doing wrong.

Error when adding the ABAP for Ecplipse in HANA studio

$
0
0

Error faced in adding ABAP for eclipse in HANA studio,  I am adding ABAP for ecplpse 2.7 but facing this message:-

 

Cannot complete the install because one or more required items could not be found.

  Software being installed: ABAP Connectivity and Integration Development Tools 1.0.4 (com.sap.adt.pitools.tlf.feature.group 1.0.4)

  Missing requirement: Enterprise Service Development Tools in ABAP 1.0.4 (com.sap.adt.pitools.feature.group 1.0.4) requires 'org.eclipse.graphiti.feature.feature.group [0.9.0,1.0.0)' but it could not be found

  Cannot satisfy dependency:

    From: Scenario based Connectivity and Configuration Tools in ABAP 1.0.4 (com.sap.adt.pitools.npm.feature.group 1.0.4)

    To: com.sap.adt.pitools.feature.group [1.0.0,2.0.0)

  Cannot satisfy dependency:

    From: ABAP Connectivity and Integration Development Tools 1.0.4 (com.sap.adt.pitools.tlf.feature.group 1.0.4)

    To: com.sap.adt.pitools.npm.feature.group 1.0.4

 

I have added the graphiti tool in the SDK,

Not sure what to do next

how the values of condition type will update automatically?

$
0
0

Hi,

i have add a field in field catalog and write code for that on user exit

FORM USEREXIT_PRICING_PREPARE_TKOMP.

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:

   move vbap-PS_PSP_PNR to tkomp-zzwbs.

 

 

ENDENHANCEMENT.

 

now in VA01 i can see the field but in codition type prices not coimg automatically .........i have to update it manually like select the update tab den chose condition type C then all valus are update .

 

plz tell me how the values of condition type will update automatically?


Viewing all 8768 articles
Browse latest View live


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