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

Delete Record from KNVP using BAPI

$
0
0

Hi All,

 

 

Is there any BAPI to delete partner from KNVP.

 

I have checked SD_CUSTOMER_MAINTAIN_ALL and CUSTOMER_UPDATE ,While executing I am gettting error as System error in table KNVP,

 

But when i test CUSTOMER_UPDATE individually its working fine but in program its giving error.Pls help.

 

 

Regards,

Trinadh


rollback a call transaction

$
0
0

Hi ,

 

While calling transaction Co11  in background sometimes there is error due to locks .

The issue is that good issue and confirmation happens but not good receipt because of this error .

If the error is occurring during goods receipt , i have used "BAPI_PRODORDCONF_CANCEL'"

 

 

 

Do we need to write commit & rollback to revert the goods issue & confirmation

 

 

Call transaction C011....

 

if sy-subrc <> 0 .

 

 

BAPI_TRANSACTION_ROLLBACK

 

endif.

 

 

Kindly suggest

CL_GUI_ALV_TREE has no dynamic breakdown

$
0
0

Hi experts

 

In example program BCALV_TREE_SIMPLE_DEMO , there is 'Change Breakdown' toolbar button option which I believe is available because we add the sorter changing  table CT_SORT while calling method SET_TABLE_FOR_FIRST_DISPLAY of CL_GUI_ALV_TREE_SIMPLE.

 

Using this CHANGE_BREAKDOWN option, users can choose the hierarchy fields on the fly and sort as per need

 

Q1. Is it possible to achieve this using the CL_GUI_ALV_TREE class?

 

Q2. If I decide to use CL_GUI_ALV_TREE_SIMPLE instead of CL_GUI_ALV_TREE what major features will I miss out?

 

p.s : Some features I cannot do without are :

I want to construct a tree with all nodes having check box , highlight-able rows , perform aggregations on qty fields , retain the drill down of tree while I do a refresh with new data in the tree.

ALV grid report NO_FIELDCATALOG_AVAILABLE

$
0
0

Hi,

 

I have copied a report and all its includes, screens, etc to another program so that I can experiment on some changes required to be done on the existing report. However, I am unable to successfully execute the copy of the report due to the dump "A RAISE statement in program "CL_GUI_ALV_GRID===============CP" has raised  exception condition "NO_FIELDCATALOG_AVAILABLE".

 

Can anyone advise what to check so that I can proceed? Since this is just a copy and I have not done any changes yet, can anyone explain why I'm getting a dump?

 

Btw, in the dump, this is the detail on which the dump is generated.

 

method set_sort_criteria.

 

 

*... (1) Trace?

  if not mr_trace is initial.

    call method mr_trace->add_trace_item

      exporting

        i_trace_item = 'SET_SORT_CRITERIA'

        ir_variant   = m_cl_variant

        it_data      = mt_data

        it_info      = mt_info.

  endif.

 

 

  if m_cl_variant->mt_fieldcatalog is initial.

    raise no_fieldcatalog_available.

  endif.

 

 

  m_cl_variant->mt_sort = it_sort.

 

 

  call function 'LVC_SORT_COMPLETE'

       exporting

            it_fieldcat = m_cl_variant->mt_fieldcatalog

       changing

            ct_sort     = m_cl_variant->mt_sort.

 

 

endmethod.

 

I put a breakpoint on the report, and it appears that this is where the dump is actually generated.

 

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

      EXPORTING

        i_callback_program       = sy-repid

        i_callback_user_command = 'ALV_USER_COMMAND'

        it_fieldcat              = t_fieldcat

        is_layout                = is_layout

*       it_events                = t_events[]

        is_variant               = variant

        i_save                   = 'A'

      TABLES

        t_outtab                 = t_out.

 

 

Thanks for any advise.

 

Cholen

wwm2 - Product catalog

$
0
0

Hi,

     We are trying to create a product catalog manually. We used the function module wwmi_save and the catalog gets created. However we would like to add a variant, language and currency to the catalog. Is there any BAPI that could help add these to the catalog?

 

thanks

Dynamic Structure and Assign Compnents

$
0
0

Hallo Experts,

 

i have create a programm but this give dump how can this correct.

 

TYPES : BEGIN OF ABC,

  LIFNR TYPE LIFNR,

  COUNT TYPE I,

  END OF ABC.

  DATA: IT_ABC TYPE TABLE OF ABC,

        WA_ABC LIKE LINE OF IT_ABC.

  DATA: L_LFA1 TYPE LFA1,

        L_COUNT TYPE I,

        L_EKKO TYPE TABLE OF EKKO,

        LSS_EKKO LIKE LINE OF L_EKKO.

  FIELD-SYMBOLS <FS> TYPE ANY.

  FIELD-SYMBOLS <f> type any.

  FIELD-SYMBOLS <FS_WA> TYPE ABC.

 

 

 

 

  SELECT SINGLE * FROM LFA1 INTO L_LFA1.

    SELECT * FROM EKKO INTO TABLE L_EKKO

      WHERE LIFNR = L_LFA1-LIFNR.

 

 

   DESCRIBE TABLE l_ekko  LINES L_COUNT.

      LOOP AT L_EKKO INTO LSS_EKKO.

        WA_ABC-LIFNR = LSS_EKKO-LIFNR.

        WA_ABC-COUNT = L_COUNT.

        APPEND WA_ABC TO IT_ABC.

        CLEAR WA_ABC.

        ENDLOOP.

 

*        ASSIGN wa_abc to <fs>.

 

LOOP AT IT_ABC INTO WA_ABC.

   ASSIGN COMPONENT WA_ABC-LIFNR of STRUCTURE <FS_WA> TO <F>.

  IF SY-SUBRC <> 0.

    EXIT.

   ELSE.

      WRITE <F>.

   ENDIF.

  ENDLOOP.

How to kill a work process within a custom program (batch)

$
0
0

Hi guys,

 

using SCN for years and finally took the time to register.

 

Here's the situation: We have a program in our producitve system that starts parallel processes while running.

Sometimes (the cause is not yet determined) one process just runs longer with no attempt to stop. The main process is captured at a WAIT UNTIL command. We basically wait a defined time, then we want to automatically EXIT the program. Let's just say we don't want long runs.

 

Now: We want that one parallel process to be killed. This is why because our main program is running all day in a loop and cant be restarted, if one parallel process is still running. At the moment we are killing the process in SM50 manually. We want that to be done automatically within the main program.

 

I found some functions TH_* like TH_SYSTEMWIDE_WPINFO which provides all wps from all application servers. There I can see my process, but how can I kill it and do I have to change application server as there are up to 6 different ones where the parallel process might be running (because of parallelization the main programm can be running on a different application server as the parallel process)?

 

Many thanks for your ideas!

Regards

 

Stefan

ABAP Documentation

$
0
0

I have ABAP documentation on the URL:  www.sapbrainsonline.com/abap-tutorial/5

 

However, the version of the documentation is for Release 4.6C

 

The current SAP version is ECC7.0 and GUI is 6.40.

 

Where can i find ABAP documentation (BC ABAP Workbench Tutorial) for the current release


Report question for BLOB data type

$
0
0

I'm creating a report to show the email archives, but I can't get the body to display because it's a data type of BLOB.  Does anyone know how to get a BLOB to display in a report?

Send file generated of SAP transaction to Filezilla FTP

$
0
0

Hi,

 

I must to make a program to send out the generated file by a SAP FI standard transaction to an external Filezilla FTP. I know the server of this Filezilla FTP (it's a IP, not a URL), the user and the password.

 

I've checked the program RSFTP002, to check out the connection, but it says: "User has no authorization for computer". I've put the user, password, host (it's a IP, not a URL, I don't know if the issue is here..), and the RFC destination SAPFTP.

 

Could you know what's the issue?.

 

Thanks.

Create Customer by XD01

$
0
0

Hi,

 

 

I'm trying to create a new customer using the bapi “BAPI_CUSTOMER_CREATEFROMDATA1”, but I can't find the KTOKD (account group) to input the first field in XD01. I know that the FM CUSTOMER_MAINTAIN_XD01 has, but it is set "Release Date function module" null.

 

 

 

Can I use CUSTOMER_MAINTAIN_XD01?

 

 

 

Tank you!

Creating Parked GL document using BAPI

$
0
0

Up until recently, I had been using the AcctngGLPosting BAPI to automate a process of creating a parked GL document. In order to get this to work, I was using I user exit to capture the document header record and change the "status_new" field to a "2" which would result in a parked document.

 

However, as part of our EHP7 upgrade this process now stopped working and is throwing and error "636 Changing the transaction code is not permitted for parked documents". I also found SAP note "2021422 - Parking using RWIN with illegal TCODE or AWTYP", which explicitly prevents me from doing what was previously working. The note explains why this change was made, but doesn't provide an answer to how to use the bapi to create the parked GL document instead.

 

Does anyone know of another mechanism by which to create a parked GL document? I've reviewed the documentation for the AcctngGLPosting BAPI and I don't see anything changed in there to accommodate this functionality.

 

Any and all suggestions are welcome.

PROJ.PSPNR to IMPR.POSNR

$
0
0


Hi,

 

I'm completely new to SAP PS but I think this question belongs in ABAP development.  I'm trying to piece together a join between SAP tables to build a relationship for an existing data warehouse. 

 

I need to get IMPR.POSNR for every PROJ.PSPNR.  I can see that I can achieve this by joining the following tables:

 

PROJ.PSPNR to PRPS.PSPHI

PRPS.OBJNR to IMZO.OBJNR

IMZO.POSNR to IMPR.POSNR

 

Is there a better way of achieving this?

 

My concern is that PROJ to PRPS is a one to many and then PRPS to IMPR (through IMZO) is a many to one.  I'm a little worried that I will end up with multiple IMPR.POSNR for each PROJ. 

 

In the searching I have been doing I cant see an alternative way to link PROJ to IMPR.  Have I got the correct method or should I be using an alternative join?

 

Thanks

Neil

User exit or BADI on clicking save on tcode CK74

$
0
0

HI,

 

I am trying to create Additive costs using transaction CK74.  After saving the data, it updates KEKO and KEPH tables. Prior to updating the data in KEKO and KEPH tables ( and after clicking on save on tcode CK74), I want to pass  the data to a Z table. Basically, I want to write the data to a Z table before it updates standard SAP tables. Can anyone suggest  if there is any User exit or BADI available for this purpose? I do not want to make use of core mod in this case. Appreciate help on this.

 

Regards,

Pavan

SapScript printing French Characters as #

$
0
0

I am trying to print an sapscript form in English that includes French characters. The form displays the characters correctly but prints them as #.

This form is using the Courier font family.

 

I am using a printer with device type POSTSCPT.

Language EN.

Character Set: 1117 (Printer POSTSCPT ISO 8859/1 (Latin 1).

 

I have also tried changing the device type to POST2, as POSTSCPT says it is obselete.


Use FOR expression 7.4 (SP8) to reinitialise an index column on a table

$
0
0

I have appended two fieldcategory tables together:

 

rt_joined = value #( ( lines of it_left ) ( lines of it_right ) ).

 

Now I would like to reinitialise the col_pos field of the new table.

 

Previously I would do something like this:

 

loop at rt_joined assigning <ls_fcat>.

  <ls_fcat>-col_pos = sy-tabix.

endloop.

 

Is it possible to do this using the FOR statement?

link REGUH and BKPF

$
0
0

Hi all friends, i search and search on the scn.sap.com and google.com but not find a answer satisfactory.

 

i have a Document Number(BELNR) and or Reference Key (AWKEY) of BKPF table

 

The process was:

1) Purchase Order

2) Purchase

3) Payment

 

anyone have a idea? how to link the tables?

 

Thanks.

How to display multiple loops in a smart form mainwindow

$
0
0

Hi Gurus,

 

In my form interface, I have two internal tables - one has all order level details and the other one has required pricing conditions for each order / item combination. I got all  data in these two internal tables required for display. But, finding difficult on how to display them in smart form.

Appreciate your quick help.

 

For each order , I need to display as below :

 

Order no     Item     Material     Mat Description     Qty     Price Type     Value     Sold-to number

 

1000001     10        abc              abc mat                   1     Net price          1000     A12444

                                                                                          Freight               200

                                                                                          Discount             100

 

1000002     10        xyz              xyz mat                   1      Net price          2000     A12445

                                                                                        

                                                                                          Discount             200

 

1000002     20        pqr              pqr mat                   1      Net price          3000     A12445

                                                                                         

                                                                                          Discount             300

 

Thanks,

Nitish

CAR 2.0 external view /POSDW/V_MAT

$
0
0

Hello,

 

our car 2.0 system (client 100) doesn't display in se11 any entries for ABAP external view /POSDW/V_MAT. The external view is already active. The client for the data in the HANA are different from the client 100 of our car system. Is there any option to display the results of any clients?

 

Thank you!

Unable to Get End-of-page when the page ended with subtotal in alv list display.

$
0
0

Hi Experts,

 

I am Maintaining end of page event in alv list, it is working fine when i printed it in the pdf , but when i get subtotal at the end of page ,i am getting end of page event missed at a particular case .

 

Please Provide me solution.

 

 

Thanks,

 

Narendra Reddy.

Viewing all 8768 articles
Browse latest View live