Quantcast
Channel: SCN: Message List
Viewing all 8746 articles
Browse latest View live

Re: activating function grp for BAPI gives an error

$
0
0

Thank you ALL. Still getting same error while activating includes, FM. Please advise. 

Fixed ZBAPI_QAIMPORT instead of MATNR. Structures - ZBAPI_QAIMPORT, ZBAPI_QAEXPORT are activated. Attached is source code -

 

FUNCTION ZBAPI_QA_GETWERKS.

*"----------------------------------------------------------------------

*"*"Local Interface:

*"  IMPORTING

*"     VALUE(MATNR) TYPE  ZBAPI_QAIMPORT-MATNR

*"  EXPORTING

*"     VALUE(RETURN) TYPE  BAPIRETURN

*"  TABLES

*"      ZTABLE STRUCTURE  ZBAPI_QAEXPORT

*"----------------------------------------------------------------------

 

 

select matnr werks from marc

      into TABLE ztable

        where matnr eq matnr.

    if sy-subrc eq 0.

      "Update BAPI return table accordingly to show success here

      else.

      "Update BAPI return table accordingly to show failure here

    ENDIF.

 

ENDFUNCTION.

 

ScreenHunter_24 Feb. 23 11.15.jpg

 

ScreenHunter_23 Feb. 23 11.07.jpg


Selection Profile

$
0
0

Hello All,

 

We have an issue wherein user is not able to see the Selection profiles assigned to him in Interactive planning. We have checked all the authorizations for the user and they are all correct. User is able to load the data manually by giving the selections.

 

And this is the only user impacted by this issue. All the other users are able to see all the Selection profiles assign to them.

 

Can you please help me to identify the other probable causes because of which user might not be able to view the selection profiles assigned to him for Interactive Planning.

 

Thanks in advance!

 

Regards,

Rakesh Wade.

Re: Creation of Routing

$
0
0

Hi Sameer,

 

 

          when i am using the Test Sequences like BAPI_ROUTING_CREATE and BAPI_TRANSACTION_COMMIT in SE37 i am able to updating the task level, Material task allocation and Operation details in CA01 Transaction.

 

          The same when i am using the Programmatic ally ie., while Uploading required details from Excel file and after passing into BAPI_ROUTING_CREATE i am able to Getting the 'S' Message and after cursor moving to BAPI_TRANSACTION_COMMIT i am able to see the Updating only Task, Material task allocation in CA01 Transaction level.

 

          Please suggest how to proceed further and see the below my code.

 

 

 

 

 

LOOP AT gt_routing INTO gs_routing.

    lv_count1 = lv_count1 + 1.

*    ON CHANGE OF gs_routing-material.

*

*      IF gs_routing-material IS NOT INITIAL AND gt_task IS NOT INITIAL.

*

**  Call Subroutine to Load the routing

*        PERFORM call_bapi_and_commit.

*

**  Re-initialise the internal tables

*

*        CLEAR: gt_mat_task_allo[], gt_task[], gt_op[], gt_inspchar[], gt_ret[].

*

*      ENDIF.

*    ENDON.

*

*    IF gs_routing-plant IS NOT INITIAL.

*      gv_plant = gs_routing-plant.

*    ENDIF.

 

    IF gs_routing-plant NE space.

      CLEAR gt_mat_task_allo.

*  Moving Corresponding fields to Material internal table

      gt_mat_task_allo-material = gs_routing-material.

      gt_mat_task_allo-plant    = gv_plant.

 

      IF gs_routing-valid_from IS NOT INITIAL.

        gt_mat_task_allo-valid_from = gs_routing-valid_from.

      ELSE.

        gt_mat_task_allo-valid_from = sy-datum.

        gt_mat_task_allo-valid_to_date = '99993112'.

      ENDIF.

      APPEND gt_mat_task_allo.

 

*  Moving Corresponding fields to task internal table

      CLEAR gt_task.

      IF gs_routing-valid_from IS NOT INITIAL.

        gt_task-valid_from = gs_routing-valid_from.

      ELSE.

        gt_task-valid_from = sy-datum.

        gt_mat_task_allo-valid_to_date = '99993112'.

      ENDIF.

 

      gt_task-description      = gs_routing-description.

      gt_task-task_list_usage  = gs_routing-task_list_usage.

      gt_task-task_list_status  = gs_routing-task_list_status.

      gt_task-lot_size_from    = gs_routing-lot_size_from.

      gt_task-lot_size_to      = gs_routing-lot_size_to.

      gt_task-plant            = gv_plant.

 

      SELECT *

            FROM t006

            INTO TABLE gt_t006.

 

      READ TABLE gt_t006 INTO gs_t006 WITH KEY isocode = 'PCE'.

 

      gt_task-task_measure_unit = gs_t006-msehi.

      APPEND gt_task.

 

 

* Moving Corresponding fields to Operation internal table

      CLEAR gt_op.

      IF gs_routing-valid_from IS NOT INITIAL.

        gt_op-valid_from = gs_routing-valid_from.

      ELSE.

        gt_op-valid_from = sy-datum.

        gt_op-valid_to_date = '99993112'.

      ENDIF.

      gt_op-activity              = gs_routing-activity.

      gt_op-plant                  = gv_plant.

      gt_op-control_key            = gs_routing-control_key.

      gt_op-work_cntr              = gs_routing-work_cntr.

      gt_op-description            = gs_routing-description_opr.

      gt_op-denominator            = '2'.

      gt_op-nominator              = '0'.

      gt_op-base_quantity          = gs_routing-base_quantity.

      gt_op-std_value_01          = gs_routing-std_value_01.

      gt_op-std_value_02          = gs_routing-std_value_02.

      gt_op-std_value_03          = gs_routing-std_value_03.

      gt_op-std_value_04          = gs_routing-std_value_04.

      gt_op-std_value_05          = gs_routing-std_value_05.

      gt_op-std_value_06          = gs_routing-std_value_06.

      gt_op-std_unit_01            = gs_routing-std_unit_01.

      gt_op-std_unit_02            = gs_routing-std_unit_02.

      gt_op-std_unit_03            = gs_routing-std_unit_03.

      gt_op-std_unit_04            = gs_routing-std_unit_04.

      gt_op-std_unit_05            = gs_routing-std_unit_05.

      gt_op-std_unit_06            = gs_routing-std_unit_06.

      gt_op-info_rec              = gs_routing-info_rec.

      gt_op-purch_org              = gs_routing-purch_org.

      gt_op-matl_group            = gs_routing-matl_group.

      gt_op-purch_group            = gs_routing-purch_group.

      gt_op-vendor_no              = gs_routing-vendor_no.

      gt_op-cost_elem              = gs_routing-cost_elem.

      gt_op-ext_proc_with_subcontract_ind = gs_routing-ext_proc_with_subcontract_ind.

      APPEND gt_op.

 

    ELSE.

 

      CLEAR gt_op.

      IF gs_routing-valid_from IS NOT INITIAL.

        gt_op-valid_from = gs_routing-valid_from.

      ELSE.

        gt_op-valid_from = sy-datum.

        gt_op-valid_to_date = '99993112'.

      ENDIF.

 

      gt_op-activity              = gs_routing-activity.

      gt_op-plant                  = gv_plant.

      gt_op-control_key            = gs_routing-control_key.

      gt_op-work_cntr              = gs_routing-work_cntr.

      gt_op-description            = gs_routing-description_opr.

      gt_op-denominator            = '2'.

      gt_op-nominator              = '0'.

      gt_op-base_quantity          = gs_routing-base_quantity.

      gt_op-std_value_01          = gs_routing-std_value_01.

      gt_op-std_value_02          = gs_routing-std_value_02.

      gt_op-std_value_03          = gs_routing-std_value_03.

      gt_op-std_value_04          = gs_routing-std_value_04.

      gt_op-std_value_05          = gs_routing-std_value_05.

      gt_op-std_value_06          = gs_routing-std_value_06.

      gt_op-std_unit_01            = gs_routing-std_unit_01.

      gt_op-std_unit_02            = gs_routing-std_unit_02.

      gt_op-std_unit_03            = gs_routing-std_unit_03.

      gt_op-std_unit_04            = gs_routing-std_unit_04.

      gt_op-std_unit_05            = gs_routing-std_unit_05.

      gt_op-std_unit_06            = gs_routing-std_unit_06.

      gt_op-info_rec              = gs_routing-info_rec.

      gt_op-purch_org              = gs_routing-purch_org.

      gt_op-matl_group            = gs_routing-matl_group.

      gt_op-purch_group            = gs_routing-purch_group.

      gt_op-vendor_no              = gs_routing-vendor_no.

      gt_op-cost_elem              = gs_routing-cost_elem.

      gt_op-ext_proc_with_subcontract_ind = gs_routing-ext_proc_with_subcontract_ind.

      APPEND gt_op.

    ENDIF.

 

    IF lv_count1 EQ lv_count.

*    Call Subroutine to Load the routing

      PERFORM call_bapi_and_commit.

    ENDIF.

    CLEAR: gs_routing.

  ENDLOOP.

 

CALL FUNCTION 'BAPI_ROUTING_CREATE'

* EXPORTING

*  TESTRUN                      = ' '

*  PROFILE                      =

*  BOMUSAGE                    =

*  APPLICATION                  =

IMPORTING

  group                        = gv_group

  groupcounter                = gv_gr_counter

    TABLES

      task                        = gt_task[]

    materialtaskallocation      = gt_mat_task_allo[]

*  SEQUENCE                    =

  operation                    = gt_op[]

*  SUBOPERATION                =

*  REFERENCEOPERATION          =

*  WORKCENTERREFERENCE          =

*  COMPONENTALLOCATION          =

*  PRODUCTIONRESOURCE          =

*  INSPCHARACTERISTIC          =

*  TEXTALLOCATION              =

*  TEXT                        =

  return                      = gt_ret[].

 

  READ TABLE gt_ret INDEX 1.

  DESCRIBE TABLE gt_ret.

 

  BREAK-POINT.

* Check for success message and then Commit, otherwise dont commit

  IF gt_ret-type EQ 'S' AND sy-tfill EQ 1.

 

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

*      EXPORTING

*        wait  = space

*      IMPORTING

*        return = gt_ret.

Updating Material Availability Data in R/3 Sales Order

$
0
0

Hi APO Gurus,

 

We have a requirement wherein we want to update Material Availability Data (MAD) to R/3 Sales Order from APO. We in GATP Back Order processing does not want use CPS and just want to update the MAD in R/3 Sales Order so rest of the calculation upto Delivery Date calculation in Sales Orders is performed at R/3 end.

 

So I want to know if we have any BADI/BAPI or Functional Module which will help us in updating MAD in R/3 Sales Order from APO BOP results.

 

Please advise,

 

Regards,

Rakesh Wade.

Re: Problem with multiple windows in smartforms.

$
0
0

Thanks to all. The problem is solved now

Re: Help for certification

Re: Alignment issue in script

$
0
0

Hi Ashish

 

As a thumb rule all amount should be right aliged. So you will have to play with your header and item both. For example you can give little less space for amount at item field and then move your amount header towards right will solve your problem

 

Nabheet

Re: upgrade strategy to choose

$
0
0

Hi Shanahas,

 

There is nothing as such that for C-CEE Add-on you need to use Resource minimized.

Upgrade strategy depends on the system resources and how much downtime customer can afford for business.

Many of the upgrades follow downtime minimized approach.

 

For C-CEE addon you may need to refer below SAP note

 

Note 1260937 - C-CEE: Upgrade to SAP ECC 600 EHP 4/5/6

 

Also refer SAP upgrade guide for your release.

 

Hope this helps.

 

Regards,

Deepak Kori


BAPI/FM for inserting new line item in Delivery

$
0
0

Dear All,

 

As i have got a new requirement, I have to to insert a new line item in delivery without Order reference, I tried with BAPI_OUTB_DELIVERY_CHANGE, but we are not able to insert new line item in delivery. Could any once help m, is there any other BAPI or FM or any other way to insert(Automatically) a line item in delivery. kindly help me. its urgent.

 

Regards,

C Reddy

Re: Unable to view employee profile from My Info lane in UI5

$
0
0

Hi Burcin,

 

The services is active, it has a green light on the bottom left and there is a system alias defined on the bottom right.

 

Please let me know what should I do next?

 

Best regards,

Veera.

Re: upgrade strategy to choose

Re: Descriptive label instead of "Workcenter Application" in tab list of sessions

$
0
0

HI Melinda.

 

Thanks for the feedback.  Sorry for taking time to reply.

 

An example of what I looked at is the SAP made WebDynpro Application (inm_workcenter_app) which has the description "Work Center Application.

 

The same application provides a dashboard for different objects depending on the parameter IV_OBJ_TYPE_R so it seems hard to set a descriptive title in the application itself.

 

What seemed strange to me when testing this was that it sometimes was possible to get a descriptive title and sometimes (most often) not.

 

Please compare with the example above from pinning a session to a tab via pin>tab.

 

Best regards / Anders

 

 

 

 

 

 

 

 


Re: TDS Calculation to exclude Service Tax component

$
0
0

Hi,

 

Select Net amount radio button for all related withholding tax types.

 

Regards

ManiKumar

Re: SAP PLM DMS

$
0
0

Hi Ravi ,

 

Thanks for update .

 

But as per  Sebin --------> DMS isseperate Server we need to install it .

 

I Want to use DMS - R/3 gui which comes as a part of ECC 6 as per your knowlwge .

 

Can you please help me with configuration steps .

 

Regards,

Mukesh

Re: Initial stocks(Mvt:561) for MAP Material has price differences.

$
0
0

there are screenshots about it.

movement type is 561.

and other screen shot is simulation result (t-code : OMWB).

test A-4.PNG

test A-5.PNG

 

A server and B server has same IMG setting including OMWB result.


Re: work order completed by

$
0
0

This can be done via Enhancement Spot ES_EAM_LIST_ENHANCEMENTS - see transaction SE18.

 

Then search for BADI_EAM_SINGLELEVEL_LIST

 

Search Google for more examples.

 

PeteA

Re: string read for diffrent scenario

$
0
0

Regular expression can be used to do it in one line. See this snippet.

  1. DATA lv TYPE string.
  2. DATAltTYPETABLEOF string.
  3. APPEND'/dirname/filrname1/1011/a.text'TOlt.
  4. APPEND'/dirname/filrname1/1012/b.text'TOlt.
  5. APPEND'/dirname/filrname1/1013/c.text'TOlt.
  6. APPEND'/dirname/filrname2/1011/a.text'TOlt.
  7. APPEND'/dirname/filrname2/1012/b.text'TOlt.
  8. APPEND'/dirname/filrname2/1013/c.text'TOlt.
  9. APPEND'/dirname/filrname3/1011/a.text'TOlt.
  10. APPEND'/dirname/filrname3/1012/b.text'TOlt.
  11. APPEND'/dirname/filrname3/1013/c.text'TOlt.
  12. REPLACEALLOCCURRENCESOF REGEX '\d+/\w+\.\w+$'
  13.     INTABLEltWITH'temp'.
  14. LOOPATltINTO lv.
  15.   WRITE:/ lv.
  16. ENDLOOP.

/.

Re: Solman 7.1 SP10 delete product system in SMSY

$
0
0


Hi Vevek,

 

If it's not associated with LMDB and the data source is SLD or TMS/RFC and the date and time stamp is out-dated, then you can delete the product system in SMSY by switching to Edit mode. If the data source is LMDB, then it needs to be done via LMDB. I hope that helps to address the issue. If not please open a message with SV-SMG-SYS.

 

Regards,

Jay Soma.

Re: Hi,

$
0
0

Thanks KC.

Will explore this and give you my feedback.

Re: Issues with SAP not showing text for address types

$
0
0

Dear All,

 

None of the above options work. Checked

  • T591A: proper entries maintained
  • T588M: output field selected

 

Any other pointers pls ?

Viewing all 8746 articles
Browse latest View live




Latest Images