Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all 10425 articles
Browse latest View live

Re: BAPI_PBSRVAPS_GETDETAIL2 is not populating key_figure and keyfigure_value

$
0
0

Pass the values like below :-

 

BAPI_PBSRVAPS_GETDETAIL2:Used to read key figure values from one data view for a planning book. The parameters key figure, key figure value and characteristic combination serve as return parameters.

The key figure details are contained in Key figure. These entries use the field CharComId to refer to the characteristics combinations in parameter Characteristics Combination for which they are valid. The key figure values for the individual periods of time are contained in parameter Key Figure Value.

By default, no macros are executed for DP planning books. If, however, to execute macros for the planning book or the data view, the field Macro Execution Flag must be set in parameter read options. In the case of SNP planning books on the other hand, macros are always executed.

CALLFUNCTION'BAPI_PBSRVAPS_GETDETAIL2'
EXPORTING

planningbook     = planningbook Name
data_view        = data view name
planning_version = planning version
read_options     = gs_read_options
period_type      = ’A’
date_from        = date_from
date_to          = date_to
TABLES

selection        = gt_selection
group_by         = gt_group_by
key_figure       = gt_key_figure
key_figure_value = gt_key_figure_value
    return   = gt_return1.

There is a new book on Programming in SAP APO. You might want to check that out.

http://www.flipkart.com/programming-sap-apo-1st/p/itmdgt9hbdh6auzu?pid=9781259028441&ref=bc49ea80-1a9b-403b-b9b7-9cf00d7f05db&srno=s_1&otracker=from-search&query=ankush%20agrawal


Re: BAPI_PBSRVAPS_GETDETAIL2 Usage in ECC ?

$
0
0

BAPI_PBSRVAPS_GETDETAIL2: Used to read key figure values from one data view for a planning book. The parameters key figure, key figure value and characteristic combination serve as return parameters.

The key figure details are contained in Key figure. These entries use the field CharComId to refer to the characteristics combinations in parameter Characteristics Combination for which they are valid. The key figure values for the individual periods of time are contained in parameter Key Figure Value.

By default, no macros are executed for DP planning books. If, however, to execute macros for the planning book or the data view, the field Macro Execution Flag must be set in parameter read options. In the case of SNP planning books on the other hand, macros are always executed.

 

CALLFUNCTION'BAPI_PBSRVAPS_GETDETAIL2'
EXPORTING
planningbook     = planningbook Name
data_view        = data view name
planning_version = planning version
read_options     = gs_read_options
period_type      = ’A’
date_from        = date_from
date_to          = date_to
TABLES
selection        = gt_selection
group_by         = gt_group_by
key_figure       = gt_key_figure
key_figure_value = gt_key_figure_value
    return           = gt_return1.

 

There is a new book on Programming in SAP APO. You might want to check that out.

http://www.flipkart.com/programming-sap-apo-1st/p/itmdgt9hbdh6auzu?pid=9781259028441&ref=bc49ea80-1a9b-403b-b9b7-9cf00d7f05db&srno=s_1&otracker=from-search&query=ankush%20agrawal


Table control current line on scrolling

$
0
0

Hi Experts,

 

I have made a Z Table Control where i have given vertical and horizontal scrolling . Now when I scroll and try to select a row, then ZTABLE_CONTROL-CURRENT_LINE fetches line number not from the top, it fetches from the current top of ztablecontrol.

It is onlyy changing the value on scrolling, if i do not scroll table control then value is coming correct.

 

My requirement is whenever i select any row of ZTABLE CONTROL i need to get the curent line number from top. Please guide me what should i do.

 

Early reply will be rewarded.

 

 

Thanks.

Re: Issue with Parallel Processing

$
0
0

Hi Vikas,

1)     Not this :

 

vikas badhan wrote:

method RETURN_INFO.


DATA:   lt_messages  TYPE          bapiret2_t,   "messages from each process..


        gv_msg(220)  TYPE c VALUE SPACE.


  RECEIVE RESULTS FROM FUNCTION 'BAPI_GOODSMVT_CREATE'

  TABLES

    et_messages   = lt_messages

  EXCEPTIONS

    communication_failure = 1 MESSAGE gv_msg

    system_failure = 2 MESSAGE gv_msg.

endmethod.


 

 

Function name "RECEIVE RESULTS FROM FUNCTION 'ZZBAPI_GOODSMVT_CREATE'" must be same.

 

and declare your method like this :

 

methods : return_info

                         importing p_task type clike.

 

2) In one case, i used Asynchronous RFC and i needed to know, function finished its proccess. I did that like this.

 


CALL FUNCTION 'ZFI_TFRS_DOCUMENT_POST'         STARTING NEW TASK tfrs         PERFORMING handle_subrc_post ON END OF TASK         EXPORTING           is_header = ls_header           it_item   = lt_item.

WAIT UNTIL gv_finish EQ 'X'.
CLEAR : gv_finish.
*
*
*
FORM handle_subrc_post USING p_task TYPE clike.

RECEIVE RESULTS FROM FUNCTION 'ZFI_TFRS_DOCUMENT_POST'
                      IMPORTING                        e_finish = gv_finish                      EXCEPTIONS                        error_post            = 1                        system_failure        = 2                        communication_failure = 3                        resource_failure      = 4                        OTHERS                = 5.
ENDFORM.                    "handle_subrc_post

 

I hope this will help

Re: Sub: BADI for VD01 at Sales Order

$
0
0

Hi Harish,

 

Read note : 577502 link for more info about CUSTOMER_ADD_DATA.

 

Check SAPMF02D from SMOD

 

I hope this will help

 

Message was edited by: Tolga POLAT

Re: Error in Exporting to Excel 2003 office format in ALV

$
0
0

Hello satya,

 

Thankyou for information..... but this also not resolved our issue.....

 

 

Thanks

Sumit

What is the impact of changing standard table field length?

$
0
0

Hi All,

My colleage is asking to modify standart table T087S to make field T087S up to 70 characters long. I wonder what problems and errors we are going to face if we do that? So far I can only guess that some screens where this field is used, won't be compiled.

 

Thanks in advance.

Re: how to find the sap fields and table name?

$
0
0

i looked at it. Is AUGBL field is equivalent to PAYMENT DOCUMENT?.and also i could not find the field name for PAID AMOUNT....pls help


Production Order Scheduling Dates - CAUFVD-GLTRS,CAUFVD-GLUZS,

$
0
0

Hi

 

I've requirement to update the Production Order Header information - Schedule Finish Date/Time and Schedule Start Date and time.

 

I've searched SCN and other Blogs, i could able to accomplish updating Basic Start Date/Time and Basic Finish Date and Time.

I've tried CO_SE_PRODORD_CHANGE, BAPI_PRODORD_CHANGE, CLOI_*UPD_31 all the function modules.

 

we are using Backward Scheduling. I've to update the Schedule Finish date and time, so that it gets update start date and time.

 

Could you please share is there any BAPI/FM to update the schedule Finish date/time??

 

CO_SE_PRODORD_CHANGE - doesn't contain any fields to change the scheduled information and the same with other FM's.

 

 

I can change the schedule finish date and time from CO02. But there is an issue, if the Basic Dates are in Enable mode, the schedule dates information is in disable mode.

 

we have to go to Header-->Scheduling info-->Scheduling dates or Basic Dates to enable one of them and it will disable another one.

 

 

 

Thanks,

Adi.

Re: outbound extended IDoc ORDERS05/ZORDERS05

$
0
0

Hi Niranjan

 

I think the above exit which you have given is for change in PO but my requiremnet is only for PO create and i tried it is not working for me.

 

 

request you to please check and suggest accordinlgy.

Re: External subroutine code

$
0
0

THANKS ,

 

does not work . no padding zeroes also .

 

mona

Assigning resource through CM27

$
0
0

Hello,

 

I am assigning a resource to an activity of an project through CM27 transaction. I am able to do that by drag & drop in the gantt chart for the workcentre. Now my requirement is that I need to update the some other activities(operations) with the same resource based on the activity type. I am trying to do this by using function module 'CY_BT_KBED_OPR_UPDATE' in a BADi implementation, but it is assigning the resource for the dragged activity only and not other depending activities.

 

Can someone tell me what values I need to pass the FM for KBED table or any other method to update the resource to activities.

 

Regards,

Suchender

Re: How to specify a screen for printing??

$
0
0

Hi,

 

When you print the ALV report, in the print dialog, go to properties and change the no. of rows and columns. Try with all the options there.It will surely solve your issue..

 

 

Regards

Purnand

Re: Executing external programs in Windows from UNIX

$
0
0

There is a FM called SXPG_CALL_SYSTEM.

Please check that. It has good documentation also.

Re: FM/BAPI to update requirements assignment on a PM order

$
0
0

Hello Peter,

 

did you got the full steps how to update resource assignment?


Re: FM/BAPI to update resource allocation to an PS project activity

$
0
0

I think these 2 bapis does not have fields for resource allocation(updation of KBED table).

Re: support package level not sufficient see note 1600482

$
0
0

We understand some
customers may have questions or need assistance. We want you to know that SAP
has implemented a process to answer questions and help customers get through
the remediation with minimal disruption. As a starting point, customers should
review SAP Note 1600482.  In addition to
opening a message in component XX-PROJ-IMS-HA.
This initiates the process that is in place to assist customers with their
analysis and migration

 

 

Please note that
there is also a website and an email address to help with any questions you may
have. Q&A information can be found at SAP Service Marketplace: http://service.sap.com/DHAP. If you
still need assistance, additional questions should be directed to SAP_HA_Questions@sap.com.

FBZP Configuration

$
0
0

Experts,

 

We are facing issue on Generating Checks from F110 .

Blank Form with static texts only are getting generated in SP01 for Payment method H ,other forms working perfectly.

 

Please find the below configurations .

 

FBZP :

1.Payment method in company code :

Payment method - H

Form Data : Z<ABC>_CHECK  (with this form and without we tried)

2.Payment method in Country

Payment medium (Format ACH , Format supplement CTX)

(Not using RFFOU* programs)

3.Note to Payee by Origin

    FI-AP    - ZACH CTX CS

    HR-PY  - ZACH CTX CS

 

4.Default Note to Payee  - - ZACH CTX CS

  Line 1 Date &FPAYP-BLDAT& Doc &FPAYH-DOC1R+4(10)& Vendor &FPAYH-GPA1R(10)& Inv &FPAYP-XBLNR&

  Line 2 Amt&FPAYP-DMBTR&Name&FPAYH-ZNME1&

 

Thanks

Re: free memory id 'SAPLSTXD'

$
0
0

Raymond,

 

Could you please let me know exactly what syntax do I need to use in export line... I mean do I need to export SAPLSTXD or SAPLSTXD000001(lv_memory_id in my case.)

 

You said export it before read_text. If I export it back before read_text, then the runtime value will overwrite the database value (before the change is made.) and after read_text, again I will get the value which user has changed. In Read_text, I want to get the value of the text from database which is before the change is made. Thats the whole purpose of importing the catalog etc...

 

My requirement is to compare the run time text value with database value (before the transaction is called.)

 

Let say we have a transaction whose text is saved in database table.

 

lv_text = "I am a text".

 

Now user open the tranaction and chagned the text, run time value will be

lv_text = "I am text at runtime".

 

Now at this point I want to get both values so that I can compare both text and if they are different I can perform some operation.

 

When I call read_text in my badi, it always retrun the runtime value "I am text at runtime", but I need to get the database value also which is "I am a text".

 

In order to achieve this, I have open this thread.

 

Please suggest.

Re: Moving Files in FTP Server

$
0
0

Hi,

 

I have the same issue. Did you find an answer for this?

 

Thanks in advance.

 

Regards,

Sónia Gonçalves

Viewing all 10425 articles
Browse latest View live


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