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

Find out the filed of open item in BSID TABLE

$
0
0

Hi Expert ,

 

I need to find out the total value of amount of local currency for a customer and consider only open item with the red symbol. I used BSID table and filed DMBTR for (amount in local currency) , but i am not able to find how we consider in BSID table only for open item any field in BSID table that we can check this item is open item.

 

 

 

 

fbl5N.png


dynamic internal table for ALV output

$
0
0

Hi, guys

 

I need to build a dynamic internal table for displaying an ALV

For example, I have a select-option: S_MATNR on the screen.

The columns of the ALV use user input in S_MATNR.

Trigger workflow from FPM process_event method and export a structure.

$
0
0

Hi All

 

I have developed a custom FPM application, in the process_event method I have to write a code, which will trigger a workflow and need to export a structure to the workflow.

Please if any body have any idea , how this can be accomplished.

 

regards

Anup

dynamic variant for program RBDMANI2

$
0
0

Hi All,

 

How do we create a dynamic variant for program RBDMANI2which is a background job.

For the below variant I want to create a dynamic Date range with one month.

If it is executed on 08/15/2013, it should take date range as 07/15/2013 to 08/15/2013 without changing the other inputs.

If it is executed on 08/20/2013, it should take date range as 07/20/2013 to 08/20/2013. i.e. for one month.

 

How to acheive this? Please help.

var2.jpg

 

Thanks,

Haritha

understanding TS17900100 on HCM workflow

Cannot preview a SAP Note in transaction SNOTE

$
0
0

Hi Gurus,

 

We are facing an issue in which we can't preview a sapnote under transaction SNOTE. Error that display is

Internal error: OPEN_FORM.

I would appreciate it greatly if someone could guide us with this issue.

 

 

 

Thanks,

 

Val

Customer Master error (XD03/XD02): Internal error - insert in sorted tabl ZADRT with...

$
0
0

Hi Experts,

 

I am facing issue while changing or displaying cusromer through XD02/XD03.

 

When I try to change customer the error is populated as "Internal error - insert in sorted tabl ZADRT with.." followed by ADRT table entry.

 

I tried to remove entry for this address number from ADRT table , but again other error is coming related to DB communication.

 

Similar way I am facing same issue for other customer and error is populated as "Internal error - insert in sorted tabl ZADRU with" followed by entry in ADRU table.

 

Any idea how can we rectify this error? Quick responses will be appreciated.

 

Do we need to maintain any entry in any other table? Please advise on how to resolve this issue.

Thanks.

 

Regards,

Sanjana

BDC and BAPI for Financial Posting

$
0
0

I have some doubt about how to use BAPI to replace the BDC program for Financial Posting.

 

1、I know some  BAPI like BAPI_ACC_DOCUMENT_POST  and  BAPI_ACC_GL_POSTING_POST but I don't in what circumstance that I can use this BAPI for Finalcial Posting.  Such as I have to write a BDC program  for F-60 posting, but I don't know which BAPI should I use or there are no bapi for F-60.

 

 

2、When I see a program using BAPI   'BAPI_ACC_DOCUMENT_POST'  for financial posting , how do I know what is this financial posting ? to use what t-code ?

 

 

3、Is there anyone collect the all BAPI for financial posting?

 

 

Thank you for your sincere answer.


Customer Fields in Selection Screen, RIQMEL20, IW58

$
0
0

Hello,

 

we have added some customer fields in Table QMEL.

Now we want to add customer fields in selection screen at TA IW58 (Report RIQMEL20).

Is there any Exit, BADI, BAPI, Enhancement, ... to add customer fields and selection logic in selection screen?

 

Regards

Validation at table level in table maintenance generator

$
0
0

The validation should be like we need an unique cost center in the program.

i have three fieds in the table

company code and cost center are primary fields and user is another field

 

The validation that we want is if we have an entry

 

company code          cost center            user

ww                           ARZ5511              Nithin


is allowed

it should not allow any more entry for the same cost center

ie ARZ5511

and if we have an entry

 

company code          cost center            user

X1                           ARZ5511              Nithin

 

it should not abllow any entry with

1*   ARZ5511 ttruax

  similarly for X3, X5, X7 and X9, 3*,5*,7*,9*.

Here * means the company code starting with 1.

 

I'm not knowing how to deal with this case.

Please help me guys.

 

 

Thanks in advance.

how can we debug a idoc

$
0
0

Hi,

 

I generated idoc but in that some erorr i want debug how can we debug?

ALV-Grid: No reaction to Enter-Button

$
0
0

Hi,

 

I've got an ALV-Grid (Class cl_cui_alv_grid) with some editable columns. The Enter-Button is supposed to work like the Arrow-Down-Button. So I registered the event for pressing the ENTER-Button

(  CALL METHOD go_alv->register_edit_event

    EXPORTING

      i_event_id = cl_gui_alv_grid=>mc_evt_enter.)

But the event is triggered only when there's a change in the current cell and not if I only want to move  to the next row.

 

 

Best regards

Jürgen

 

Problem with SAP Note Implementation: 738159 Catch Weight with Radio Frequency

$
0
0

Hello,

 

I'm trying to implement SAP note 738159 : Catch Weight with Radio Frequency,
and while I was having no trouble implementing it, it doesn't seem to work.

 

I'll go through the step I have done to implement it and you can see if there's some obvious mistake.

These steps are defined in note, you can find my comments (in bold) under every one of them on how I did it.

 

Step 1. Activate the user exits MWMRF302, ..304, ..400, ..502, ..504,..704 and ..765.
I have created a project in CMOD and assigned enhancements like on the image below:

 

Also, I have activated the components:

 

Project status is active.

 

Step 2. Copy all screens from the program /CWM/SCREENS_LVS into the function group XLRF,

with the exception of screens 0704, 0765, 2704 and 2765, which you copy into the

function group XLHU.
I have copied those screens from /CWM/SCREENS_LVS to SAPXLRF program (Funct.Grp. XLRF),
with exception of these four I copied from /CWM/SCREENS_LVS to SAPXLRF to SAPXLHU.

All screens are active.

Take a look at the images below:

 

Step 3. Fill the user exits with the following includes:

Source - Catch Weight Include - Description

ZXLRFZZZ - /CWM/MOD_ZXLRFF01 - Subroutines

ZXLRFZZZ - /CWM/MOD_ZXLRFI01 - PAI routines

ZXLRFZZZ - /CWM/MOD_ZXLRFO01 - PBO routines

ZXLRFZZZ - /cwm/mod_ml03t_get_hu_item_f01 - Special subroutine

ZXLRFZZZ - RLMOBERR - Routines for error handling

ZXLRFTOP - LLMOBDAT - Data definition

ZXLHUZZZ - /cwm/mod_zxlhuf01 - Subroutines

ZXLHUZZZ - /cwm/mod_zxlhuo01 - PBO routines

ZXLHUZZZ - /cwm/mod_zxlhui01 - PAI routines

ZXLHUTOP - LLMOBDAT - Data definition

E.g. through SE80, I double click on ZXLRFZZZ and create it, enter:
INCLUDE /CWM/MOD_ZXLRFF01.
And save, activate.


Function module - Include - Catch Weight Include - Description

EXIT_SAPLLMOB_360 - ZXLRFU31 - /CWM/MOD_ZXLRFU31 - PBO screen 502

EXIT_SAPLLMOB_670 - ZXLRFU62 - /CWM/MOD_ZXLRFU62 - PAI screen 502

EXIT_SAPLLMOB_210 - ZXLRFU16 - /CWM/MOD_ZXLRFU16 - PBO screen 302

EXIT_SAPLLMOB_520 - ZXLRFU46 - /CWM/MOD_ZXLRFU46 - PAI screen 302

EXIT_SAPLLMOB_280 - ZXLRFU23 - /CWM/MOD_ZXLRFU23 - PBO screen 400

EXIT_SAPLLMOB_590 - ZXLRFU54 - /CWM/MOD_ZXLRFU54 - PAI screen 400

EXIT_SAPLLMOB_380 - ZXLRFU33 - /CWM/MOD_ZXLRFU33 - PBO screen 504

EXIT_SAPLLMOB_690 - ZXLRFU64 - /CWM/MOD_ZXLRFU64 - PAI screen 504

EXIT_SAPLLMOB_230 - ZXLRFU18 - /CWM/MOD_ZXLRFU18 - PBO screen 304

EXIT_SAPLLMOB_540 - ZXLRFU48 - /CWM/MOD_ZXLRFU48 - PAI screen 304

EXIT_SAPLLMOB_005 - ZXLHUU37 - /CWM/MOD_ZXLHUU37 - PAI screen 704

EXIT_SAPLLMOB_013 - ZXLHUU44 - /CWM/MOD_ZXLHUU44 - PAI screen 765

EXIT_SAPLLMOB_513 - ZXLHUU58 - /CWM/MOD_ZXLHUU58 - PBO screen 765

For those I go to SE37, enter function module e.g. EXIT_SAPLLMOB_360, double click on Include
e.g. ZXLRFU31 and create it, enter: INCLUDE /CWM/MOD_ZXLRFU31.
And save, activate.

 

 

Step 4. Add the following entries in the RF screen control under the Customizing option

Logistics Execution\Mobile Data Entry\Define Screen Management:

SAPLLMOB - Narrow format - 1 - 0302 - 2302

SAPLLMOB - Narrow format - 1 - 0304 - 2304

SAPLLMOB - Narrow format - 1 - 0400 - 2400

SAPLLMOB - Narrow format - 1 - 0502 - 2502

SAPLLMOB - Narrow format - 1 - 0504 - 2504

SAPLLMOB - Narrow format - 1 - 0704 - 2704

SAPLLMOB - Narrow format - 1 - 0765 - 2765

SAPLLMOB - Large format - 1 - 0302 - 0302

SAPLLMOB - Large format - 1 - 0304 - 0304

SAPLLMOB - Large format - 1 - 0400 - 0400

SAPLLMOB - Large format - 1 - 0502 - 0502

SAPLLMOB - Large format - 1 - 0504 - 0504

SAPLLMOB - Large format - 1 - 0704 - 0704

SAPLLMOB - Large format - 1 - 0765 - 0765

 

This one is in customizing, I have entered those, see the image:

 

 

Step 5. Maintain users in the table LRF_WKQU with variant (here it is variant 1).

(Customizing option Logistics Execution\Mobile Data Entry\RF Queue Management:

Assign Processor to Queues)
Done through LRFMD t-code.
Assigned variant 1 and appropriate screen format to users.

 


And that should be it. But it isn't...

I bet someone can use this as a tutorial for the basic implementation of this note.
Except for the fact that it shows the old screens without Catch Weight Management fields
(Parallel qty and unit of measure).
I'm using t-codes LM07 (guided picking), guided putaway (LM04) to test it, but no luck.
Still the old screens without CWM support!

 

If any of you know what I did wrong looking at this detailed steps I performed, I'd be glad to award max.possible rep.
as this is really getting annoying...

 

Thanks and regards,
Mihailo

Program to Generate ABAP Source Code

$
0
0

Dear All,

 

I am trying to create a program through which we can generate ABAP code which will save atleast minimum of developer efforts. Could some please help me in identifying where to start with ? Currently I am importing an excel (A Template kind of stuff) and I am typing the syntax based on the template and using the below statement to create a program in R/3. INSERT REPORT program FROM codings PROGRAM TYPE '1'.

 

Can anyone suggest some better methodology/technology which could be used ?

 

With reference to the below link

 

http://scn.sap.com/thread/343181

 

Could some help me in understanding how to use the FM 'RSS_TEMPLATE_INSTANTIATE'. In the attached link, what are we supposed to pass to C_TEMPLATE in the FM ?

 

Thanks in advance for your time and help !!

 

Thanks,

Kausthub

BAPI_SALESORDER_CHANGE - extensionin not working

$
0
0

Hi Guys,

 

I have added a checkbox "zzpump_reqd" in the Sales Order screen at item-level. When I try to update this field using BAPI_SALESORDER_CHANGE it is not getting updated. The custom field is getting updated without any issues when I try to create a sales order using BAPI_SALESORDER_CREATEFROMDAT2.

 

I have updated the following tables / structures with the custom field.

VBAP

VBAPKOZ

VBAPKOZX

BAPE_VBAP

BAPE_VBAPX

VBAPKOM

VBAPKOMX

 

The BAPI in the below program returns the below successful messages.

ORDER_HEADER_IN has been processed successfully

ITEM_IN has been processed successfully

Order XXXXXX has been saved

 

Could you please let me know why my code is not working.

 

PARAMETERS: p_vbeln TYPE vbak-vbeln.
DATA: t_line        LIKE bapisditm  OCCURS 0 WITH HEADER LINE.
DATA: t_linex       LIKE bapisditmx OCCURS 0 WITH HEADER LINE.
DATA: t_exten       LIKE bapiparex  OCCURS 0 WITH HEADER LINE.
DATA: t_return      LIKE bapiret2   OCCURS 0 WITH HEADER LINE.
DATA: bape_vbap     LIKE bape_vbap.
DATA: bape_vbapx    LIKE bape_vbapx.
DATA: order_headerx LIKE bapisdh1x.

order_headerx-updateflag = 'U'.
t_line-itm_number = '000010'.
APPEND t_line.


t_linex-itm_number = '000010'.
t_linex-updateflag = 'U'.
APPEND t_linex.


bape_vbap-vbeln = p_vbeln.
bape_vbap-posnr = '000010'.
bape_vbap-zzpump_reqd = 'X'.
t_exten-structure = 'BAPE_VBAP'.
t_exten+30        = bape_vbap.
APPEND t_exten.

bape_vbapx-vbeln = p_vbeln.
bape_vbapx-posnr = '000010'.
bape_vbapx-zzpump_reqd = 'X'.
t_exten-structure = 'BAPE_VBAPX'.
t_exten+30        = bape_vbapx.
APPEND t_exten.

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
  EXPORTING
    salesdocument    = p_vbeln
    order_header_inx = order_headerx
  TABLES
    return           = t_return
    order_item_in    = t_line
    order_item_inx   = t_linex
    extensionin      = t_exten.
LOOP AT t_return.
  WRITE: / t_return-message.
ENDLOOP.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.


Upload problem in bdc due to long text value in excel

$
0
0

Hi Guru,

I have an excel to upload in sap through bdc.But the problem is one excel field length more than 1000 and more than 1000 charecter data present in that field.I am using alsm_excel_to_internal_table fm .But unable to populate finak internal table due to this large field in excel.Pls help

Code of /SMB40/FM06P

$
0
0

Hi,

 

there is someone could post me the code of the program /SMB40/FM06P (print program for best-practice smartforms Request Order) ?

I have lost the source of the code during the upgrade from ECC 5.0 to ECC 6.0.

 

(the version of the ECC 5.0).

 

 

Thanks

 

Fred.

FTP_R3_TO_SERVER : Uploading binary file (.XLS)

$
0
0

Hi Experts,

Im using FTP_R3_TO_SERVER FM to upload an Excel file from the user desktop.

 

CALL METHOD cl_gui_frontend_services=>gui_upload
       EXPORTING
         filename                = g_file
       IMPORTING
         filelength               g_len
       CHANGING
          data_tab                g_data
       EXCEPTIONS
         file_open_error         = 1
         file_read_error         = 2
         no_batch                = 3
         gui_refuse_filetransfer = 4
         invalid_type            = 5
         no_authority            = 6
         unknown_error           = 7
         bad_data_format         = 8
         header_not_allowed      = 9
         separator_not_allowed   = 10
         header_too_long         = 11
         unknown_dp_error        = 12
         access_denied           = 13
         dp_out_of_memory        = 14
         disk_full               = 15
         dp_timeout              = 16
         not_supported_by_gui    = 17
         error_no_gui            = 18
         others                  = 19
             .
     IF sy-subrc <> 0.
       message 'Error occured while uploading file' type 'S'.
       leave LIST-PROCESSING.
     ENDIF.


call function 'FTP_R3_TO_SERVER'
     exporting
       handle         = w_hdl
       fname          = wrk_file          "file path of destination system
       character_mode = ' '
       BLOB_LENGTH = BLOB_LEN
     tables
       blob =
g_data
     exceptions
       tcpip_error    = 1
       command_error  = 2
       data_error     = 3
       others         = 4.

How to find the BLOB_LEN ? Now the file is getting uploaded.. but only partial data is there.

Please help

READ PROGRAM SAPMSYST

$
0
0

i am trying to read the source code of a program SAPMSYST.

But it says that the source code is protected.

is there exists some way that i can read the source code.

but making some changes in debugging.

 

 

say:

comparing in debugging mode a zprogram and this program,

which statement raise the error msg that source code is protected

and i can get into the source code of this prog.

 

 

moreover, in SE80, i can see the sceen. gui_status ,

but there are no pbo or pai modules.

 

Please suggest how to get into it,.

BDC multiple sessions

$
0
0

Hi everyone,

I am uploading material  master data using bdc session method.I have a flat file  with 10000 records. now i have to create multiple sessions with 2500 records.  HOW DO I  CREATE 4 SESSIONS?

i am attaching a sample program check it once.and give me any suggestions?

 

 

Thanks,

Ram.

Viewing all 8332 articles
Browse latest View live


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