Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can I save Note ?

Former Member
0 Likes
890

In the transaction CO02 there is a buttom (I think that is GOS) in the first line in the screen.

I need to save Note (<i>buttom-> Create-> Create Note</i>) in abap.

How can I do this ? is there a FM or Method ?

Thanks.

Best regards,

Marcelo Perine

In the transaction CO02 there is a buttom (I think that is GOS) in the first line in the screen.

I need to save Note (<i>buttom-> Create-> Create Note</i>) in abap.

How can I do this ? is there a FM or Method ?

Thanks.

Best regards,

Marcelo Perine

3 REPLIES 3
Read only

former_member191735
Active Contributor
0 Likes
775

check out fm save_text.

Read only

former_member194669
Active Contributor
0 Likes
775

Hi,

If you want to use GOS, then


data: i_borident     type borident,
      gos_manager    type ref to cl_gos_manager,
      i_services     type tgos_sels,
      i_service      type sgos_sels.

  refresh : i_services. clear : i_services, i_service.
  select * from sgosattr where name ne 'PERS_NOTE'.
    i_service-sign = 'E'.
    i_service-option = c_eq.
    i_service-low = sgosattr-name.
    append i_service to i_services.
*
  endselect.

then call GOS


      i_borident-objtype = '<CO02 Object Name>'.
      i_borident-objkey = <your CO02 document number>.
      create object gos_manager
        exporting
           is_object            = i_borident
           it_service_selection = i_services
           ip_no_commit         = ' '
        exceptions
           object_invalid       = 1.

Read only

0 Likes
775

ARS, thanks for your cooperation.

I´m using GOS to save Note.

After create OBJ, how can I save the text ?

Thank you.