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

How can I get data from Message class in Smartforms

$
0
0

Hello gurus,

I have desginaed an smartform,  my functional team says, that they will be send the data from ME21N and from message class, but I dont know what  I need to do to get information, in my requeriment, I have the data type I need show. Please see below:

-Purchase Order Nbr:EBELN

- BILL TO / FACTURAR A: BURKS

 

SUPPLIER /PROVEEDOR: LIFNR

- PROMISED DATE / FECHA DE ENTREGA: LFDAT

-Project/Centro de costos KOSTL , DISUB_PSPNR

-Requisition/ Solicitud de Pedido:BANFN

Description/Descripción TXZ01

-Unit/Unidad MEINS

-Quantity/Cantidad  BSMNG

 

SMARTFORM.png

 

 

My question is, what table type I need to define to get data? How can I catch information to be show in my smartforms???

 

How can I define a table type a message class to get information and show in my smartforms? it is possible something like this: MESSAGE E004(ZR0) INTO  IT_MessageClass


issue in RK2AF000_POST processing

$
0
0


Hi,

 

 

subroutine pool "RK2AF000_POST" processing takes too long hence other jobs are getting cancelled.

 

Does anyone know how this is generated. how can we run it so that performance issue can be resolved.

An exception occurred which is explained in detail below.

$
0
0

We have upgraded from 7.0 to 7.01 SP08 (for the srm server).   We are now getting a dump when we try to go to the Assign Source of Supply area.   The error is

What happened?
    The exception CX_WDR_RR_EXCEPTION was raised, but it was not caught anywhere
     along
    the call hierarchy.

    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program 'SAPLWDR_RUNTIME_REPOSITORY'
     has to be
    terminated.

Error analysis

  

    The exception, which is assigned to class CX_WDR_RR_EXCEPTION was not caught

     and

    therefore caused a runtime error.

    The reason for the exception is:

    Navigation target O_TO_STANDARD_VIEW_TREF_4 does not exist within component

    FPM_GAF_COMPONENT

How to correct the error

    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:

    "UNCAUGHT_EXCEPTION" "CX_WDR_RR_EXCEPTION"
    "SAPLWDR_RUNTIME_REPOSITORY" or "LWDR_RUNTIME_REPOSITORYF07"
    "IF_WDR_RR_VIEW_USAGE~GET_TARGET_FOR_NAV_LINK"

It is most likely a conflict between the upgraded screens and our prior customization but we are not sure where to look.   In all of my searches - any suggested notes have been applied to the system. 

Suggestions?

KNA1 Language Problem

$
0
0

Hi everyone, i have a big problem with my clients coming with RFC.

When PI calls RFC, i check if client was registered for the sales organization and distribution channel. If he was registered i just register he for another distribution channel.

 

But my old clients who already are registered have information of KNA1-SPRAS = 'P' (of portuguese) and ADRC-LANGU = 'P, but if i open he on XD02/XD03 transaction he are with no language!

 

 

 

Anyone can help me? Thank you!

srel_get_next_neighbors download attachment from sd invoice

$
0
0

Hi Gurus,

i am facing a heavy and urgent issue on a 46C machine:

 

through FM srel_get_next_neighbors , inputting parameters  SD invoice No and String VBBK,

i was able to download PDF (or other doc types) attached within an invoice Document(VF01/02/03),

and send it to customer.

Apparently a report who's trying to download several PDFs in a single shot is giving weird results,

like downloading pdf's as if they belong to a different invoice:

 

   I.E.    invoice1   pdf1

            invoice2   pdf2

            invoice3   no pdf

          

   when i call srel_get_next_neighbors 3 times in a report ,the 3rd time it downloads a pdf as if

   belonging to invoice3 when actually that invoice doesnt have any.

Does anybody faced this weird issue?

IT's kinda urgent as we are sending e-invoice to several customers and they receive attachments

who don't belong to them.

Suggestions? Hints? Help?

Other FM i can use? is there a std table i can priorly use to check whether a invoice has a pdf attached?

Thanks a lot ppl.

Bruno

JE Upload -BAPI_ACC_DOCUMENT_POST

$
0
0

Hi All,

 

I am Posting Journal entry through  BAPI_ACC_DOCUMENT_POST. Still Not got Success because i am not sure what fields mandatory in that BAPI ..

 

Please let me know what fields are manditory in HEADER/ ACCOUNT / Currency ..etc .. Any other Parametrs also need to use.

 

Please suggest.

 

 

 

Thanks

Prabu K


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

Smartform table display by nested loop

$
0
0

Hi All,

 

I am facing a problem on creating smartform for Purchas Order. In that I want display two tables namely ITEM table , DELIVERY SHEDULE table.

for each line item in ITEM table may contain many line item in DELIVERY SHEDULE table. for ex. for line item 10 in ITEM table has ten entries in DELIVERY SHEDULE table.

Now , i want to display first line item on ITEM TABLE and respective entries on DELIVERY SHEDULE table in first page, then second line item on item table and its res. entries in DELIVERY SHEDULE table in 2nd page and so on..

 

I created the smartform. in Main window I craeted a loop. inside the loop i created ITEM table. I created 2nd loop   inside the first loop with DELIVERY SHEDULE table.   while I executing i am getting  182 pages. item table all enties coming on first page. but delivery table displayed repeatedly in all pages..

 

Does anyone know what is the problem?


How to Implement Count logic using Order Quantity and Delivery Quantity

$
0
0

Hello Gurus,

 

Could you please let me know how to code the below logic? I have created a APD, for which the input is a BEx query and Output is a (Direct Update) DSO. The output of this DSO contains Sales order, Line Item, Delivery Number, Plant, Ship Point, Ship Date, Order Quantity and Delivery Quantity columns (Screenshot attached).

 

The aim is to check whether for each line item of the sales order, if order quantity equals delivery quantity. Count the number of line items that satisfy this criteria. [Keep this output as Numr.]

 

Next is to get the total line item count of a sales order. This has to be obtained from Order DSO [/bic/AZSD11000], as the line items count present in the APD output DSO may not be complete, and the order DSO [[/bic/AZSD11000]] is the place to obtain the Line Item count of a sales Order. So, the count of no. of line items has to be obtained from this DSO [Keep this output as Denr.]

 

FINAL RESULT  = [NUMR/DENR] *100.

 

So, in the attached screenshot, there are 5 line items. And, for all 5 line items, /bic/lord_qty = /bic/ldlv_qty. So, the Numr. value is 5.

 

From Order DSO, there are total 10 line items which is shown in second screenshot. So, the denr. value is 10.

 

So, result would be [5/10] * 100 = 50%.

 

Additional Information:

 

DOC_NUMBER (Sales order number), S_ORD_ITEM (Order Line Item) are the keys of Order DSO.

 

Data type definition of fields:


DOC_NUMBER  TYPE /BI0/OIDOC_NUMBER,

PLANT      TYPE  /BI0/OIPLANT,

  SHIP_POINT  TYPE /BI0/OISHIP_POINT,

   DELIV_NUMB  TYPE /BI0/OIDELIV_NUMB,

S_ORD_ITEM TYPE /BI0/OIS_ORD_ITEM,

DSDEL_DATE TYPE /BI0/OIDSDEL_DATE,

ORDER_QTY    TYPE /BI0/OIORDER_QTY,

  DLV_QTY       TYPE /BI0/OIDLV_QTY,

  /BIC/ZLINFRATE           TYPE /BIC/OIZLINFRATE, [Final Metric for Result]

 

Points will be awarded.

 

Thanks,

G.

ABOUT SAP-TABLE'S APPEND STRUCTURE

$
0
0

Hi all,

     Nearly when i modify the structure, which was created in the SAP-table LIKP long time ago, It appears an error i cannot solve.

     What i have done is created new element for the structure's field. At first, it seems to be ok of everything, but then i find there is a mistake,  i give a 'CHAR2' to a 'flag' which just need one character. When correct the mistake, the error occurs.

 

     Appreciate for your help, thank you!

Chen

how to create an attachment to FB03 (accounting doc) thourgh abap program.

$
0
0

Hi,

 

Kindly suggest me how can I create an attachment to the FB03 (Accounting document) by using an ABAP program.

 

thanks in advance.

 

Regards,

Vijay.

ALE

$
0
0

Hi,

 

Is it Possible to send an IDOC from a Sending System to

two different systems?

User exit for Edit and Save payer field in VF01

$
0
0

hello abaper;

 

I need to edit and save Payer Field  in Vf01 So kindly send  me user exit name

 

actually Payer is taken from  KNA1-KUNNR ( F4 Help ) and it save in vbrk

So I wrote a query but it give error on  modify statement .

 

data : it_payer like TABLE OF kna1,

       wa_payer like kna1.

data : it_vbrk TYPE TABLE OF vbrk.

 

select  kna1~KUNNR into TABLE it_payer from vbrk INNER JOIN kna1 on   VBRK~KUNRg = KNA1~KUNNR   where   kunnr = vbrk-KUNRg .

 

    modify  vbrk  FROM  wa_payer .

 

______________________________________________________________

So kindly reply

1) Where should I place this query (USER exit name )

2) And kindly correct this query .

How to 7 pages and 2 tables print in smartform

$
0
0

Hi ;

 

I need help for smartforms.

 

 

1. page : Table and text

1. page count...

2. page : Text

3. page : Text

4. page : Text

5. page : Text

6. page : Text

7. page : Table and text

7. page count...

 

Can you help in this regard? 

table control changing option not working

$
0
0

Hi frds,

 

 

In table control option changing options not working.

If not clear pls tel me frds,

 

 

i have created a number range as primary key for the table........ data not modifying.

 

When save options.

 

LOOP AT gt_data INTO gw_data.

 

         gs_semi-fgdes    = gv_fgdes.

         gs_semi-docnum   = gv_docn.

         gs_semi-ersda    = gv_ersda.

MODIFY zsemic FROM gs_semi .

      CLEAR gs_semi.

        IF sy-subrc = 0.

          COMMIT WORK.

        ENDIF.

endloop.

 

Pls help me..........


BKPF and BSEG selection in ABAP Report failing...

$
0
0

Hello Experts,

I have an ABAP report to extract data from BKPF and BSEG.

I have selected data from BKPF using criterias like BELNR and BUDAT using a single select statement. Based on this BKPF record count, I have applied a Range split logic. This will create ranges of BELNR to select BSEG entries.  In a loop I select data from BSEG using the ranges.

 

On execution BKPF is having around 6100000000 entries. , The range split logic failed because of INT4 usage. I replaced it with 'P' variable.

Again I am getting overflow error.  I wonder why 'P' is again failing for 61 billion records..

 

What is the best option to do the selection then.

1: Should I try Select EndSelect using PACKET SIZE.. Is it performance optimal.

 

If not is there any other option...?

 

Please help.

 

Thanks,

LT

BAPI Filter Problem

$
0
0

Hi,

 

i need to send a BAPI message (AccountingEmployeeExpenses.Post) from an HR system to two FI systems. However, not all BAPI messages should be sent to both of the FI systems. Based on some organizational data, we can decide which IDoc should be sent to which system. But this organisational data is not contained in the IDoc and i think there is no field in this BAPI IDoc which can be used to filter out a whole IDoc. So is there a user exit, or bapi or enhancement point which can be used for this? Or are there any other method to solve this problem?

 

Ty, Dov.

Enhancement Infotype 21

$
0
0

Dear Expert

 

i need help,

i have requirement to add new Field on PA0021,

i has do on PM01,

but right no my new field no display on pa30->infotype 21

pm1.jpg\

edit screen.jpg

include inforty.jpg

 

but if i go to pa30, infotpe 21, my new filed no display..

 

what should i do...?

 

thnks

CL_BCS issue : duplicate mail, Trailing mail

$
0
0

Hi,

 

I am facing a strange issue while sending mail with same subject. If I am sending two mails with same subject to same ID. I am getting two separate mails and also getting one another mail in which the second mail as the trailing mail of the first mail, So in the case of second mail I am getting two mails. Is this the standard behavior or some issue with my code. I am using Microsoft outlook as email client. And every time its asking for read request, even though I disabled the functionality. (Since I can't access SAP, I can't post the code snippet now). 

 

This is my first mail.

 

Subj : Q - info 05.10.2014

 

Kindly provide the clearance.

 

Regards

 

This is my second mail.

 

Subj : Q - info 05.10.2014

 

Request approved

 

Regards.

 

 

I am getting the second mail like this

 

Subj : Q - info 05.10.2014

 

Kindly provide the clearance.

 

Regards

 

Subj : Q - info 05.10.2014

 

Request approved

 

Regards.

 

And one duplicate mail also.

 

Subj : Q - info 05.10.2014

 

Request approved

 

Regards.

 

So every time to see the latest mail,I need to scroll down. Usually the latest mail should be on the top.  And I am getting a duplicate mail after 10 seconds. How can I resolve this issue.

 

Regards

Jesse Owens K

Display normal report like alv list display

$
0
0

Dear Abap guru's,

 

i have a requirement show the output like standard sap transaction(f.01) output for Customized zreport . But here the report is already developed by my senior using the normal report .while running the report i'm get output is correctly but my client wants output like to be compressed  i'm adding the two outputs  at least compress the output i'm getting  . Can any one please  suggest/help me to achieve the report o/p like my client wanted.

 

getting output.PNGrequired Ouput.png

 

 

 

Thanks & Regards,

Suresh Reddy.

Viewing all 8332 articles
Browse latest View live


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