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

How to create a radio button in SAP Query SQ01/SQ02.

$
0
0

Hi all,

I have created on Query for table RESB.

I want to add one radio button in selection screen of the query called "Pending only".

 

What i want to do based on this is, i will filter data based on this.

If i select this radio button then system should remove line item with

RESB-KZEAR and RESB-WLOEK = blank.

and if i don't select radio button then it will show all lines.

 

 

I don't know how to create radio button at all.

 

Please help me.


FF_5 User Exit to calculate tax automatically.

$
0
0

Hi Guys,

 

The postings in FF_5 are done through transaction FB01 in the background. There is no way the user can enable the Calculate tax automatically (BSEG-XMWST)check box in the background. I would like to know if there are any appropriate user exit or BTE to use to enable me to tick that check box for certain conditions, e.g. specific GL accounts (BSEG-HKONT) and document types (BKPF-BLART). I tried BTE's 1020 and 1120, but they are not working. I'm guessing they are implemented too far into the process that they are not effective.

 

Please assist.

 

Regards,

 

Darlington

How to find change in Pricing Condition Type value in VA02.

$
0
0

Hello Gurus,

 

need your help in below scenario.

 

Im my project we are using 2 pricing condition types, say 'A' and 'B' , while creating Sales Order.

 

so my requirement is like I need to create Z table with following fields.

1. Sales Order Number

2. line item

3. Date_A

4. Date_B

 

Whenever condition Type value is changed in VA02 , I need to maintain that date log into this Z table.

 

These fields should contain the latest updated date. 

 

I have done some R&D and found out  X Structure will contain Runtime Value and Y will contain old values.

Issue is that I am able to see only one table XKOMV[] for condition pricing . YKOMV[] is not there.

So how I am gonna compare new and old value for both condition type.

 

Please share your though on same.

 

Thanks in advance.

 

Regards,

Mayur.

how to find customer address using vbeln?

$
0
0

Hi everyone!

I'm working with scripts.In a driver program i write code for fetching address from KNA1 table using 'vbeln' (sales order no).

Data fetching:-     vbak->vbeln kunnr

                           kna1->kunnr adrnr

then i use this function module ADDR_SELECT_ADRC_SINGLE.

after running this function module i m getting sy-subrc = 1(address not exist).

then how to find customer address?

          I'll attached my program code.

 

 

 

Thanks for your help!

 

Regards

pass string longer than 255 characters to a single line of internal table

$
0
0

Hi,

 

I am facing issue while moving string having around 1000 characters to internal table.

 

It is only transferring first 255 charcters to internal table. In loop if I concatenate and append to internal after 255 characters it appends it to next line.

 

I tried using string data type and other data types (like edid4-sdata or idocline). It is not wroking.

 

Thanks,

Sanjana

Authorization on change of PO ITEM TEXT

$
0
0

Hi.. Experts,

 

     I have a requirement like, I have to put authorization on some TEXTS at PO ITEM level. But I'm not getting how to put authorization on text, like only      HOD of MM department could change that text.

 

     I got a BADI -  ME_PROCESS_PO_CUST     Enhancements for Purchase Order Processing: Customer

    

     and a USER EXIT - MM06E005 - EXIT_SAPMM06E_012

 

     But I'm not getting what to write there??????

 

Thanks......,

Sombhu

How to load a string(which I select) into SAP from a webpage?

$
0
0

Dear SAP Experts,

 

I designed a SAP screen with a text box and a push button using module pool pgm. when I click that push button (i.e. in PAI), it should generate some static URL of an aspx page (.net) in browser. Since that push button generates that URL we will get the popup browser window with that corresponding aspx page. In that web page I will select one value(MATNR), that value should get filled in my text box(MATNR) which I designed in SAP screen using module pool programming.

 

 

Thanks in Advance.

 

-Janaraja

problem with credit card transaction data upload

$
0
0

helllo all,

 

I am trying to upload credit card transaction data from transaction prcc_vcf4. In the development it was successful without any errors

When iam trying to upload it in quality is giving lot of errors like.

 

1) unable to determine credit card category

2) Infotype '0001' for 20130617 does not exist for pers. no. 00000000

3) Infotype 0105 could not be found

4) No entry in table V_T702B for argument  VI OTHERS....

5) No entry in table T702O for argument  US

6) Trip currency  must match currency USD of total amount

 

etc....if its configuration problem can anyone tell where exactly to check

 

Thanks

ujwal


problem while data retrieving

$
0
0

Hi,

 

I am unable to retrieve exnum1.

 

SELECT SINGLE docyr exnum INTO (itab-docyr,itab-exnum) FROM j_1iexchdr WHERE rdoc = itab-vbeln.
  IF itab-docyr IS NOT INITIAL AND itab-exnum IS NOT INITIAL.
SELECT SINGLE exnum INTO itab-exnum1 FROM  j_1iexcdtl WHERE trntyp = 'ARE1' AND docyr = itab-docyr AND werks = itab-werks AND
     rdoc2 = itab-exnum.

ENDIF.
MODIFY itab TRANSPORTING docyr exnum exnum1.

 

Regards

Kalpana

Access a Data node in Java Script via SOM Expression.

$
0
0

Hi Friends,

 

 

I have an issue in accessing of data nodes which is not bounded to any form field in PDF. I have some validation which i need the value of data node .  Note: its a single field that i want to access the value.

Could you please tell the SOM expression to access the Data node field  via  xfa.dataset.data. with example.

 

I referred Script basics documents but couldn't able to find relevant examples.


Thanks


Best regards

surender

Compare char fields

$
0
0

Hi,

 

I have some doubt about how it works, the comparation between fields with the type C.

 

For example with the field type KOSTL it is a CHAR 10.

 

Data types (C, D, T, X), the comparison runs from left to right. The first character from the left that is different in each field determines which operand is greater. Text fields (type C) are compared based on the underlying character codes.

 

For the other types (C, N, X) with different lengths, the shorter operand is converted to the length of the longer before the comparison. It is then filled out as follows: Character strings (type C) are filled with spaces from the right

 

But I can't understand why this are true.

 

00383E0000 <= 0383045997 <= 0383E00196

 

 

Thank you in advance.


Few things regarding debugging

$
0
0

Hi All guru,

 

I want to know few things regarding debugging of basic level i gone through google and help.sap but there all describe with abap.As a functinal candidate i want to know only the concept of using,i hope i will get help to learn - 

what is the reason to set breakpoint?

what is the reson to set watchpoint?

what is the difference betwwen F5,F6,F7?

how to find bug in programme on value?

   please correct me,if in my question some wrong is there..

 

Thanks in advance,

Deep

Image in Selection Screen

$
0
0

Purpose:

To decorate the selection screen of a development with meaningful pictures.

 

Idea Background:

Often there is lot of blank space left out the selection screens of report programs. And these reports are more often Function specific / End-user category specific.

Hence a thought to identify the program at the first glance itself with the respective function, gave rise to this idea. If we provide pleasant images related these functions in the Selection screen, these will look good and reduce the boredom from the monotonous screens.

Also we can have relevant captions / slogans on these pictures.

 

Here are few such screens.

tyre.jpg


dt.jpg

zpm1.jpg

 

Sounds useful?  and want to have screens like this?

 

Here is how

This is done using the Docking Container either at the right or bottom of the screen.

1. Upload the image

Let's suppose the requirement is to have a picture in the Docking Container located at the bottom of the screen.

The approximate pixel size of the image required will be 1280 (W) X 370 (H)   (in case of PC with 1366 X 768 resolution)

(The size is about 650 X 580 in case the Docking Container is on the right)

Have the image on the desktop, (.jpg extn will do).

 

Tcode: SMW0

smwo.JPG

 

Execute

smw0_1.JPG

 

Click on Create: Give name of the object (say XYZ) and descitption

Click on icon Import

Select the image on Desktop and click Open.

smw0_2.JPG

Now the image is available in the system for use.

 

 

2. Coding in your Report Program

 

Data Declaration:

Capture.JPG

 

At selection-screen output or Initialization

Capture1.JPG

 

See the red underlines, in the code above,

The first one namely 'bottom' refers to the position of the Docking Container. (For position on right, this would be dock_at_right)

The second one '215' refers to the Docking Container window extension, with reference to 0 at the bottom.

 

 

Picture Loading

Capture2.JPG

In the code above the arrow shows the picture Id we have just uploaded.

 

Now your selection screen is decorated with a picture.

 

Note:

The picture resolution varies as per the Desktop / PDA resolutions.

So it is advisable to try this on a machine which matches with the resolution of maximum number of machines in your area.

And also have a look at PCs with other resolutions, so that the selection fields are not covered by the Docking container.

The Docking Container is an adjustable window, so this can be pulled down/right to uncover selection fields, if at all this happens.

 

Jogeswara Rao K


BAPI SALES ORDER CHANGE

$
0
0

Hi all,

    I'm using BAPI SALES ORDER CHANGE for change sales order,Now i want to add item with item text, Is it possible through tis BAPI?  if it's possible tell me how to do? wit example pgm. solution will be highly appreciable..

abap help - for refreshing result screen.

$
0
0

Hi SAP Guru,

 

I'm a beginner in the SAP ABAP world and i have been asked to look into whether the result of a selection screen can be update automatically every 5 minutes  instead of the user manually refreshing the screen via the selection criteria search screen or using a refresh button.

 

Any advice would be helpful.

 

Thanks.


Spool in sp01 is Waiting even after its completed

$
0
0

Hi,

I have made changes to a smartform triggering from a Tcode.

The program generates the Form and iam able to see the preview in SP01 Spool.

But the Spool request is always in  'waiting state' even after its completed.

 

Please let me know what is causing this and how to fix it,

SAP ABAP Programming :: Learners Guide (Introduction)

$
0
0

From this blog you'll get to know about the following topics.

 

  • ABAP Programming Introduction
  • Basic features of ABAP
    • the ABAP workbench and tools.
    • How to create a domain, a data element, and a table.
  • How to

1. Write routines

      • Start, field and end routines in transformation.
      • ABAP routine in Infopackage.
      • ABAP routine in DTP & Conversion routines.

2. ABAP Debugging

      • Debugging Routines / Simulation on DTP.
      • Debugging FM.
      • Debugging Reports.

3. Improve Performance

 

ABAP Programming - Introduction:

 

ABAP stands for Advanced Business Application Programming.

 

All Modules in SAP - R/3 such as SD, MM, FI and PP are written in ABAP.

 

When you perform a transaction in R/3, an ABAP program runs in the background. This program extracts relavant information from SAP databases based on the parameters specified for the transaction and displays the output. Each screen you view in R/3 is created using an ABAP program.

 

There are two types of ABAP Programs,

  1. Report programming
  2. Dialog programming

The two types of report programming are,

  1. Traditional report programming
  2. Interactive report programming

 

Traditional report programming

 

     A traditional report programming is an Input/Output screen programming. This program is activated and executed when you enter specific input parameters in the input fields and run the report. Based on the input parameters, SAP displays the output in list format on the screen.After this, the program concludes and you can't interact on the output screen. It is a kind on one way communication between the user and the program.

A traditional report program consists of only two screens.

1. Input parameter screen is called Selection / Input screen.

2. Output Screen.

The Output screen doesn't have any input fields.

 

Interactive report programming

 

     An Interactive report programming offers more flexibility than the traditional report program. Instead of two screens, an interactive program consists of multiple screens and you can drill down through several screens to veiw the desired information. Unlike the traditional report program, you can interact with the output screens, but you cannot manipulate the information displayed on the outout screen.

     An typical Interactive report program enables you to

    • sort the information displayed on the ouput screen
    • print selective information
    • controls the number of fields displayed on the output screen.

 

Dialog programming

 

A dialog programming consists of multiple screens and enables you to manipulate the information displayed on the output screen. Using this program, the Output screen can contain input fields, push buttons, and multiple scrollable areas.

 

      An Interpreter interprets the ABAP programs, report and dialog. An Interpreter is a program that executes other programs. It will read each line of code written to build an ABAP program. If an error, such as a syntax error, is encountered, the interpreter reports the line number at which the error was encountered and stops reading the rest of the code in the program.

 

Components of an ABAP Program

 

The major components of an ABAP program are,

 

  • Source Code  - Code you write in ABAP program is considered as a source code
  • Attributes - It is a propert that you define for a program. The properties are title, language, status(active/inactive), creation & last modified date of the program
  • Text elements - It is a short description of the report headers
  • Documentation - It helps the developer to understand the flow of the program
  • Variants - It is used to save the set of input values that are used very frequently.

Project definition greyed out for input-only selection from the pop-up.

$
0
0

Dear Experts,

 

I have a requirement where we need to gray out Project Definition in tcode CJ01/CJ06/CJ20N. For input only one can choose from pop up. Could anyone please let me know where to write the code for this. Any standard exit/badi is available?

 

 

Thanks.

Need table names for Mfrnr , which is assigned to BOM Component ??

$
0
0

Hi All,

 

Please suggest me table name in which MFRNR is assigned when we assign MFRNR for a particular BOM Component ..

 

 

I found this field in MARA table . but i need to know when we assign multiple MFRNR codes to particular BOM component in CS01 tcode.

 

 

Regards ,

 

Lokesh

problem in size of pdf file converted through auto email of alv report

$
0
0

hello,

     I had develop a code for auto emailing a report to users as pdf attachement but when the file gets generated, its size becomes very small and the columns gets shrink and because of this the data is not visible in correct way. Plz suggest answers for this. As I already use this function also but getting a runtime error as Invalid subfield access: Offset too large

 

CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'

      EXPORTING

        line_width_src              = 134

        line_width_dst              = 255

      TABLES

        content_in                  = i_pdf

        content_out                 = l_attachment

      EXCEPTIONS

        err_line_width_src_too_long = 1

        err_line_width_dst_too_long = 2

        err_conv_failed             = 3

        OTHERS                      = 4.

    IF sy-subrc NE 0.

      MESSAGE s000(0k) WITH 'Conversion Failed'.

      EXIT.

    ENDIF.

 

Thanks in Advance.

Viewing all 8332 articles
Browse latest View live


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