LinkedIn
RSS

Archive for the ‘BC – ABAP’ Category


IDoc Selection List

GA_googleFillSlot(“POSTSAP”); To select iDocs from the system you should use WE02. This transaction will allow you to select a given idoc and even edit it. If you have doubts on how to use the transaction, just leave a comment!

Read More...

Inbound IDOC Background and Parallel Processing

When processing loads of iDocs, use program RBDAPP01 to process in parallel. Be careful with locks, has they can occur, when processing concurrent records.

Read More...

Powerfull SAP ABAP Functions

Bp_event_raise Trigger an event from ABAP/4 program. Bp_joblog_read Fetch job log executions filling the structure TBTC5. G_set_get_all_values Fetch values from a set filling the structure RGSB4. Popup_to_confirm_loss_of_data Create a dialog box in which you make a question whether the user wishes to perform a processing step with loss of data. Popup_to_confirm_step Create a dialog box [...]

Read More...

Upload Graphics to SAPSCRIPT

You can upload graphics to sapscript with reportRSTXLDMC, however, you can only upload .tif on pc files.

Read More...

Send a pop-up message to an user

Do you wish to send an anonymous message to a user, that is currently log on in your system? You can use function module TH_POPUP. Just enter the system client, the target user and your message, and execute it, for example, in SE37 t-code. Your target user will receive a pop-up window in his computer, [...]

Read More...

Calculating working day

Have you ever need to get the next/previous working day, of a calendar date, of a factory calendar? We suggest function module DATE_CONVERT_TO_FACTORYDATE. You can indicate with ‘+’ or ‘-’ on importing parameter CORRECT_OPTION if you want the next working day, or the previous one. The other importing parameters are the calendar date you want [...]

Read More...

Date and Time validation

Sometimes,  we need to validate some inputs from users that are inserted by external sources (like files). For this purpose, we found very useful function modules like CONVERT_DATE_TO_INTERNAL and CONVERT_TIME_INPUT to validate external dates formats and external times formats (ex: dates like ’24.06.1978′ or times like ’11:00:00′) This functions are also very useful to convert [...]

Read More...

Difference between KOBED and KOBEV

In pricing there are requirements, and inside this requirements there are 2 forms, KOBED and KOBEV. What’s the difference between them? KOBED – This is called at header and item level KOBEV – Used for header level Use KOBEV if you only need header changes. If you use KOBED and only need header data your [...]

Read More...

Hide functions in reports

Have you ever need that your program don’t show the execute button, or background execution option, or even the variant selection option? You can do it but declaring this info: REPORT bla bla bla. …. *- Data declaration DATA gt_exclude                TYPE TABLE OF rsexfcode. DATA gs_exclude                TYPE rsexfcode. … INITIALIZATION. *- Hide options gs_exclude-fcode  = ’ONLI’. ”Hide execute APPEND gs_exclude TO gt_exclude. gs_exclude-fcode  = ’PRIN’. ”Hide Print+Execute APPEND gs_exclude TO gt_exclude. gs_exclude-fcode  = ’SJOB’. ”Hide Execute in backgroun [...]

Read More...

How to Debug a Job in SAP?

This is a problem that happens a lot of times, how to know what a job is doing by debug? Transaction SM37; Select the Job; In the OK-CODE field write JDBG; If you have any other solution for this problem feel free to comment and help other readers

Read More...